Skip to content

Commit 88190ff

Browse files
committed
Put all runners on ubuntu 22.04 for consistency and update debian container images
TODO: use variables to deduplicate these strings https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#example-contents-of-the-env-context Bug: b/407791243
1 parent 793292a commit 88190ff

File tree

6 files changed

+36
-37
lines changed

6 files changed

+36
-37
lines changed

.github/workflows/artifacts.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
export-debs:
1313
runs-on: ubuntu-22.04
1414
container:
15-
image: debian@sha256:4cb3f4198e4af2d03dffe6bfa4f3686773596494ef298f3882553d52e885634b # debian:bullseye-20240110
15+
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)
1616
steps:
1717
- name: apt update
1818
run: apt update -y && apt upgrade -y
@@ -32,10 +32,10 @@ jobs:
3232
name: debs
3333
path: debs.tar
3434
export-gce-image:
35-
needs: export-debs
36-
runs-on: ubuntu-22.04
35+
runs-on: ubuntu-22.04-4core
36+
needs: export-debs
3737
steps:
38-
- name: Free space
38+
- name: Free space
3939
run: rm -rf /opt/hostedtoolcache
4040
- name: Checkout repository
4141
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
@@ -89,4 +89,4 @@ jobs:
8989
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
9090
with:
9191
name: docker-image-arm64
92-
path: ${{ env.arm64_image_path }}
92+
path: ${{ env.arm64_image_path }}

.github/workflows/documentation.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ concurrency:
1616

1717
jobs:
1818
document-cvd:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
container:
21-
image: debian@sha256:3b6053ca925336c804e2d3f080af177efcdc9f51198a627569bfc7c7e730ef7e
21+
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)
2222
steps:
2323
- name: Checkout repository
2424
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
@@ -42,12 +42,12 @@ jobs:
4242
path: ./docs/
4343

4444
deploy:
45+
runs-on: ubuntu-22.04
46+
container:
47+
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)
4548
environment:
4649
name: github-pages
4750
url: ${{ steps.deployment.outputs.page_url }}
48-
runs-on: ubuntu-latest
49-
container:
50-
image: debian@sha256:3b6053ca925336c804e2d3f080af177efcdc9f51198a627569bfc7c7e730ef7e
5151
needs: document-cvd
5252
steps:
5353
- name: Deploy to GitHub Pages

.github/workflows/host-image-ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ on: [push]
2222

2323
jobs:
2424
build-installer-iso-job:
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-22.04
2626
container:
27-
image: debian@sha256:c2cedd7f80a4dd0f9f80d3699bd433ccf3de33ab63bfa2d4c4ba870c998222d6 # debian:bookworm-20240311
27+
image: debian@sha256:d12a7c2a24a396fc669fc4a571e482b75346dfc5af4a5c1140c8250eacdf3b3f # debian:bookworm-20250317 (amd64)
2828
env:
2929
DEBIAN_ISO_URL: https://deb.debian.org/debian/dists/bookworm/main/installer-arm64/current/images/netboot/mini.iso
3030
steps:
3131
- name: checkout repository
3232
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
3333
- name: Prepare building environment
3434
run: apt-get update && apt-get upgrade -y && apt-get install -y sudo wget libarchive-tools xorriso cpio xz-utils fdisk
35-
- name: Inject name and ID into preseed
35+
- name: Inject name and ID into preseed
3636
run: echo "CI_PROJECT_NAME=${{ github.event.repository.name }}" >> tools/cuttlefish-host-image-installer/preseed/after_install_1.sh && echo "CI_PIPELINE_ID=${{ github.repository}}/${{ github.workflow }}" >> tools/cuttlefish-host-image-installer/preseed//after_install_1.sh
3737
- name: Download Debian installer
3838
run: cd tools/cuttlefish-host-image-installer && wget -nv -c ${DEBIAN_ISO_URL} && ./addpreseed.sh && xz -9e preseed-mini.iso
@@ -46,12 +46,12 @@ jobs:
4646
uses: ./.github/workflows/reusable-build.yaml
4747

4848
build-metapackage-deb-job:
49-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-22.04
5050
steps:
5151
- name: checkout repository
5252
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
5353
- name: Prepare pbuilder environment
54-
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
54+
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
5555
- name: Prepare building environment
5656
run: sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y debconf-utils
5757
- name: Prepare tzdata
@@ -75,11 +75,11 @@ jobs:
7575
with:
7676
name: meta_gigamp_packages
7777
path: tools/cuttlefish-host-image-installer/meta_gigamp_packages.7z
78-
78+
7979
build-uboot-qemu-job:
80-
runs-on: ubuntu-latest
80+
runs-on: ubuntu-22.04
8181
container:
82-
image: debian@sha256:c2cedd7f80a4dd0f9f80d3699bd433ccf3de33ab63bfa2d4c4ba870c998222d6 # debian:bookworm-20240311
82+
image: debian@sha256:d12a7c2a24a396fc669fc4a571e482b75346dfc5af4a5c1140c8250eacdf3b3f # debian:bookworm-20250317 (amd64)
8383
env:
8484
UBOOT_GIT_URL: https://source.denx.de/u-boot/u-boot.git
8585
UBOOT_GIT_BRANCH: v2023.10
@@ -103,7 +103,7 @@ jobs:
103103
path: tools/cuttlefish-host-image-installer/u-boot.bin
104104

105105
test-install-cuttlefish-deb-job:
106-
runs-on: ubuntu-latest
106+
runs-on: ubuntu-22.04
107107
needs: build-cuttlefish-deb-job
108108
steps:
109109
- name: checkout repository
@@ -114,7 +114,7 @@ jobs:
114114
name: cuttlefish_packages_arm64
115115
path: "tools/cuttlefish-host-image-installer"
116116
- name: Prepare pbuilder environment
117-
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
117+
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
118118
- name: Prepare building environment
119119
run: sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y debconf-utils
120120
- name: Prepare tzdata
@@ -131,7 +131,7 @@ jobs:
131131
run: cd tools/cuttlefish-host-image-installer && ./tests/test-inside-pbuilder.sh stable arm64 ./tests/test-install-cuttlefish-deb.sh ./cuttlefish_packages.7z
132132

133133
test-install-metapackage-deb-job:
134-
runs-on: ubuntu-latest
134+
runs-on: ubuntu-22.04
135135
needs: build-metapackage-deb-job
136136
steps:
137137
- name: checkout repository
@@ -142,7 +142,7 @@ jobs:
142142
name: meta_gigamp_packages
143143
path: "tools/cuttlefish-host-image-installer"
144144
- name: Prepare pbuilder environment
145-
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
145+
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
146146
- name: Prepare building environment
147147
run: sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y debconf-utils
148148
- name: Prepare tzdata

.github/workflows/presubmit.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
staticcheck:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
strategy:
1313
matrix:
1414
dir: ["e2etests", "frontend/src/host_orchestrator", "frontend/src/libhoclient", "frontend/src/liboperator", "frontend/src/operator"]
@@ -27,7 +27,7 @@ jobs:
2727
install-go: false
2828
working-directory: ${{ matrix.dir }}
2929
build-orchestrator:
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-22.04
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
@@ -39,12 +39,11 @@ jobs:
3939
- name: Vet Test Build
4040
run: cd frontend/src/host_orchestrator && go vet ./... && go test ./... && go build ./...
4141
build-debian-package:
42-
runs-on: ubuntu-20.04-4core
42+
runs-on: ubuntu-22.04-4core
43+
container:
44+
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)
4345
if: ${{ always() && needs.build-orchestrator.result == 'success' }}
4446
needs: [build-orchestrator]
45-
container:
46-
# debian:bullseye
47-
image: debian@sha256:3b6053ca925336c804e2d3f080af177efcdc9f51198a627569bfc7c7e730ef7e
4847
steps:
4948
- name: Common bazel setup
5049
uses: bazel-contrib/setup-bazel@f3f50ea6791b9b0f4c4eeabba4507422426462f5 #aka 0.9.1
@@ -58,7 +57,7 @@ jobs:
5857
run: apt update -y && apt upgrade -y
5958
- name: install debuild dependencies
6059
run: apt install -y git devscripts config-package-dev debhelper-compat golang protobuf-compiler
61-
- name: go version
60+
- name: go version
6261
run: go version
6362
- name: checkout repository
6463
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
@@ -77,9 +76,9 @@ jobs:
7776
- name: install user debian package
7877
run: dpkg -i android-cuttlefish/cuttlefish-user_*_*64.deb || apt-get install -f -y
7978
build-cvd:
80-
runs-on: ubuntu-latest
81-
container:
82-
image: debian@sha256:3b6053ca925336c804e2d3f080af177efcdc9f51198a627569bfc7c7e730ef7e
79+
runs-on: ubuntu-22.04-4core
80+
container:
81+
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)
8382
steps:
8483
- name: Common bazel setup
8584
uses: bazel-contrib/setup-bazel@f3f50ea6791b9b0f4c4eeabba4507422426462f5 #aka 0.9.1
@@ -105,7 +104,7 @@ jobs:
105104
name: testlogs
106105
path: bazel-testlogs
107106
e2e-tests-orchestration:
108-
runs-on: ubuntu-22.04
107+
runs-on: ubuntu-22.04
109108
steps:
110109
# Do not reuse bazel cache among `e2e-tests-orchestration` runs.
111110
#
@@ -145,7 +144,7 @@ jobs:
145144
# [615 / 616] Executing genrule @@images//docker:orchestration_image_dev_tar; 11s linux-sandbox
146145
# //orchestration:create_fixed_build_id_and_target PASSED in 99.9s
147146
# //orchestration:create_local_image PASSED in 92.4s
148-
#
147+
#
149148
# The tests are running under 2 min, it's ok for now to execute them serially. The action's
150149
# bottleneck is building the debian packages: `@@images//docker/debs-builder-docker:debs_tar`.
151150
bazel test --sandbox_writable_path=$HOME --test_output=errors --local_test_jobs=1 --test_timeout=480 orchestration/...

.github/workflows/reusable-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [workflow_call]
44

55
jobs:
66
build-arm64-cuttlefish-deb-job:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88
steps:
99
- name: checkout repository
1010
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2

tools/buildimage/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ wget https://cloud.debian.org/images/cloud/bullseye/20240104-1616/debian-11-gene
2525
popd
2626

2727
out_dir=$(pwd)
28-
cp /tmp/debian-11-genericcloud-amd64-20240104-1616.raw ${out_dir}/disk.raw
28+
mv /tmp/debian-11-genericcloud-amd64-20240104-1616.raw ${out_dir}/disk.raw
2929

30+
bash ${script_dir}/increase_disk_size.sh -r ${out_dir}/disk.raw
3031
bash ${script_dir}/install_gce_guest_environment.sh -r ${out_dir}/disk.raw
3132
bash ${script_dir}/install_cf_packages.sh -r ${out_dir}/disk.raw -p $(pwd)
32-
bash ${script_dir}/increase_disk_size.sh -r ${out_dir}/disk.raw
3333

3434
tar -czvf image.tar.gz -C ${out_dir} disk.raw

0 commit comments

Comments
 (0)