Skip to content

CI: cypress.yml and qadeploy.yml carry the same label-add re-run bug as #3442 #3453

Description

@vivi-the-going-merry

Follow-up to #3442/PR #3452 (fixed 8 workflows gating on run tests/run analysis). A self-review pass on that PR found the identical anti-pattern in two files that weren't in #3442's own affected-files list:

  • .github/workflows/cypress.yml — job cypress gated solely by contains(github.event.pull_request.labels.*.name, 'run e2e tests'). Adding any unrelated label to a PR that already carries run e2e tests re-runs the whole Cypress e2e suite.
  • .github/workflows/qadeploy.yml — two jobs, both higher-risk than a wasted CI run since they fire real side effects:
    • web-deploy gated by contains(..., 'deploy') — re-triggers an actual FTP deploy to the PR's staging directory on any unrelated label add.
    • beta-deploy gated by contains(..., 'beta deploy') — same, for the beta deploy target.

Fix: same pattern as #3452 — AND (github.event.action != 'labeled' || github.event.label.name == '<gating label>') onto each job's existing if:.

Not folded into #3452 because the deploy jobs in qadeploy.yml aren't a mechanical CI-only change — a guard on a real deploy trigger deserves its own review, not to ride along on a PR the original issue asked to skip review for.

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