Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Linux with JDK 21 #8848

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-Xmx1100m
-Xmx1400m
72 changes: 38 additions & 34 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
* It makes assumptions about plugins being installed, labels mapping to nodes that can build what is needed, etc.
*/

def failFast = false
// def failFast = false
def failFast = true

properties([
buildDiscarder(logRotator(numToKeepStr: '50', artifactNumToKeepStr: '3')),
disableConcurrentBuilds(abortPrevious: true)
])

def axes = [
platforms: ['linux', 'windows'],
jdks: [11, 17, 21],
// platforms: ['linux', 'windows'],
platforms: ['linux'],
// jdks: [11, 17, 21],
jdks: [21],
]

stage('Record build') {
Expand Down Expand Up @@ -89,6 +92,7 @@ axes.values().combinations {
session = readFile(sessionFile).trim()
}
def mavenOptions = [
'-Dtest=FilePathTest',
'-Pdebug',
'-Penable-jacoco',
'--update-snapshots',
Expand Down Expand Up @@ -206,37 +210,37 @@ axes.values().combinations {
}
}

def athAxes = [
platforms: ['linux'],
jdks: [17],
browsers: ['firefox'],
]
athAxes.values().combinations {
def (platform, jdk, browser) = it
builds["ath-${platform}-jdk${jdk}-${browser}"] = {
retry(conditions: [agent(), nonresumable()], count: 2) {
node('docker-highmem') {
// Just to be safe
deleteDir()
checkout scm
infra.withArtifactCachingProxy {
sh "bash ath.sh ${jdk} ${browser}"
}
junit testResults: 'target/ath-reports/TEST-*.xml', testDataPublishers: [[$class: 'AttachmentPublisher']]
/*
* Currently disabled, as the fact that this is a manually created subset will confuse Launchable,
* which expects this to be a full build. When we implement subsetting, this can be re-enabled using
* Launchable's subset rather than our own.
*/
/*
withCredentials([string(credentialsId: 'launchable-jenkins-acceptance-test-harness', variable: 'LAUNCHABLE_TOKEN')]) {
sh "launchable verify && launchable record tests --no-build --flavor platform=${platform} --flavor jdk=${jdk} --flavor browser=${browser} maven './target/ath-reports'"
}
*/
}
}
}
}
// def athAxes = [
// platforms: ['linux'],
// jdks: [17],
// browsers: ['firefox'],
// ]
// athAxes.values().combinations {
// def (platform, jdk, browser) = it
// builds["ath-${platform}-jdk${jdk}-${browser}"] = {
// retry(conditions: [agent(), nonresumable()], count: 2) {
// node('docker-highmem') {
// // Just to be safe
// deleteDir()
// checkout scm
// infra.withArtifactCachingProxy {
// sh "bash ath.sh ${jdk} ${browser}"
// }
// junit testResults: 'target/ath-reports/TEST-*.xml', testDataPublishers: [[$class: 'AttachmentPublisher']]
// /*
// * Currently disabled, as the fact that this is a manually created subset will confuse Launchable,
// * which expects this to be a full build. When we implement subsetting, this can be re-enabled using
// * Launchable's subset rather than our own.
// */
// /*
// withCredentials([string(credentialsId: 'launchable-jenkins-acceptance-test-harness', variable: 'LAUNCHABLE_TOKEN')]) {
// sh "launchable verify && launchable record tests --no-build --flavor platform=${platform} --flavor jdk=${jdk} --flavor browser=${browser} maven './target/ath-reports'"
// }
// */
// }
// }
// }
// }

builds.failFast = failFast
parallel builds
Expand Down