Skip to content

Commit 84d6fa3

Browse files
authored
Merge branch 'eclipse-platform:master' into master
2 parents e8da753 + 3917520 commit 84d6fa3

19 files changed

Lines changed: 86 additions & 45 deletions

File tree

.github/workflows/publishVersionCheckResults.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
- name: Find existing information comment
9696
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
9797
id: search-comment
98-
if: steps.fetch-patch.outputs.pull_request_number
98+
if: always() && steps.fetch-patch.outputs.pull_request_number
9999
with:
100100
body-regex: '^${{ env.COMMENT_FIRST_LINE }}'
101101
issue-number: ${{ steps.fetch-patch.outputs.pull_request_number }}
@@ -104,7 +104,7 @@ jobs:
104104

105105
- name: Add or update information comment
106106
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
107-
if: always()
107+
if: always() && steps.search-patch.outputs.result
108108
env:
109109
FILELIST: ${{ steps.git-commit.outputs.file-list }}
110110
with:
@@ -113,13 +113,21 @@ jobs:
113113
const fs = require('fs')
114114
const fileList = process.env.FILELIST
115115
if (fileList) { // if list is empty, no versions were changed
116+
const prNumber = '${{ steps.fetch-patch.outputs.pull_request_number }}'
117+
const pr = await github.rest.pulls.get({
118+
pull_number: prNumber,
119+
...context.repo
120+
})
121+
const applyChangeMessagePart = pr.data.maintainer_can_modify
122+
? "An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the _git patch_."
123+
: "> [!WARNING]\n> :construction: **This PR cannot be modified by maintainers** because edits are disabled or it is created from an organization repository. To obtain the required changes apply the _git patch_ manually as an additional commit."
116124
const commentBody = `
117125
${{ env.COMMENT_FIRST_LINE }}.
118126
Therefore the following files need a version increment:
119127
\`\`\`
120128
${fileList}
121129
\`\`\`
122-
An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the _git patch_.
130+
${applyChangeMessagePart}
123131
<details>
124132
<summary>Git patch</summary>
125133
@@ -130,7 +138,6 @@ jobs:
130138
131139
Further information are available in [Common Build Issues - Missing version increments](https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/wiki/Common-Build-Issues#missing-version-increments).
132140
`.trim()
133-
const prNumber = '${{ steps.fetch-patch.outputs.pull_request_number }}'
134141
const existingCommentId = '${{ steps.search-comment.outputs.comment-id }}'
135142
if (existingCommentId) {
136143
github.rest.issues.updateComment({...context.repo, comment_id: existingCommentId, body: commentBody })

JenkinsJobs/Releng/prepareNextDevCycle.jenkinsfile

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ pipeline {
8888
'''
8989
}
9090
}
91-
/*TODO: Test:
92-
- If deploying the parent POM works
93-
- If pushing works to aggr and submodules (e.g. pde)
94-
- if creation of milestones works in aggr-repo and submodules (e.g. PDE)
95-
- if PR createion works in aggr-repo and submodules (e.g. PDE)
96-
*/
9791
stage('Update Maven Version') {
9892
environment {
9993
MAVEN_ARGS = '-U -B -ntp'
@@ -215,8 +209,14 @@ pipeline {
215209
- Updating the previous release version to the current Release-Candidate: `${PREVIOUS_RELEASE_CANDIDATE_ID}`
216210
""".stripIndent(), prBranch)
217211

218-
def submoduleURLs = sh(script: "git submodule foreach --quiet 'git config remote.origin.url'", returnStdout: true).trim().split('\\s')
219-
for (submoduleURL in submoduleURLs) {
212+
def submodulePaths = sh(script: "git submodule --quiet foreach 'echo \$sm_path'", returnStdout: true).trim().split('\\s')
213+
for (submodulePath in submodulePaths) {
214+
def diff = sh(script:"cd ${submodulePath} && git diff HEAD origin/master --shortstat", returnStdout: true).trim()
215+
if (diff.isEmpty()) {
216+
echo "Skipping submodule without changes: ${submodulePath}"
217+
continue
218+
}
219+
def submoduleURL = sh(script: "cd ${submodulePath} && git config remote.origin.url", returnStdout: true).trim()
220220
// Extract repository path from e.g.: https://github.com/eclipse-platform/eclipse.platform.git
221221
def expectedPrefix = 'https://github.com/'
222222
def expectedSuffix = '.git'
@@ -242,8 +242,16 @@ pipeline {
242242
def organisations = [ 'eclipse-platform', 'eclipse-jdt', 'eclipse-pde', 'eclipse-equinox' ]
243243
for (organisation in organisations) {
244244
def repositories = listReposOfOrganization(organisation)
245-
echo "${organisation} repositories: ${repositories}"
246-
for (repository in repositories) {
245+
echo "${organisation} repositories: ${repositories.name}"
246+
for (repositoryData in repositories) {
247+
def repository = repositoryData.name
248+
if (repositoryData.archived) {
249+
echo "Skipping archived repository: ${repository}"
250+
continue
251+
} else if ('.eclipsefdn'.equals(repository)) {
252+
echo "Skipping .eclipsefdn repository of : ${organisation}"
253+
continue
254+
}
247255
createMilestone(organisation, repository, "${NEXT_RELEASE_VERSION} M1", "${NEXT_RELEASE_VERSION} Milestone 1", "${M1_DATE}")
248256
createMilestone(organisation, repository, "${NEXT_RELEASE_VERSION} M2", "${NEXT_RELEASE_VERSION} Milestone 2", "${M2_DATE}")
249257
createMilestone(organisation, repository, "${NEXT_RELEASE_VERSION} M3", "${NEXT_RELEASE_VERSION} Milestone 3", "${M3_DATE}")
@@ -291,7 +299,7 @@ def listReposOfOrganization(String orga) {
291299
if (!(response instanceof List) && (response.errors || (response.status && response.status != 201))) {
292300
error "Response contains errors:\n${response}"
293301
}
294-
return response.name
302+
return response
295303
}
296304

297305
/**
@@ -310,8 +318,6 @@ def createMilestone(String orga, String repo, String msTitle, String msDescripti
310318
} else {
311319
error "Response contains errors:\n${response}"
312320
}
313-
} else {
314-
echo 'Created successfully'
315321
}
316322
}
317323

JenkinsJobs/Releng/publishToMaven.jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ pipeline {
177177
}
178178

179179
def installMavenDaemon(String version) {
180-
return install('mvnd', "https://downloads.apache.org/maven/mvnd/${version}/maven-mvnd-${version}-linux-amd64.tar.gz")
180+
// Temporary workaround, until https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/6241#note_4109878 is really resolved
181+
return install('mvnd', 'https://download.eclipse.org/oomph/archive/maven-mvnd-1.0.2-linux-amd64.tar.gz')
181182
}
182183

183184

JenkinsJobs/YBuilds/Y_unit_tests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ def STREAMS = config.Streams
33

44
def TEST_CONFIGURATIONS = [
55
[os: 'linux' , ws:'gtk' , arch: 'x86_64' , javaVersion: 21, agentLabel: 'ubuntu-2404' , javaHome: "tool(type:'jdk', name:'temurin-jdk21-latest')" ],
6-
[os: 'linux' , ws:'gtk' , arch: 'x86_64' , javaVersion: 25, agentLabel: 'ubuntu-2404' , javaHome: "install('jdk', 'https://download.java.net/java/early_access/jdk25/21/GPL/openjdk-25-ea+21_linux-x64_bin.tar.gz')" ],
6+
[os: 'linux' , ws:'gtk' , arch: 'x86_64' , javaVersion: 25, agentLabel: 'ubuntu-2404' , javaHome: "install('jdk', 'https://download.java.net/java/early_access/jdk25/27/GPL/openjdk-25-ea+27_linux-x64_bin.tar.gz')" ],
77
[os: 'macosx', ws:'cocoa', arch: 'aarch64', javaVersion: 21, agentLabel: 'nc1ht-macos11-arm64', javaHome: "'/Library/Java/JavaVirtualMachines/jdk-21.0.5+11-arm64/Contents/Home'" ],
88
[os: 'macosx', ws:'cocoa', arch: 'x86_64' , javaVersion: 21, agentLabel: 'nc1ht-macos11-arm64', javaHome: "'/Library/Java/JavaVirtualMachines/jdk-21.0.5+11/Contents/Home'" ],
99
[os: 'win32' , ws:'win32', arch: 'x86_64' , javaVersion: 21, agentLabel: 'qa6xd-win11' , javaHome: "'C:\\\\Program Files\\\\Eclipse Adoptium\\\\jdk-21.0.5.11-hotspot'" ],

cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM opensuse/leap:15@sha256:797c4f17a3d7875e1477d89846b33fd0910b84612d926539c98e89e5aec82ea0
1+
FROM opensuse/leap:15@sha256:774b7e4b804f00b1e01d07b5192294efa93f370935f9971886899480b9adb57a
22

33
### user name recognition at runtime w/ an arbitrary uid - for OpenShift deployments
44
COPY scripts/uid_entrypoint /usr/local/bin/uid_entrypoint

eclipse.jdt.core

Submodule eclipse.jdt.core updated 27 files

eclipse.jdt.ui

Submodule eclipse.jdt.ui updated 111 files

eclipse.pde

Submodule eclipse.pde updated 39 files

eclipse.platform

Submodule eclipse.platform updated 712 files

0 commit comments

Comments
 (0)