Skip to content

Conversation

roypat
Copy link
Member

@roypat roypat commented Jul 10, 2025

  • build docker containers if docker.env is modified
  • always run check on PR, as its required for merging
  • allow manual triggering of action

Signed-off-by: Patrick Roy [email protected]### Summary of the PR

Please summarize here why the changes in this PR are needed.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

roypat added 3 commits July 10, 2025 09:53
Since the "docker container builds" sanity check is required for merging
(so that we can use auto-merge), it needs to always trigger, so drop the
filtering based on which files were modified.

There's the slight downside that it means we'll need to wait 3+ hours
even on PRs that dont actually touch the container, but those are very
rare from experience. If it ever becomes a nuisance, we can modify the
action to instead do the paths check inside the actual command step, and
return early.

Leave the check in the `push` target, so that we do not unnecessarily
build docker containers after merging though.

Signed-off-by: Patrick Roy <[email protected]>
It's better to build too many docker containers than too few, so let's
go with not triggering the build if we know that only files irrelevant
to the container are modified (instead of trying to explicitly list all
files that are relevant). This way, if the list is stale, we build "too
many" containers, whereas with the current solution, we build "too few"
containers (see for example rust-vmm#132).

Signed-off-by: Patrick Roy <[email protected]>
@roypat roypat force-pushed the github-action-qol branch from cff90e4 to 387f9a0 Compare July 10, 2025 08:53
@stefano-garzarella stefano-garzarella enabled auto-merge (rebase) July 10, 2025 08:55
@stefano-garzarella stefano-garzarella merged commit 25b775d into rust-vmm:main Jul 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants