Skip to content

CI: don't run on multiple base images#2832

Merged
sporksmith merged 8 commits intoshadow:mainfrom
sporksmith:no-base-matrix
Apr 4, 2023
Merged

CI: don't run on multiple base images#2832
sporksmith merged 8 commits intoshadow:mainfrom
sporksmith:no-base-matrix

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

It turns out that the GitHub Action Ubuntu images both use the same
kernel version, so we probably don't get much value out of running on
multiple base images.

Both non-deprecated images currently use kernel 5.15.0-1034-azure.

https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md

Since our tests all run in containers, it's probably not worth pinning the base image to a specific image of Ubuntu at all, so this also changes the base images to "ubuntu-latest", which is currently 22.04.

@sporksmith sporksmith added this to the Code health and maintenance milestone Apr 3, 2023
@github-actions github-actions bot added the Component: Testing Unit and integration tests and frameworks label Apr 3, 2023
sporksmith and others added 5 commits April 3, 2023 20:29
This is one of the planned breaking changes for Shadow 3.0.
shadow#2496
This is similar to the existing `read` method, and I think it is a
little nicer to use than `copy_to_ptr` in simpler cases.
@sporksmith sporksmith requested a review from stevenengler April 3, 2023 22:38
@sporksmith
Copy link
Copy Markdown
Contributor Author

@robgjansen will need to change the required checks before it can be merged. No rush on this one; we could wait to discuss it in the group meeting.

@robgjansen
Copy link
Copy Markdown
Member

Done. Please double check that the correct tests are set as required and let me know if we need any more tweaks.

It turns out that the GitHub Action Ubuntu images both use the same
kernel version, so we probably don't get much value out of running on
multiple base images.

Both non-deprecated images currently use kernel 5.15.0-1034-azure.

https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
Some of these were intentionally running on the oldest available base
image to try to test on an older kernel. Since it turns out GitHub's
Ubuntu base images use the same kernel version, we might as well run on
the newest one.

Similarly, since all of these tests run in containers, it's probably not
worth pinning the base image to a specific version of Ubuntu.
@sporksmith sporksmith enabled auto-merge April 4, 2023 14:30
@github-actions github-actions bot added Component: Documentation In-repository documentation, under docs/ Component: Main Composing the core Shadow executable labels Apr 4, 2023
@sporksmith sporksmith merged commit b98cbb9 into shadow:main Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Documentation In-repository documentation, under docs/ Component: Main Composing the core Shadow executable Component: Testing Unit and integration tests and frameworks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants