Skip to content

Commit 2816281

Browse files
committed
Run the OpenJDK tests in CI from the built bundle and keep snapshots out of the JDK cache
1 parent c34ccf7 commit 2816281

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎.github/workflows/jtreg.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,15 @@ jobs:
5757
cache: pnpm
5858
- uses: actions/cache@v6
5959
with:
60-
path: ~/.cache/java-web
60+
# the downloads build-jdk.sh keeps; boot snapshots there stay out
61+
path: |
62+
~/.cache/java-web/jdk-*
63+
~/.cache/java-web/dejavu-*
6164
key: jdk-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/build-jdk.sh') }}
6265
- run: pnpm install --frozen-lockfile
6366
- run: pnpm jdk
67+
# each test VM starts from the bundle, which loads faster than src/
68+
- run: pnpm build
6469
- name: OpenJDK regression tests
6570
env:
6671
FILTERS: ${{ needs.plan.outputs.filters }}
@@ -70,7 +75,7 @@ jobs:
7075
dirs=$(grep -v '^#' test/jtreg/passing.txt | cut -d/ -f1-2 | sort -u | sed 's|^|test/jdk/|')
7176
git -C build/ref/jdk25u sparse-checkout set test/lib test/jdk/lib test/jdk/tools/lib $dirs
7277
read -ra filters <<< "$FILTERS"
73-
node scripts/jtreg/run.ts build/ref/jdk25u --only-passing --jobs 4 --timeout 600 \
78+
node scripts/jtreg/run.ts build/ref/jdk25u --only-passing --jobs 4 --timeout 600 --vm dist/node.js \
7479
--shard ${{ matrix.shard }}/${{ strategy.job-total }} "${filters[@]}"
7580
7681
# one check for branch protection, whatever the number of shards

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727
cache: pnpm
2828
- uses: actions/cache@v6
2929
with:
30-
path: ~/.cache/java-web
30+
# the downloads build-jdk.sh keeps; boot snapshots there stay out
31+
path: |
32+
~/.cache/java-web/jdk-*
33+
~/.cache/java-web/dejavu-*
3134
key: jdk-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/build-jdk.sh') }}
3235
- run: pnpm install --frozen-lockfile
3336
- run: pnpm jdk

0 commit comments

Comments
 (0)