Skip to content

Commit 1dfdfb2

Browse files
committed
Give this repo the ❤️ it deserves
- All commands now support a -Pcoordinates=k/n mode for batched execution. - One stop shop testing command: ./gradlew testAllParallel -Pparallelism=n - Documentation and structure cleanup (docs). - CLine support. - Complete command cleanup and simplification.
1 parent d12821c commit 1dfdfb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+889
-518
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ tests/tck-build-logic/* @vjovanov
44
tests/tck-build-logic/src/main/resources/allowed-docker-images/* @matneu
55
library-and-framework-list.json @fniephaus
66
.github/* @vjovanov
7-
docs/* @vjovanov
7+
docs/* @vjovanov @ban-mi
8+
README.md @vjovanov @ban-mi
89
gradle/* @vjovanov
910
/* @vjovanov

.github/workflows/checkstyle-skip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Check code style"
33
on:
44
pull_request:
55
paths:
6-
- 'docs/*'
6+
- 'docs/**'
77
- '**.md'
88
- 'library-and-framework-list*.json'
99

.github/workflows/checkstyle.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ name: "Check code style"
33
on:
44
pull_request:
55
paths-ignore:
6-
- 'docs/*'
6+
- 'docs/**'
77
- '**.md'
88
- 'library-and-framework-list*.json'
99

1010
jobs:
1111
checkstyle:
12-
if: github.repository == 'oracle/graalvm-reachability-metadata'
1312
name: "📋 Check style according to checkstyle.xml"
1413
runs-on: "ubuntu-22.04"
1514
timeout-minutes: 15
1615
steps:
1716
- name: "☁️ Checkout repository"
1817
uses: actions/checkout@v4
18+
1919
- uses: actions/setup-python@v4
20-
- name: "🔧 Prepare environment"
21-
uses: graalvm/setup-graalvm@v1
20+
21+
- name: "🔧 Setup java"
22+
uses: actions/setup-java@v4
2223
with:
23-
java-version: '17'
2424
distribution: 'graalvm'
25-
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
java-version: '21'
26+
2627
- run: ./gradlew checkstyle

.github/workflows/create-scheduled-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212
jobs:
1313
get-changed-metadata:
1414
name: "📋 Get a list of changed metadata"
15+
if: github.repository == 'oracle/graalvm-reachability-metadata'
1516
runs-on: "ubuntu-22.04"
1617
timeout-minutes: 5
1718
outputs:
@@ -22,11 +23,13 @@ jobs:
2223
uses: actions/checkout@v4
2324
with:
2425
fetch-depth: 0
26+
2527
- name: "🔧 Setup java"
2628
uses: actions/setup-java@v4
2729
with:
2830
distribution: 'graalvm'
2931
java-version: '21'
32+
3033
- name: "🕸️ Get changed metadata matrix"
3134
id: set-matrix
3235
run: |
@@ -45,27 +48,33 @@ jobs:
4548
uses: actions/checkout@v4
4649
with:
4750
fetch-depth: 0
51+
4852
- name: "🔧 Setup java"
4953
uses: actions/setup-java@v4
5054
with:
5155
distribution: 'graalvm'
5256
java-version: '21'
57+
5358
- name: "Get tags"
5459
run: |
5560
PREVIOUS_RELEASE_TAG=$(git tag --list | sort -V | tail -1)
5661
echo "PREVIOUS_RELEASE_TAG=$PREVIOUS_RELEASE_TAG" >> ${GITHUB_ENV}
5762
5863
CURRENT_RELEASE_TAG=$(sed -E 's/^([0-9]+\.)([0-9]+\.)([0-9]+)/echo \1\2$((\3+1))/e' <<< $PREVIOUS_RELEASE_TAG)
5964
echo "CURRENT_RELEASE_TAG=$CURRENT_RELEASE_TAG" >> ${GITHUB_ENV}
65+
6066
- name: "⬆️ Update version"
6167
run: |
6268
sed -i "s/project.version(\"1.0.0-SNAPSHOT\")/project.version(\"${{ env.CURRENT_RELEASE_TAG }}\")/g" build.gradle
69+
6370
- name: "🔍 Run spotless check"
6471
run: |
6572
./gradlew spotlessCheck
73+
6674
- name: "🏭 Generate release artifacts"
6775
run: |
6876
./gradlew package
77+
6978
- name: "📄 Commit changes"
7079
run: |
7180
git config --local user.email "[email protected]"
@@ -74,6 +83,7 @@ jobs:
7483
git commit -m "Release version ${{ env.CURRENT_RELEASE_TAG }}"
7584
git tag ${{ env.CURRENT_RELEASE_TAG }}
7685
git push origin ${{ env.CURRENT_RELEASE_TAG }}
86+
7787
- name: "📝 Publish a release"
7888
run: |
7989
gh release create ${{ env.CURRENT_RELEASE_TAG }} build/graalvm-reachability-metadata-*.zip --generate-notes --notes-start-tag ${{ env.PREVIOUS_RELEASE_TAG }}

.github/workflows/library-and-framework-list-validation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ on:
77

88
jobs:
99
validate-library-and-framework-list-json:
10-
if: github.repository == 'oracle/graalvm-reachability-metadata'
1110
name: "📋 Validate the JSON file"
1211
runs-on: "ubuntu-22.04"
1312
timeout-minutes: 5
1413
steps:
1514
- name: "☁️ Checkout repository"
1615
uses: actions/checkout@v4
16+
1717
- uses: actions/setup-python@v4
1818
with:
1919
python-version: '3.10'
20+
2021
- name: Check that the JSON file is well-formatted and sorted by artifact
2122
run: |
2223
JSON="library-and-framework-list.json"
@@ -29,6 +30,7 @@ jobs:
2930
echo "'${JSON}' is no longer sorted by artifact key. You can use 'jq' to sort it: 'sorted="$(jq -s '.[] | sort_by(.artifact)' ${JSON})" && echo -E "${sorted}" > ${JSON}"
3031
exit 8
3132
fi
33+
3234
- name: Check that the JSON file conforms to the schema
3335
run: |
3436
pip install check-jsonschema

.github/workflows/scan-docker-images.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21-
- uses: graalvm/setup-graalvm@v1
21+
22+
- uses: actions/setup-java@v4
2223
with:
23-
java-version: '17'
2424
distribution: 'graalvm'
25+
java-version: '21'
2526
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
2628
- name: "Install required tools"
2729
run: |
28-
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin
30+
curl -sSfL https://get.anchore.io/grype/v0.104.0/install.sh | sudo sh -s -- -b /usr/local/bin
2931
sudo apt-get install jq
32+
3033
- name: "🔎 Check changed docker images"
3134
if: github.event_name == 'pull_request'
3235
run: ./gradlew checkAllowedDockerImages --baseCommit=${{ github.event.pull_request.base.sha }} --newCommit=${{ github.event.pull_request.head.sha }}
36+
3337
- name: "🔎 Check all docker images"
34-
if: github.event_name != 'pull_request' && github.repository == 'oracle/graalvm-reachability-metadata'
38+
if: github.event_name == 'schedule' && github.repository == 'oracle/graalvm-reachability-metadata'
3539
run: ./gradlew checkAllowedDockerImages
File renamed without changes.
File renamed without changes.

.github/workflows/run-consecutive-tests.sh renamed to .github/workflows/scripts/run-consecutive-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ for VERSION in "${VERSIONS[@]}"; do
6262
echo "$DELIMITER"
6363

6464

65-
if ! run_multiple_attempts "javac compile" 1 javac; then
65+
if ! run_multiple_attempts "javac compile" 1 compileTestJava; then
6666
break
6767
fi
6868

0 commit comments

Comments
 (0)