Skip to content

Commit 30919b9

Browse files
authored
Merge branch 'eclipse-platform:master' into UpLinks
2 parents 9310456 + 2e975ef commit 30919b9

File tree

101 files changed

+548
-2250
lines changed

Some content is hidden

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

101 files changed

+548
-2250
lines changed

.github/matcher/api-tools.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/callFreezePeriodCheck.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/checkDependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
maven-version: ${{ inputs.mavenVersion }}
8484
- name: Set up JDK
85-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
85+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8686
with:
8787
java-version: '21'
8888
distribution: 'temurin'

.github/workflows/checkVersions.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ on:
2121
type: string
2222
required: false
2323
default: ''
24+
working-directory:
25+
description: Optional additional arguments to specify the directory in which maven build is executed
26+
type: string
27+
required: false
28+
default: '.'
2429

2530
permissions: {} # all none
2631

32+
env:
33+
MAVEN_ARGS: >-
34+
--batch-mode --no-transfer-progress
35+
2736
jobs:
2837
versions-check-and-increment:
2938
name: Check and increment service versions
@@ -35,7 +44,7 @@ jobs:
3544
fetch-depth: 0 # required for jgit timestamp provider to work
3645

3746
- name: Set up Java
38-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
47+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3948
with:
4049
java-version: 21
4150
distribution: 'temurin'
@@ -56,10 +65,11 @@ jobs:
5665
with:
5766
attempt_delay: 200
5867
attempt_limit: 10
68+
current_path: ${{ inputs.working-directory }}
5969
command: >
6070
mvn verify ${{ inputs.extra-maven-args }} -DskipTests -Dcompare-version-with-baselines.skip=false
6171
org.eclipse.tycho:tycho-versions-plugin:bump-versions -Dtycho.bump-versions.increment=100
62-
--threads 1C --fail-at-end --batch-mode --no-transfer-progress --show-version
72+
--threads 1C --fail-at-end --show-version
6373
6474
- name: Commit version increments, if any
6575
run: |
@@ -72,9 +82,11 @@ jobs:
7282
# Relevant files were staged, i.e. some version were changed
7383
7484
# Read 'releaseNumberSDK' property as stream version
75-
mvn help:evaluate -Dexpression=releaseNumberSDK --quiet '-Doutput=releaseNumberSDK-value.txt'
85+
pushd ${{ inputs.working-directory }}
86+
mvn help:evaluate -Dexpression=releaseNumberSDK ${{ inputs.extra-maven-args }} --quiet '-Doutput=releaseNumberSDK-value.txt'
7687
streamVersion=$(<releaseNumberSDK-value.txt)
7788
rm -f releaseNumberSDK-value.txt
89+
popd
7890
7991
git config --global user.email '${{ inputs.botMail }}'
8092
git config --global user.name '${{ inputs.botName }}'

.github/workflows/cleanCode.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,28 @@ jobs:
7878
max-parallel: 1
7979
fail-fast: false
8080
steps:
81+
- name: List number of open PRs
82+
id: list-prs
83+
run: |
84+
json_output=$(gh pr list -l 'cleanup' -R $OWNER/$REPO -L 20 --json id)
85+
echo "prs=$json_output" | tee -a "$GITHUB_OUTPUT"
86+
env:
87+
GH_TOKEN: ${{ secrets.token }}
88+
OWNER: ${{ github.repository_owner }}
89+
REPO: ${{ github.event.repository.name }}
8190
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
91+
if: ${{ fromJson(steps.list-prs.outputs.prs)[9] == null }}
8292
with:
8393
fetch-depth: 0
8494
ref: master
8595
- name: Set up Maven
8696
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
97+
if: ${{ fromJson(steps.list-prs.outputs.prs)[9] == null }}
8798
with:
8899
maven-version: ${{ inputs.mavenVersion }}
89100
- name: Set up JDK
90-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
101+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
102+
if: ${{ fromJson(steps.list-prs.outputs.prs)[9] == null }}
91103
with:
92104
java-version: |
93105
8
@@ -98,17 +110,17 @@ jobs:
98110
cache: maven
99111
- name: Perform Cleanups on ${{ matrix.bundles }}
100112
working-directory: ${{ matrix.bundles }}
101-
if: ${{ inputs.do-cleanups }}
113+
if: ${{ inputs.do-cleanups && fromJson(steps.list-prs.outputs.prs)[9] == null }}
102114
run: >-
103115
xvfb-run mvn -B -ntp tycho-cleancode:cleanup@cleanups
104116
- name: Perform QuickFixes on ${{ matrix.bundles }}
105117
working-directory: ${{ matrix.bundles }}
106-
if: ${{ inputs.do-quickfix }}
118+
if: ${{ inputs.do-quickfix && fromJson(steps.list-prs.outputs.prs)[9] == null }}
107119
run: >-
108-
xvfb-run mvn -B -ntp tycho-cleancode:quickfix@quickfixes
120+
xvfb-run mvn -B -ntp -e tycho-cleancode:quickfix@quickfixes
109121
- name: Create final PR description
110122
working-directory: ${{ matrix.bundles }}/target
111-
if: ${{ hashFiles(format('{0}/target/quickfix.md', matrix.bundles)) != '' }} || ${{ hashFiles(format('{0}/target/cleanups.md', matrix.bundles)) != '' }}
123+
if: ${{ hashFiles(format('{0}/target/quickfix.md', matrix.bundles)) != '' || hashFiles(format('{0}/target/cleanups.md', matrix.bundles)) != '' }}
112124
run: >-
113125
cat *.md > pr.md
114126
- name: Create Pull Request
@@ -121,6 +133,7 @@ jobs:
121133
body-path: ${{ matrix.bundles }}/target/pr.md
122134
delete-branch: true
123135
draft: false
136+
labels: cleanup
124137
token: ${{ secrets.token }}
125138
committer: ${{ inputs.author }}
126139
author: ${{ inputs.author }}

