-
Notifications
You must be signed in to change notification settings - Fork 141
ci: Consolidate and cleanup workflows #1646
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 'Bootc Ubuntu Setup' | ||
description: 'Default host setup' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
# We really want support for heredocs | ||
- name: Update podman and install just | ||
shell: bash | ||
run: | | ||
set -eux | ||
# Require the runner is ubuntu-24.04 | ||
IDV=$(. /usr/lib/os-release && echo ${ID}-${VERSION_ID}) | ||
test "${IDV}" = "ubuntu-24.04" | ||
# plucky is the next release | ||
echo 'deb http://azure.archive.ubuntu.com/ubuntu plucky universe main' | sudo tee /etc/apt/sources.list.d/plucky.list | ||
sudo apt update | ||
# skopeo is currently older in plucky for some reason hence --allow-downgrades | ||
sudo apt install -y --allow-downgrades crun/plucky podman/plucky skopeo/plucky just | ||
# The default runners have TONS of crud on them... | ||
- name: Free up disk space on runner | ||
shell: bash | ||
run: | | ||
sudo df -h | ||
unwanted=('^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*' | ||
azure-cli google-chrome-stable firefox mono-devel) | ||
for x in ${unwanted[@]}; do | ||
sudo apt-get remove -y $x > /dev/null | ||
done | ||
# Start other removal operations in parallel | ||
sudo docker image prune --all --force > /dev/null & | ||
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android & | ||
# Wait for all background processes to complete | ||
wait | ||
sudo df -h | ||
# This is the default on e.g. Fedora derivatives, but not Debian | ||
- name: Enable unprivileged /dev/kvm access | ||
shell: bash | ||
run: | | ||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
ls -l /dev/kvm | ||
# Used by a few workflows, but generally useful | ||
- name: Set architecture variable | ||
id: set_arch | ||
shell: bash | ||
run: echo "ARCH=$(arch)" >> $GITHUB_ENV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cgwalters, Do we still need to run all those test when
push
tomain
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not? I am not aware of anyone monitoring the actions that run post-merge (though of course we could start doing so).
What it would catch is semantic merge conflicts, but the more I think about it the more I feel we should go to merge queues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we can move integration test into
merge_queue
trigger and keep the rest test inpull_request
trigger?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think that should block this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need to run same test twice (
pull_request
andmerge_queue
).We can land this PR first and make changes when we enable
merge_queue
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK can you approve the PR please?