Skip to content

fix(ci): stop reviving superseded pull request workflows - #115378

Merged
steipete merged 1 commit into
mainfrom
codex/stress-pr-ci-sweeper-superseded-runs
Jul 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/stress-pr-ci-sweeper-superseded-runs

Conversation

@steipete-oai

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the hourly pull-request CI sweeper could rerun an obsolete cancelled GitHub Actions workflow even after a legitimate replacement had already started or completed. This could disturb healthy PR checks, interrupt auto-merge, and report misleading dry-run repair actions.

Why This Change Was Made

Determine workflow supersession using GitHub's immutable workflow identity and the exact pull-request trigger provenance: the same eligible PR event, canonical repository, PR head branch, and a run created after that PR. Inspect queued, in-progress, completed, and renamed replacement checks; cache immutable per-run metadata; and repeat the check immediately before rerunning. Ambiguous check URLs, absent workflow identity, unavailable metadata, unrelated manual dispatches or pushes, foreign PRs, forks, and stale events do not qualify. Keep existing retry limits, exact head revalidation, matrix-run deduplication, dry-run behavior, workflow permissions, credentials, and hourly schedule unchanged.

User Impact

Legitimate auto-merge PRs keep their current healthy CI run. Actually cancelled and unreplaced PR workflows can still be repaired safely, without restarting an unrelated run or claiming a dry-run repair that is no longer needed.

Evidence

  • Frozen main ba8bccb750c0bb52e6d518fb0e94daca4ffb7024: four authentic obsolete-run and revalidation regressions failed before the initial fix; eight additional same-workflow but different-trigger provenance regressions failed before the final safe-lineage correction.
  • node scripts/run-vitest.mjs test/scripts/pr-ci-sweeper.test.ts test/scripts/watch-pr-ci.test.ts: 2 files, 88 tests passed.
  • Covers successful, queued, in-progress, and renamed same-PR replacements; late pre-mutation replacement; accurate dry-run; same-run matrix deduplication; exactly-once cached metadata; unrelated workflows; workflow_dispatch; push; different PR event; foreign and missing head branches; fork and missing repositories; runs predating the PR; null and malformed identity; and failing metadata reads.
  • Full final independent uncommitted autoreview: clean; patch is correct.
  • Targeted oxfmt --check and git diff --check: passed.
  • No workflow YAML, authentication, permissions, exported declarations, or gateway/plugin/config surface changed.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete
steipete marked this pull request as ready for review July 28, 2026 18:49
@steipete
steipete merged commit 723423f into main Jul 28, 2026
126 of 130 checks passed
@steipete
steipete deleted the codex/stress-pr-ci-sweeper-superseded-runs branch July 28, 2026 18:56
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit to christian-lallo/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (61 commits)
  perf(ui): debounce event-driven session list refreshes and right-size child paging (openclaw#115374)
  feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (openclaw#115226)
  feat(system-agent): guide gateway configuration in Ask OpenClaw (openclaw#115363)
  fix(agents): make overflow recovery append-only via branch-and-reappend (openclaw#115271) (openclaw#115310)
  fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (openclaw#115362)
  fix(codex): isolate native hook relay startup (openclaw#115078)
  fix(ci): stop reviving superseded pull request workflows (openclaw#115378)
  feat(openshell): add workspace selection (openclaw#114952)
  fix(skills): persist workshop apply reason; correct Skill Workshop docs (openclaw#114471)
  fix: agent stops replying when a session transcript has no header row (openclaw#115080)
  perf(usage): stale-while-revalidate caches for usage.status and sessions.usage (openclaw#115369)
  fix(discord): reject invalid UTF-8 probe responses (openclaw#111734)
  feat(gateway): add memory.search operator method (openclaw#115346)
  fix(android): keep welcome action reachable with large text (openclaw#111747)
  fix(gateway): validate doctor memory agent ids (openclaw#115365)
  refactor: harden shell completion and shard Control UI E2E (openclaw#115332)
  fix(ui): anchor the thread branches menu to its trigger button (openclaw#115352)
  perf(sessions): incremental snapshot revalidation and shallow list projections (openclaw#115359)
  refactor(sessions): consolidate entry state (openclaw#115299)
  feat(ui): swap three plain Lobsterdex palettes for balloon, ascii, and portal (openclaw#115308)
  ...
vincentkoc added a commit that referenced this pull request Jul 28, 2026
…etwork-none

* origin/main: (74 commits)
  fix(ui): make Control UI ownership and permissions reliable (#115364)
  feat(system-agent): host memory import in Ask OpenClaw (#115376)
  fix(chat): preserve literal Markdown image examples (#113904)
  refactor(chat): keep web and terminal sessions synchronized (#115377)
  fix(ui): order model picker by provider strength (#115380)
  feat(ui): make Memory settings a destination page with live overview and dreams (#115383)
  docs(security): fix warning line wrap (#115388)
  fix(memory-core): avoid cubic MMR similarity rescans (#113359)
  fix(discord): preserve code-leading reasoning chunks (#103166)
  fix(slack): protect outbound hooks from previews
  fix(ui): keep explicit navigation ahead of chat canonicalization (#115366)
  fix(exec): safely cancel pending node approvals (#115373)
  fix: make Code Mode reliable across gateway and provider lifecycles (#115379)
  perf(ui): debounce event-driven session list refreshes and right-size child paging (#115374)
  feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (#115226)
  feat(system-agent): guide gateway configuration in Ask OpenClaw (#115363)
  fix(agents): make overflow recovery append-only via branch-and-reappend (#115271) (#115310)
  fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (#115362)
  fix(codex): isolate native hook relay startup (#115078)
  fix(ci): stop reviving superseded pull request workflows (#115378)
  ...

# Conflicts:
#	CHANGELOG.md
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants