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

github build actions on Linux failing due to Node16 runner removal #4064

Merged
merged 34 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
14807e7
PR TEST
andrew-m-leonard Nov 28, 2024
c240776
PR TEST
andrew-m-leonard Nov 28, 2024
5cad5f4
PR TEST
andrew-m-leonard Nov 28, 2024
7098cb6
PR TEST
andrew-m-leonard Nov 28, 2024
83fecfd
PR TEST
andrew-m-leonard Nov 28, 2024
0b11d43
PR TEST
andrew-m-leonard Nov 28, 2024
ac4af6e
PR TEST
andrew-m-leonard Nov 28, 2024
b886cbf
PR TEST
andrew-m-leonard Nov 28, 2024
98241db
Fix Node20 error starting docker container
andrew-m-leonard Nov 28, 2024
ace61e9
Fix Node20 error starting docker container
andrew-m-leonard Nov 28, 2024
e7e19f5
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
2c38758
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
11c682e
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
3484ba6
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
b9bdd4a
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
a5d6fb8
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
55cabc5
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
62f4d84
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
fc24584
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
c25ee99
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
27a193d
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
99452fd
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
60f4f5e
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
620a80f
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
4b88dd2
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
949f12f
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
5516b83
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
f7ae359
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
8a2094c
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
acb4e61
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
7523423
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
6c646eb
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
c8ebcec
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
85aaf6e
Fix Node20 error starting docker container
andrew-m-leonard Nov 29, 2024
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
73 changes: 42 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
build_linux:
name: Linux
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true'
container:
image: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -80,24 +76,23 @@ jobs:
variant: bisheng
image: adoptopenjdk/centos7_build_image
steps:
# pinned at v3 to as Node.js 20.x is not supported on Centos 7
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/checkout@v4

- name: Build Linux
run: ./build-farm/make-adopt-build-farm.sh
env:
JAVA_TO_BUILD: ${{ matrix.version }}
ARCHITECTURE: x64
VARIANT: ${{ matrix.variant }}
TARGET_OS: ${{ matrix.os }}
FILENAME: OpenJDK.tar.gz
# Don't set the OS as we use both linux and alpine-linux
PLATFORM_CONFIG_LOCATION: adoptium/temurin-build/master/build-farm/platform-specific-configurations
BUILD_ARGS: --create-sbom
CONFIGURE_ARGS: --with-native-debug-symbols=none

# pinned at v3 to as Node.js 20.x is not supported on Centos 7
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
- name: Build Linux within container image "${{ matrix.image }}"
run: |
docker run --rm -w /home/jenkins -v "$PWD":"/home/jenkins" \
-e "JAVA_TO_BUILD=${{ matrix.version }}" \
-e "ARCHITECTURE=x64" \
-e "VARIANT=${{ matrix.variant }}" \
-e "TARGET_OS=${{ matrix.os }}" \
-e "FILENAME=OpenJDK.tar.gz" \
-e "PLATFORM_CONFIG_LOCATION=adoptium/temurin-build/master/build-farm/platform-specific-configurations" \
-e "BUILD_ARGS=--create-sbom" \
-e "CONFIGURE_ARGS=--with-native-debug-symbols=none" \
"${{ matrix.image }}" \
./build-farm/make-adopt-build-farm.sh

- uses: actions/upload-artifact@v4
name: Collect and Archive Artifacts
with:
name: ${{matrix.version}}-${{matrix.os}}-${{matrix.variant}}
Expand All @@ -110,17 +105,33 @@ jobs:
- name: Set root of jdk image dir
run: |
imageroot=$(find "${HOME}/JDK" -name release -type f)
echo "TEST_JDK_HOME=$(dirname "${imageroot}")" >> "$GITHUB_ENV"
- name: Smoke test
uses: adoptium/run-aqa@6bacb4e732ad546eda1b09665b9067cdc87651f4 # v2
# TEST_JDK_HOME needs to be mapped to the docker container /home/jenkins mapping
echo "TEST_JDK_HOME=$(dirname "${imageroot}")" | sed "s,${HOME},/home/jenkins," >> "$GITHUB_ENV"

- name: Checkout aqa-tests repo
uses: actions/checkout@v4
with:
build_list: 'functional/buildAndPackage'
target: '_extended.functional'
vendor_testRepos: "${{ github.event.pull_request.head.repo.html_url }}.git"
vendor_testBranches: "${{ github.head_ref }}"
vendor_testDirs: "/test/functional"
# pinned at v3 to as Node.js 20.x is not supported on Centos 7
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
repository: adoptium/aqa-tests
path: aqa-tests
- name: Run Smoke test within container image "${{ matrix.image }}"
env:
VENDOR_REPOS: ${{ github.event.pull_request.head.repo.html_url }}.git
VENDOR_BRANCH: ${{ github.head_ref }}
run: |
WORK_DIR="${PWD//${HOME}//home/jenkins}"
docker run --rm -w /home/jenkins -v "$HOME":"/home/jenkins" \
-e "TEST_JDK_HOME=${TEST_JDK_HOME}" \
-e "BUILD_LIST=functional/buildAndPackage" \
"${{ matrix.image }}" \
sh -c "cd ${WORK_DIR}/aqa-tests && \
./get.sh --vendor_repos ${VENDOR_REPOS} \
--vendor_branches ${VENDOR_BRANCH} \
--vendor_dirs /test/functional && \
cd TKG && \
make compile && \
make _extended.functional"

- uses: actions/upload-artifact@v4
name: Collect and Archive SmokeTest Results
if: failure()
with:
Expand Down
Loading