Skip to content

Commit

Permalink
Merge branch 'master' into moreJcStress
Browse files Browse the repository at this point in the history
  • Loading branch information
karianna authored May 14, 2024
2 parents b0d5086 + 6f9a96d commit 50e9428
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 12 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/code-freeze.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# ********************************************************************************
# Copyright (c) 2023, 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made
# available under the terms of the Apache Software License 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: Apache-2.0
# ********************************************************************************

name: Code Freeze Bot

# Controls when the workflow will run
on:
pull_request_target:
branches: [ "v[0-9]+.[0-9]+.[0-9]+" ]
issue_comment:
types: [created]

Expand All @@ -12,6 +24,15 @@ permissions:
pull-requests: write

jobs:
codefreeze:
# Check if the pull request target branch matches the required branch-regex?
codefreeze_branch_check:
uses: adoptium/.github/.github/workflows/code-freeze-regex-branch.yml@main
with:
branch-regex: "^v[0-9]+.[0-9]+.[0-9]+$"

# Code freeze if branch-regex matches
codefreeze_if_branch_match:
needs: codefreeze_branch_check
uses: adoptium/.github/.github/workflows/code-freeze.yml@main
if: (github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.issue.pull_request)) && needs.codefreeze_branch_check.outputs.regex-matches == 'true'
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5

- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
Expand Down
10 changes: 10 additions & 0 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,16 @@ class Builder implements Serializable {
throw new Exception("[ERROR] Archive artifact timeout (${pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT} HOURS) for ${downstreamJobName}has been reached. Exiting...")
}

// Archive tap files as a single tar file
context.sh "find . -type f -name '*.tap' -exec tar -czf AQAvitTapFiles.tar.gz {} + "
try {
context.timeout(time: pipelineTimeouts.ARCHIVE_ARTIFACTS_TIMEOUT, unit: 'HOURS') {
context.archiveArtifacts artifacts: "AQAvitTapFiles.tar.gz"
}
} catch (FlowInterruptedException e) {
throw new Exception("[ERROR] Archive AQAvitTapFiles.tar.gz timeout Exiting...")
}

copyArtifactSuccess = true
if (release) {
def (String releaseToolUrl, String releaseComment) = publishBinary(config)
Expand Down
15 changes: 9 additions & 6 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,6 @@ class Build {
We run two jobs if we have a JRE (see https://github.com/adoptium/temurin-build/issues/1751).
*/
private void buildWindowsInstaller(VersionInfo versionData, String filter, String category) {
def nodeFilter = "${buildConfig.TARGET_OS}&&wix"

def buildNumber = versionData.build

if (versionData.major == 8) {
Expand All @@ -813,6 +811,12 @@ class Build {
// Get version patch number if one is present
def patch_version = versionData.patch ?: 0

def INSTALLER_JVM = "${buildConfig.VARIANT}"
// if variant is temurin set param as hotpot
if (buildConfig.VARIANT == 'temurin') {
INSTALLER_JVM = 'hotspot'
}

// Execute installer job
def installerJob = context.build job: 'build-scripts/release/create_installer_windows',
propagate: true,
Expand All @@ -827,9 +831,8 @@ class Build {
context.string(name: 'PRODUCT_BUILD_NUMBER', value: "${buildNumber}"),
context.string(name: 'MSI_PRODUCT_VERSION', value: "${versionData.msi_product_version}"),
context.string(name: 'PRODUCT_CATEGORY', value: "${category}"),
context.string(name: 'JVM', value: "${buildConfig.VARIANT}"),
context.string(name: 'JVM', value: "${INSTALLER_JVM}"),
context.string(name: 'ARCH', value: "${INSTALLER_ARCH}"),
['$class': 'LabelParameterValue', name: 'NODE_LABEL', label: "${nodeFilter}"]
]
context.copyArtifacts(
projectName: 'build-scripts/release/create_installer_windows',
Expand Down Expand Up @@ -2009,13 +2012,13 @@ class Build {
context.docker.image(buildConfig.DOCKER_IMAGE).pull()
}
}
// Store the pulled docker image digest as 'buildinfo'
dockerImageDigest = context.sh(script: "docker inspect --format='{{.RepoDigests}}' ${buildConfig.DOCKER_IMAGE}", returnStdout:true)
}
} catch (FlowInterruptedException e) {
throw new Exception("[ERROR] Controller docker image pull timeout (${buildTimeouts.DOCKER_PULL_TIMEOUT} HOURS) has been reached. Exiting...")
}
}
// Store the pulled docker image digest as 'buildinfo'
dockerImageDigest = context.sh(script: "docker inspect --format='{{.RepoDigests}}' ${buildConfig.DOCKER_IMAGE}", returnStdout:true)

// Use our dockerfile if DOCKER_FILE is defined
if (buildConfig.DOCKER_FILE) {
Expand Down
19 changes: 17 additions & 2 deletions pipelines/build/devkit/make_devkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,24 @@ if [ "${BASE_OS}" = "rhel" ]; then
BASE_OS=Centos
fi

# Perform devkit build
# Perform "bootstrap" devkit build
echo "Building 'bootstrap' DevKit toolchain, to be used to build the final DevKit..."
cd make/devkit && pwd && make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_OS_VERSION=${BASE_OS_VERSION}
find ../../build/devkit -type f -print

# Move "bootstrap" devkit toolchain to a new folder and setup gcc toolchain to point at it
cd ../..
mv build/devkit/result/${devkit_target}-to-${devkit_target} build/bootstrap_${devkit_target}-to-${devkit_target}
export CC=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin/gcc
export CXX=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin/g++
export LD_LIBRARY_PATH=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/lib64
export PATH=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin:$PATH
gcc --version

# Make final "DevKit" using the bootstrap devkit
rm -rf build/devkit
echo "Building 'final' DevKit toolchain, using 'bootstrap' toolchain in $(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}"
cd make/devkit && pwd && make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_OS_VERSION=${BASE_OS_VERSION}

# Back to original folder
cd ../../..

Expand Down
3 changes: 3 additions & 0 deletions pipelines/jobs/configurations/jdk11u_evaluation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ targetConfigurations = [
// ]
]

// 08:05 Sat - Weekend schedule so we get riscv64Linux HEAD builds, since they don't operate regular build tagging...
triggerSchedule_weekly = 'TZ=UTC\n05 08 * * 6'

// scmReferences to use for weekly evaluation build
weekly_evaluation_scmReferences = [
'hotspot' : '',
Expand Down
3 changes: 3 additions & 0 deletions pipelines/jobs/configurations/jdk17u_release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ targetConfigurations = [
],
'arm32Linux' : [
'temurin'
],
'riscv64Linux': [
'temurin'
]
]

Expand Down

0 comments on commit 50e9428

Please sign in to comment.