.github/workflows/codeQLworkflow.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
required: false
2222
default: '3.9.9'
2323

24+
env:
25+
MAVEN_ARGS: >-
26+
--batch-mode --no-transfer-progress
27+
2428
jobs:
2529
analyze:
2630
name: Analyze
@@ -59,7 +63,7 @@ jobs:
5963
languages: ${{ matrix.language }}
6064

6165
- name: Set up Java
62-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
66+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
6367
with:
6468
java-version: |
6569
8
@@ -77,12 +81,11 @@ jobs:
7781
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
7882
with:
7983
maven-version: ${{ inputs.mavenVersion }}
84+
8085
- name: Build with Maven
81-
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
82-
with:
83-
run: >-
84-
mvn --batch-mode -V -U
85-
-ntp
86+
run: >-
87+
${{ runner.os == 'Linux' && 'xvfb-run' || '' }}
88+
mvn --show-version --update-snapshots --errors
8689
-Dcompare-version-with-baselines.skip=true
8790
-Pbree-libs
8891
-DskipTests=true

.github/workflows/mavenBuild.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ on:
1515
type: string
1616
required: false
1717
default: 'false'
18-
mavenVersion:
18+
mavenVersion:
1919
description: 'The version of Maven set up'
2020
type: string
2121
required: false
2222
default: '3.9.9'
2323

2424
permissions: {}
2525

26+
env:
27+
MAVEN_ARGS: >-
28+
--batch-mode --no-transfer-progress
29+
2630
jobs:
2731
event_file:
2832
name: "Upload Event File"
@@ -42,6 +46,10 @@ jobs:
4246
- { name: Linux, os: ubuntu-latest }
4347
- { name: Windows, os: windows-latest }
4448
- { name: MacOS, os: macos-13 }
49+
defaults:
50+
run: # Run on bash/cmd, because powershell (the Windows default) interprets dots in arguments differently
51+
shell: ${{ matrix.config.name == 'Windows' && 'cmd' || 'bash' }}
52+
4553
name: Verify ${{ matrix.config.name }}
4654
steps:
4755
- name: Checkout
@@ -50,7 +58,7 @@ jobs:
5058
fetch-depth: 0 # required for jgit timestamp provider to work
5159
submodules: ${{ inputs.submodules }}
5260
- name: Set up Java
53-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
61+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
5462
with:
5563
java-version: |
5664
8
@@ -68,19 +76,11 @@ jobs:
6876
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
6977
with:
7078
maven-version: ${{ inputs.mavenVersion }}
71-
- name: Download the API Tools matcher
72-
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # v1.6.0
73-
id: api-tools-matcher
74-
with:
75-
url: "https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.releng.aggregator/master/.github/matcher/api-tools.json"
76-
target: .github/matcher
77-
- run: echo "::add-matcher::.github/matcher/${{ steps.api-tools-matcher.outputs.filename }}"
79+
7880
- name: Build with Maven
79-
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
80-
with:
81-
run: >-
82-
mvn --batch-mode -V -U -e
83-
-ntp
81+
run: >-
82+
${{ runner.os == 'Linux' && 'xvfb-run' || '' }}
83+
mvn --show-version --update-snapshots --errors
8484
-Dcompare-version-with-baselines.skip=false
8585
-Pbree-libs
8686
-Papi-check

.github/workflows/pr-checks.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Fast running checks for pull-requests
2+
3+
name: Pull-Request Checks
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
check-freeze-period:
14+
uses: ./.github/workflows/verifyFreezePeriod.yml
15+
check-merge-commits:
16+
uses: ./.github/workflows/checkMergeCommits.yml
17+
check-versions:
18+
# Run this check only for PRs from forks and not for changes from bots created on branches in this repository
19+
if: github.event.pull_request.head.repo.full_name != github.repository
20+
uses: ./.github/workflows/checkVersions.yml
21+
with:
22+
botName: Eclipse Platform Bot
23+
24+
# Only check 'eclipse.platform.releng' projects
25+
working-directory: 'eclipse.platform.releng'
26+
extra-maven-args: '-Pbuild-individual-bundles'

.github/workflows/prepareRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
ref: master
3131
- name: Set up JDK
32-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
32+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3333
with:
3434
java-version: '21'
3535
distribution: 'temurin'

.github/workflows/updateRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
maven-version: 3.9.9
1818
- name: Set up JDK
19-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
19+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2020
with:
2121
java-version: '21'
2222
distribution: 'temurin'

0 commit comments

Comments
 (0)