Skip to content

The release-path workflow test misses a repeated cigate flag that overrides the release values #226

Open

Description

@davison

Backlog capture from the M11 QA run (observation 2, #213 (comment)), for adoption by a later task with --adopts.

Want

TestTheSkipGateDecidesOnlyThroughCigate (scripts/workflows/ci_release_path_test.go) checks that the gate step's script contains -workflow "$GITHUB_WORKFLOW", -event … and -ref-type …. If a later -workflow ci -ref-type branch is appended, the test still passes, but Go's flag takes the last value, so cigate then answers run=false for a release. A real release is still safe today, because a new tag's before is all zeros and so no subjects are listed and everything runs. But M11-R3 says the release path is "held by a workflow test", and this mutation gets past it (QA's other 10 mutations were caught).

Shape

  • Parse the arguments of the go run ./scripts/cigate invocation and require each flag exactly once, with the expected value, or have cigate refuse a repeated flag. Either way, show the mutation above failing.
  • Small. Not release-blocking.

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions