From 7e805e873402ea7e41dbc0912398af06324044d1 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Fri, 18 Apr 2025 13:30:53 +0200 Subject: [PATCH 1/3] [Version check] Add optional command to specify the working directory --- .github/workflows/checkVersions.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checkVersions.yml b/.github/workflows/checkVersions.yml index e068b35c465..16a48177070 100644 --- a/.github/workflows/checkVersions.yml +++ b/.github/workflows/checkVersions.yml @@ -21,6 +21,11 @@ on: type: string required: false default: '' + working-directory: + description: Optional additional arguments to specify the directory in which maven build is executed + type: string + required: false + default: '.' permissions: {} # all none @@ -56,6 +61,7 @@ jobs: with: attempt_delay: 200 attempt_limit: 10 + current_path: ${{ inputs.working-directory }} command: > mvn verify ${{ inputs.extra-maven-args }} -DskipTests -Dcompare-version-with-baselines.skip=false org.eclipse.tycho:tycho-versions-plugin:bump-versions -Dtycho.bump-versions.increment=100 @@ -72,9 +78,11 @@ jobs: # Relevant files were staged, i.e. some version were changed # Read 'releaseNumberSDK' property as stream version - mvn help:evaluate -Dexpression=releaseNumberSDK --quiet '-Doutput=releaseNumberSDK-value.txt' + pushd ${{ inputs.working-directory }} + mvn help:evaluate -Dexpression=releaseNumberSDK ${{ inputs.extra-maven-args }} --quiet '-Doutput=releaseNumberSDK-value.txt' streamVersion=$( Date: Fri, 18 Apr 2025 08:18:23 +0200 Subject: [PATCH 2/3] [Build] Enable automated version increments for eclipse.platform.releng Set up for this repository the workflow for automated version increments in pull-requests added via - https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/pull/2352 But only for the projects in the 'eclipse.platform.releng' in order to avoid building the entire SDK just to check for version increments. Missing version increments in sub-modules cannot be handled in this repository anyway. --- .github/workflows/pr-checks.yml | 22 ++++++++++++++++++++++ .github/workflows/version-increments.yml | 14 ++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/pr-checks.yml create mode 100644 .github/workflows/version-increments.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 00000000000..2e640ad7cdb --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,22 @@ +# Fast running checks for pull-requests + +name: Pull-Request Checks +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + branches: [ master ] + +jobs: + check-versions: + # Run this check only for PRs from forks and not for changes from bots created on branches in this repository + if: github.event.pull_request.head.repo.full_name != github.repository + uses: ./.github/workflows/checkVersions.yml + with: + botName: Eclipse Platform Bot + botMail: platform-bot@eclipse.org + # Only check 'eclipse.platform.releng' projects + working-directory: 'eclipse.platform.releng' + extra-maven-args: '-Pbuild-individual-bundles' diff --git a/.github/workflows/version-increments.yml b/.github/workflows/version-increments.yml new file mode 100644 index 00000000000..f964afb41e5 --- /dev/null +++ b/.github/workflows/version-increments.yml @@ -0,0 +1,14 @@ +name: Publish Version Check Results + +on: + workflow_run: + workflows: [ 'Pull-Request Checks' ] + types: [ completed ] + +jobs: + publish-version-check-results: + uses: ./.github/workflows/publishVersionCheckResults.yml + with: + botGithubId: eclipse-platform-bot + secrets: + githubBotPAT: ${{ secrets.PLATFORM_BOT_PAT }} From c1bace3df8412c60c7d99beb0e2e4eb40668879c Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Fri, 18 Apr 2025 08:21:22 +0200 Subject: [PATCH 3/3] [Build] Move all fast pull-request checks to pr-checks.yml --- .github/workflows/callFreezePeriodCheck.yml | 12 ------------ .github/workflows/pr-checks.yml | 4 ++++ 2 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .github/workflows/callFreezePeriodCheck.yml diff --git a/.github/workflows/callFreezePeriodCheck.yml b/.github/workflows/callFreezePeriodCheck.yml deleted file mode 100644 index f03a0d0b2f6..00000000000 --- a/.github/workflows/callFreezePeriodCheck.yml +++ /dev/null @@ -1,12 +0,0 @@ -# This workflow calls the Code-Freeze-Period check - -name: Check for Code Freeze Period - -on: - pull_request: - branches: - - 'master' - -jobs: - check-freeze-period: - uses: ./.github/workflows/verifyFreezePeriod.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 2e640ad7cdb..a33fd24222a 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -10,6 +10,10 @@ on: branches: [ master ] jobs: + check-freeze-period: + uses: ./.github/workflows/verifyFreezePeriod.yml + check-merge-commits: + uses: ./.github/workflows/checkMergeCommits.yml check-versions: # Run this check only for PRs from forks and not for changes from bots created on branches in this repository if: github.event.pull_request.head.repo.full_name != github.repository