Skip to content

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Oct 12, 2025

What

Extract test job into separate reusable workflow file. Run tests after pushing images instead of as part of build workflow.

Why

In PRs in this repo it is helpful if images are pushed regardless of whether they pass tests or not. This is actually how the workflow behaved prior to the refacctor in #778, but when I did the refactor I wanted the initial refactor to be simpler. This is particularly helpful as we add things like nightly builds to the main branch and on a schedule. Those nightly images need pushing regardless of whether their tests pass and it's more convenient if they push immediately rather than having to wait for a test run to complete. This should be safe to push before test on main because by the time a change makes it to main it has already passed all tests on the pull request.

The build.yml file is intended to be used externally too where tests can run as part of the build, and that's why tests can still be triggered from within the build.yml.

This is a little more complicated than I'd like it to be because of the two ways to use build.yml. I think it might make sense to consider in a follow up further refactoring the entry point of the third party uses of the workflow into another workflow that calls build and test workflows. But I'd like to do that separately.

Merging

This change is intended to merge to main after #792.

@leighmcculloch leighmcculloch requested a review from fnando October 12, 2025 21:25
@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Oct 12, 2025
@leighmcculloch leighmcculloch changed the base branch from main to add-continue-on-error-test-config October 12, 2025 21:25
Base automatically changed from add-continue-on-error-test-config to main October 13, 2025 21:00
@leighmcculloch leighmcculloch marked this pull request as ready for review October 13, 2025 22:03
@leighmcculloch leighmcculloch merged commit d6b7f7a into main Oct 13, 2025
79 checks passed
@leighmcculloch leighmcculloch deleted the push-before-test branch October 13, 2025 22:04
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants