Skip to content

Run Buildpack preflight test using local Docker. - #5172

Merged
NullHypothesis merged 2 commits into
masterfrom
use-local-only-build
Sep 4, 2026
Merged

Run Buildpack preflight test using local Docker.#5172
NullHypothesis merged 2 commits into
masterfrom
use-local-only-build

Conversation

@NullHypothesis

Copy link
Copy Markdown
Contributor

Preflight tests share an organization-wide remote builder app. This causes a conflict for the TestDeploy preflight test: The "Buildpack" test wants a remote Docker/RCHAB builder whereas the "Dockerfile" test wants a BuildKit builder. Both use the "remote-docker-builder" app role despite exposing incompatible APIs and that has been causing problems when both tests run in parallel.

To fix this, use --local-only for the Buildpack test. This should fix the builder app race but it comes at the cost of losing some test coverage. We need to re-architect preflight tests to safely test these two different build paths.

Preflight tests share an organization-wide remote builder app. This
causes a conflict for the `TestDeploy` preflight test: The "Buildpack"
test wants a remote Docker/RCHAB builder whereas the "Dockerfile" test
wants a BuildKit builder. Both use the "remote-docker-builder" app role
despite exposing incompatible APIs and that has been causing problems
when both tests run in parallel.

To fix this, use `--local-only` for the Buildpack test. This should fix
the builder app race but it comes at the cost of losing some test
coverage. We need to re-architect preflight tests to safely test these
two different build paths.
@NullHypothesis

Copy link
Copy Markdown
Contributor Author

@mattp-fly, would you mind taking a look at this? Git history tells me that you're quite familiar with that code :)

@NullHypothesis

Copy link
Copy Markdown
Contributor Author

This should fix the builder app race but it comes at the cost of losing some test coverage.

We can't afford to have flyctl's CI be this brittle. Some lost test coverage is a fair price to pay for a more robust CI. I'm gonna go ahead and merge this.

@NullHypothesis
NullHypothesis merged commit 1f9a546 into master Sep 4, 2026
37 of 38 checks passed
@NullHypothesis
NullHypothesis deleted the use-local-only-build branch September 4, 2026 19:45
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.

1 participant