Skip to content

fix(ci): monitor publish step fails once the data branch exists#24

Merged
Ap6pack merged 1 commit into
mainfrom
claude/fix-monitor-publish
Jul 6, 2026
Merged

fix(ci): monitor publish step fails once the data branch exists#24
Ap6pack merged 1 commit into
mainfrom
claude/fix-monitor-publish

Conversation

@Ap6pack

@Ap6pack Ap6pack commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Description

The last two scheduled sweeps (runs #8, #9) ran the full scan + escalation successfully but failed at the commit step — so their results were thrown away. That's why chunk 2 never landed on registry-snapshots.

Cause: git checkout -B registry-snapshots origin/registry-snapshots aborts with "untracked working tree files would be overwritten by checkout" — the freshly generated latest.json / snapshot-*.json sit untracked in data/registry-snapshots/ and collide with the branch's tracked versions. The first run escaped this because the branch didn't exist yet (orphan-branch path, nothing to collide with), so the bug only shows up from the second run onward.

Fix: after copying the fresh files to $tmp, rm -rf data/registry-snapshots before the checkout so nothing blocks the switch, then overlay them back.

Type of Change

  • Bug fix (CI)

Checklist

  • Workflow YAML validated
  • One-line change to the publish step; scan/escalation logic untouched

🤖 Generated with Claude Code

https://claude.ai/code/session_01DNoTXU8k3pfSBzR7aJubqL


Generated by Claude Code

The last two scheduled sweeps ran to completion but threw away their
results at the commit step: 'git checkout -B registry-snapshots
origin/registry-snapshots' aborts with 'untracked working tree files would
be overwritten by checkout' because the freshly generated latest.json /
snapshot-*.json sit untracked in data/registry-snapshots/ and collide with
the branch's tracked versions. The first run escaped this (orphan-branch
path, no existing branch to collide with).

Fix: after copying the fresh files to $tmp, rm -rf data/registry-snapshots
before the checkout so nothing blocks the switch, then overlay them back.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DNoTXU8k3pfSBzR7aJubqL
@Ap6pack Ap6pack merged commit 1bc2725 into main Jul 6, 2026
5 checks passed
@Ap6pack Ap6pack deleted the claude/fix-monitor-publish branch July 7, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants