Skip to content

ci(agents): a release tag starts no Copilot setup run - #5108

Merged
dan-petty merged 2 commits into
mainfrom
ci/4681-a-release-tag-starts-no-setup
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
ci/4681-a-release-tag-starts-no-setup

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

GitHub does not read a path filter for a tag push. The push trigger of Copilot Setup Steps had only a paths filter, so each release tag started a run that tested nothing that changed.

The push trigger now also has branches: ["**"]. A tag push matches no filter and starts no run. A branch push that changes the workflow file still starts a run, and the pull_request and manual triggers do not change.

A workflow contract test refuses each workflow whose push trigger has a paths or paths-ignore filter and no branch or tag filter, so the gap cannot come back in another workflow.

Closes #4681

Change: openspec/changes/archive/2026-11-12-4681-a-release-tag-starts-no-setup/

GitHub does not read a path filter for a tag push, so each release tag
started Copilot Setup Steps. A branches filter on the push trigger stops
the tag runs, and a contract test refuses a push trigger with a path
filter and no branch or tag filter.
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/agents Agent instructions in AGENTS.md, skills and the agent hand-off labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence

  • GitHub Actions workflow syntax reference: "Path filters are not evaluated for pushes of tags." With only branches or branches-ignore, "the workflow won't run for events affecting the undefined Git ref".
  • Actions API, copilot-setup-steps.yml runs with event=push from 2026-11-04 to 2026-11-11: 127 runs, 124 with a v<version> tag as head_branch, 3 with a branch.
  • Of the 5 workflows with a push trigger, 2 have a path filter. pages.yml already has branches. Only copilot-setup-steps.yml had no branch or tag filter.

Checks run on the branch

  • devops ci fail-to-pass --base origin/main: 1 failed on base, test_a_push_trigger_with_a_path_filter_starts_on_no_tag (assert ['copilot-setup-steps.yml'] == []); 152 passed on base; all 153 pass on the branch.
  • devops ci actionlint: pass.
  • devops ci --only openspec: pass with the pinned OpenSpec 1.17.0. The devcontainer image binary (1.14.3) is older than the lock and fails this row for each generated skill. I filed that as fix(tools): install-tools --check passes an older openspec binary #5107; it is not part of this change.

Pending a person

  • After the merge, the next 10 release tags start 0 Copilot Setup Steps runs. Check with devops gh api 'repos/dan-petty/devops-cli/actions/workflows/copilot-setup-steps.yml/runs?event=push' --jq '[.workflow_runs[] | select(.head_branch|test("^v[0-9]")) | .created_at] | .[0:10]': no date after the merge.
  • No live cluster, ConfigMap, Secret or repository setting changes.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 14:42
@dan-petty
dan-petty merged commit 77bdb1f into main Nov 12, 2026
24 checks passed
@dan-petty
dan-petty deleted the ci/4681-a-release-tag-starts-no-setup branch November 12, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/agents Agent instructions in AGENTS.md, skills and the agent hand-off type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(copilot): a release tag starts no setup steps run

1 participant