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

Use a CI matrix in Actions workflow #432

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ca6baa9
Fix: CI used wrong project and keys
hoh Oct 6, 2023
1339097
WIP: Add SSH key
hoh Oct 6, 2023
fb7f424
Fix: CI had no timeout on `until ssh-keyscan`
hoh Oct 6, 2023
626bdf6
fixup! Disable teardown
hoh Oct 6, 2023
2b39a98
fix: wait longer
hoh Oct 6, 2023
1a518d5
keep vm again
hoh Oct 6, 2023
5a50989
Try using older runtime
hoh Oct 6, 2023
1c4aba4
Fix: Errors from CI did not appear on Sentry
hoh Oct 9, 2023
edab218
fixup! Fix: Errors from CI did not appear on Sentry
hoh Oct 9, 2023
e548aca
Fix: Increase timeout on VM startup.
nesitor Oct 10, 2023
6476b95
WIP: Use a Matrix for CI
hoh Oct 10, 2023
361b554
fixup! WIP: Use a Matrix for CI
hoh Oct 10, 2023
9073f9e
fixup! WIP: Use a Matrix for CI
hoh Oct 10, 2023
8c6d2e2
fixup! WIP: Use a Matrix for CI
hoh Oct 10, 2023
2c79877
fixup! WIP: Use a Matrix for CI
hoh Oct 10, 2023
772a7f2
CI: Build packages using CI matrix
hoh Oct 10, 2023
acd2017
fixup! fixup! WIP: Use a Matrix for CI
hoh Oct 10, 2023
5700772
Fix: Fixed droplet name to use an os alias.
nesitor Oct 10, 2023
7718db5
keep vm working
nesitor Oct 10, 2023
0779ac6
Fix: Don't check lifespan field to maintain retro-compatibility with …
nesitor Oct 10, 2023
58a139f
fixup! Fix: Don't check lifespan field to maintain retro-compatibilit…
hoh Oct 10, 2023
812abb1
fixup! fixup! Fix: Don't check lifespan field to maintain retro-compa…
hoh Oct 10, 2023
d0017b9
Fix: Check distributions one by one.
nesitor Oct 10, 2023
e13ebc9
Fix: Add a bit of delay to supervisor restart.
nesitor Oct 10, 2023
cb80c52
Fix: Move configuration to build step to avoid restart the supervisor…
nesitor Oct 10, 2023
df78100
Fix Test first with Ubuntu 22.04
nesitor Oct 10, 2023
834af8f
Fix: Trying with another diagnostic vm based on Debian 12.
nesitor Oct 10, 2023
fb34e40
Fix: Trying again another diagnostic vm based on Debian 12 with new r…
nesitor Oct 10, 2023
9abfd5c
Fix: Return to original runtime.
nesitor Oct 10, 2023
be8cf66
Fix: Test with new way to use lifespan.
nesitor Oct 10, 2023
dac4837
Fix: Change again diagnosis vm.
nesitor Oct 10, 2023
dd8edfb
Fix: Try with runtime fixing issue with the middleware.
nesitor Oct 11, 2023
cc83172
Fix: Disable lifespan feature.
nesitor Oct 11, 2023
c808e7f
Fix: Try with last version of firecracker.
nesitor Oct 11, 2023
3c4ca96
Fix: If fails restart the supervisor and try again.
Oct 12, 2023
9aa395e
Fix: fix if condition.
Oct 12, 2023
6308fe2
Fix: Try with a second job for the test.
Oct 12, 2023
e10fdd7
Fix: Improve this second step to execute only if first fails.
Oct 12, 2023
37a74ea
Fix: Fix step launch state.
Oct 12, 2023
1efaebc
Fix: Added missing env variable
Oct 12, 2023
a459c3d
Fix: Delete droplet when finishes
Oct 12, 2023
6e7d9a5
Fix: Enable all the platform tests.
Oct 12, 2023
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
105 changes: 31 additions & 74 deletions .github/workflows/build-deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@ on:
push

jobs:
build_deb_debian_11:
name: "Build Debian Package"
build_deb:
name: "Build ${{ matrix.os }} Package"
runs-on: ubuntu-latest

strategy:
matrix:
os: ["debian-11", "debian-12", "ubuntu-22.04"]
include:
- os: "debian-11"
make_target: "all-podman-debian-11"
artifact_name: "aleph-vm.debian-11.deb"
- os: "debian-12"
make_target: "all-podman-debian-12"
artifact_name: "aleph-vm.debian-12.deb"
- os: "ubuntu-22.04"
make_target: "all-podman-ubuntu-2204"
artifact_name: "aleph-vm.ubuntu-22.04.deb"
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -15,79 +27,25 @@ jobs:
fetch-depth: 0

- run: |
cd packaging && make all-podman-debian-11 && cd ..
cd packaging && make ${{ matrix.make_target }} && cd ..
ls packaging/target

- uses: actions/upload-artifact@v3
with:
name: aleph-vm.debian-11.deb
path: packaging/target/aleph-vm.debian-11.deb
name: ${{ matrix.artifact_name }}
path: packaging/target/${{ matrix.artifact_name }}

build_deb_debian_12:
name: "Build Debian Package"
build_rootfs:
name: "Build runtime aleph-${{ matrix.os }}-python"
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fetch the whole history for all tags and branches (required for aleph.__version__)
fetch-depth: 0

- run: |
cd packaging && make all-podman-debian-12 && cd ..
ls packaging/target

- uses: actions/upload-artifact@v3
with:
name: aleph-vm.debian-12.deb
path: packaging/target/aleph-vm.debian-12.deb

build_deb_ubuntu_22_04:
name: "Build Ubuntu Package"
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fetch the whole history for all tags and branches (required for aleph.__version__)
fetch-depth: 0

- run: |
cd packaging && make all-podman-ubuntu-2204 && cd ..
ls packaging/target

- uses: actions/upload-artifact@v3
with:
name: aleph-vm.ubuntu-22.04.deb
path: packaging/target/aleph-vm.ubuntu-22.04.deb

build_rootfs_debian_11:
name: "Build runtime aleph-debian-11-python"
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc

- run: |
sudo apt update
sudo apt install -y debootstrap
cd runtimes/aleph-debian-11-python && sudo ./create_disk_image.sh && cd ../..

- uses: actions/upload-artifact@v3
with:
name: aleph-debian-11-python.squashfs
path: runtimes/aleph-debian-11-python/rootfs.squashfs

build_rootfs_debian_12:
name: "Build runtime aleph-debian-12-python"
runs-on: ubuntu-latest

strategy:
matrix:
os: ["debian-11", "debian-12"]
include:
- os: "debian-11"
artifact_name: "aleph-debian-11-python.squashfs"
- os: "debian-12"
artifact_name: "aleph-debian-12-python.squashfs"
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -98,17 +56,16 @@ jobs:
- run: |
sudo apt update
sudo apt install -y debootstrap
cd runtimes/aleph-debian-12-python && sudo ./create_disk_image.sh && cd ../..
cd runtimes/aleph-${{ matrix.os }}-python && sudo ./create_disk_image.sh && cd ../..

- uses: actions/upload-artifact@v3
with:
name: aleph-debian-12-python.squashfs
path: runtimes/aleph-debian-12-python/rootfs.squashfs
name: ${{ matrix.artifact_name }}
path: runtimes/aleph-${{ matrix.os }}-python/rootfs.squashfs

build_example_venv_volume:
name: "Build example squashfs volume using Docker"
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-new-runtime-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
run: |
doctl compute droplet create \
--image debian-12-x64 \
--size c-2 \
--region fra1 \
--vpc-uuid 992896c8-c089-4da3-9288-f81e28c095a4 \
--size c-4 \
--region ams3 \
--vpc-uuid 5976b7bd-4417-49e8-8522-672aaa920c30 \
--enable-ipv6 \
--ssh-keys b3:ff:08:7f:57:00:fd:7a:14:00:f2:35:0a:f6:e8:55 \
--ssh-keys ab:2b:25:16:46:6f:25:d0:80:63:e5:be:67:04:cb:64 \
aleph-vm-ci-runtime

- name: "Build custom runtime"
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/test-on-droplet-debian-11.yml

This file was deleted.

88 changes: 0 additions & 88 deletions .github/workflows/test-on-droplet-debian-12.yml

This file was deleted.

Loading
Loading