Skip to content

The agent that grows with you

ci: stop install E2E from running on tag pushes

ethernete849d45224fa
diff --git a/.github/workflows/install-e2e.yml b/.github/workflows/install-e2e.yml
index 0474b0bcb08..e8dc86a2d3b 100644
--- a/.github/workflows/install-e2e.yml
+++ b/.github/workflows/install-e2e.yml
@@ -35,8 +35,6 @@ name: Install & Update E2E
# Triggers:
# * every 12 hours, so upstream drift (a new uv, a Node bump, a PyPI change)
# surfaces on a schedule rather than in someone's review cycle;
-# * when a release tag is created -- the moment the set of versions users can
-# update FROM changes, and the moment a broken updater would strand them;
# * manually, where you can pick the route and how many releases to sample.
#
# Deliberately NOT on pull_request: a leg takes ~11 minutes of real toolchain
@@ -118,18 +116,13 @@ on:
schedule:
# Every 12 hours, off the hour to avoid the top-of-hour runner crunch.
- cron: '20 7,19 * * *'
- push:
- tags:
- # Release tags only: the repo also carries backup/* and one-off tags.
- - 'v[0-9]+.[0-9]+.[0-9]+'
- - 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: read
# A workflow_call run (stable release) is never cancelled: its group uses
# github.run_id so a parent rerun cannot kill this child mid-flight. The
-# scheduled/push runs keep ref-scoped collapse.
+# scheduled/manual runs keep ref-scoped collapse.
concurrency:
group: install-e2e-${{ inputs.release == true && github.run_id || github.ref }}
cancel-in-progress: ${{ inputs.release != true }}
diff --git a/tests/ci/test_workflow_job_graph.py b/tests/ci/test_workflow_job_graph.py
index 228eb365177..75be8df70d0 100644
--- a/tests/ci/test_workflow_job_graph.py
+++ b/tests/ci/test_workflow_job_graph.py
@@ -54,3 +54,17 @@ def test_jobs_only_read_declared_dependencies():
if read not in declared:
violations.append(f"{filename}: {name} reads '{read}' without needing it")
assert not violations, "workflow job graph:\n" + "\n".join(violations)
+
+
+def test_no_workflow_runs_from_a_tag_push():
+ violations = []
+ for filename, workflow in _loaded().items():
+ triggers = (workflow or {}).get("on") or {}
+ if not isinstance(triggers, dict) or "push" not in triggers:
+ continue
+ push = triggers["push"]
+ if not isinstance(push, dict) or not ({"branches", "branches-ignore"} & set(push)):
+ violations.append(filename)
+ elif {"tags", "tags-ignore"} & set(push):
+ violations.append(filename)
+ assert not violations, "tag-triggered workflows: " + ", ".join(violations)