feat(inventory): require ubi9-base-micro python gate - #72
Open
NWarila wants to merge 1 commit into
Open
Conversation
Add the existing python / required reducer to ubi9-base-micro required checks so selected Python evidence gates merges for actors not exercising a bypass. Document its normally scheduled pull-request reporting behavior and the path-selected upstream evidence jobs.
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.
Summary
python / requiredreducer toubi9-base-micro's required status checks.Applying this inventory makes
python / requireda required status check that blocks merges for any actor not exercising a bypass. It transitively gates the selected upstream Python evidence jobs; it does not force those jobs to run when change detection selects no Python-related path. The Pull Request Gate's always-on Repository Admin bypass remains intentional, so this does not make the Python chain unbypassable. The framework setsintegration_id = null, so the context is not app-bound.Reporting and availability
GitHub reports the exact check-run name
python / requiredon the currentubi9-base-micromaincommit. A required name that never reports would leave merges blocked indefinitely. The activeBuild base pythonworkflow triggers onpull_requesttargetingmainwith no workflow-levelpathsfilter, and itspython-requiredreducer usesif: ${{ always() }}.The reducer therefore reports for every admitted, normally scheduled pull-request run targeting
main. This adds a fail-closed availability dependency: a first-time external contributor's run can await maintainer approval under thefirst_time_contributorsActions policy, while an outage, cancellation, or a pull request that breaks or deletes the workflow can prevent the report. Those cases block rather than silently pass and are recoverable by rerunning or using the admin bypass. If a merge queue is added later, this workflow must also gain amerge_grouptrigger so merge-queue commits receive the context.Apply behavior
A push to
mainpassesapply=falseand cannot apply managed GitHub changes, but it is NOT isolatedplan_only— the caller does not passplan_only, so the run uses the real S3 backend and may perform state adoption imports. The ruleset change takes effect only on a laterterraform-deploydispatch withapply=true, and that dispatch reconciles the whole assembled inventory — so the operator must review the preceding push plan for unrelated drift before dispatching.Validation
python / requiredreports successfully.pull_requesttrigger formain; reducer conditionif: ${{ always() }}.git diff --checkpass.