Skip to content

Commit 2ea71df

Browse files
authored
ci: prepare shared jobs for the Ubuntu 26.04 pool (#4679)
* ci: prepare shared jobs for the Ubuntu 26 pool Move hosted and private labels together and replace host-wide installer cleanup with run-owned Docker objects. Publish images only from master and keep the existing container OS cases. Poll the streaming test output instead of relying on interpreter startup timing. Run utility tests without changing host packages. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com> * build!: drop Ubuntu 20.04 support BREAKING CHANGE: Ubuntu 20.04 is no longer a supported installer or Docker build target. Use Ubuntu 22.04. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com> --------- Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
1 parent 08ddc64 commit 2ea71df

24 files changed

Lines changed: 58 additions & 70 deletions

‎.github/workflows/black.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
lint:
10-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
10+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1111
steps:
1212
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1313
- uses: psf/black@87928e6d6761a4a6d22250e1fee5601b3998086e # 26.5.1

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
analyze:
1818
name: Analyze ${{ matrix.language }}
1919
if: github.repository_owner != 'The-OpenROAD-Project-private'
20-
runs-on: ubuntu-24.04
20+
runs-on: ubuntu-26.04
2121
permissions:
2222
actions: read
2323
contents: read

‎.github/workflows/github-actions-cron-sync-fork-from-upstream.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
Sync-Branch-From-Upstream:
1616
name: Automatic sync 'master' from The-OpenROAD-Project/OpenROAD-flow-scripts
17-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
17+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1818

1919
# Only allow one action to run at a time.
2020
concurrency: sync-branch-from-upstream

‎.github/workflows/github-actions-cron-test-installer.yml‎

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,29 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
os: ["ubuntu20.04", "ubuntu22.04"]
33-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
32+
os: ["ubuntu22.04"]
33+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
34+
env:
35+
INSTALLER_TAG: installer-${{ github.run_id }}-${{ github.run_attempt }}
36+
INSTALLER_CONTAINER: installer-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.os }}
3437
steps:
3538
- name: Check out repository code
3639
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3740
with:
3841
fetch-depth: 1
3942
submodules: recursive
40-
- name: Network Setup
41-
run: |
42-
sudo apt-get update
43-
sudo apt-get install -y bridge-utils
44-
sudo pkill docker
45-
sudo iptables -t nat -F
46-
sudo ifconfig docker0 down
47-
sudo brctl delbr docker0
48-
sudo service docker restart
4943
- name: Run installer
5044
run: |
51-
./etc/DockerHelper.sh create -target=dev -os=${{ matrix.os }} -tag=latest
45+
./etc/DockerHelper.sh create -target=dev -os=${{ matrix.os }} -tag="$INSTALLER_TAG"
5246
- name: Build project
5347
run: |
54-
./etc/DockerHelper.sh create -target=builder -os=${{ matrix.os }} -tag=latest
48+
./etc/DockerHelper.sh create -target=builder -os=${{ matrix.os }} -tag="$INSTALLER_TAG"
5549
- name: Test build
5650
run: |
5751
cmd="source ./env.sh ; yosys -help ; openroad -help ; make -C flow ;"
58-
docker run openroad/flow-${{ matrix.os }}-builder /bin/bash -c "${cmd}"
52+
docker run --rm --name "$INSTALLER_CONTAINER" "openroad/flow-${{ matrix.os }}-builder:$INSTALLER_TAG" /bin/bash -c "${cmd}"
53+
- name: Clean up this installer run
54+
if: always()
55+
run: |
56+
docker rm -f "$INSTALLER_CONTAINER" || true
57+
docker image rm "openroad/flow-${{ matrix.os }}-builder:$INSTALLER_TAG" "openroad/flow-${{ matrix.os }}-dev:$INSTALLER_TAG" || true

‎.github/workflows/github-actions-cron-update-OR.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
update:
15-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1616
steps:
1717
- name: Check out repository code recursively
1818
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/github-actions-cron-update-yosys.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
update:
15-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1616
steps:
1717
- name: Check out repository code recursively
1818
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/github-actions-cron-util-test.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@ jobs:
2020
testUtilScripts:
2121
strategy:
2222
fail-fast: false
23-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
23+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
2424
steps:
2525
- name: Check out repository code
2626
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727
with:
2828
fetch-depth: 1
2929
submodules: recursive
30-
- name: Install Dependencies
31-
run: |
32-
sudo apt update
33-
sudo apt install -y python3-pip
3430
- name: Run Tests
3531
run: |
3632
cd flow/test
3733
for file in *.py; do
38-
python "$file"
34+
python3 "$file"
3935
done

‎.github/workflows/github-actions-lint-tcl.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
Tclint:
16-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
16+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1717
steps:
1818
- name: Checkout repository
1919
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/github-actions-manual-update-rules.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
update:
15-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1616
strategy:
1717
fail-fast: false
1818
steps:

‎.github/workflows/github-actions-on-delete-cleanup.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
Delete-From-Staging:
1313
name: Delete branch from staging
1414

15-
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-24.04' }}
15+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
1616

1717
permissions:
1818
# Read-only access so we don't accidentally try to push to *this* repository.

0 commit comments

Comments
 (0)