Repository navigation
K2GO-567 feat(ci): pre-build test belt that gates the rootfs bake - #757
Merged
Merged
Conversation
Add tools/rootfs-builder/tests/ (by area/feature) and an independent prebuild-tests.yml that runs the dash-node tests plus contract tests against the real + patched upstream artifacts, then gates the bake (bake-rootfs.yml needs it, runs first). First test: the maps FQR contract (tests/maps/fqr), which fails fast if upstream drops the .fqr/meta.json{bbox} layout the in-app list and delete depend on.
…GO-566) A second, independent belt test: an existing <name>.fqr region must be listed by dash-node (listFqrRegions) so it can be managed and deleted. Fails without K2GO-566 (listFqrRegions absent, the in-app list was empty), passes with it. Independent of the upstream contract test: that checks upstream's format, this checks our code consumes it.
workflow_dispatch only shows in the UI for workflows on the default branch, so add a pull_request trigger. The belt then runs automatically on every PR to main (and still gates the bake via workflow_call).
…e bake gate A workflow_dispatch boolean run_prebuild_tests (default true) lets a bake bypass the pre-build belt when needed; by default the belt still runs first and gates. The bake job uses always() + result checks so toggling the belt off skips it WITHOUT auto-skipping the bake, while a belt FAILURE still blocks the bake.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes
Why
Verifications
Notes