Skip to content

test: mirror the job-gate drift guard onto mega-linter.yml #387

Backlog

Description

@jflowers

The job-set drift guard TestCIWorkflow_EveryJobHasGateDecision loads only test.yml and iterates its jobs alone, so a future job added to mega-linter.yml without a changes gate runs ungated on learnings-only pull requests without failing any test — the exact accident the drift guard exists to prevent (CIW-FR-006 surface; blast radius bounded because megalinter is not a required check). TestCIWorkflow_ClassifyStepIdenticalAcrossWorkflows pins only the classify step's byte-identity.

Severity: LOW (test coverage).

Location: cmd/gaze/ci_workflow_test.go:254.

Suggested fix: iterate both test.yml and mega-linter.yml in the drift guard so every job in either workflow requires an explicit gate decision.

Source: review feedback on PR #373 — #373 (comment) (divisor-testing, council review).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions