Remove sync-branches workflow — broken on this repo and redundant with per-iteration branch hygiene (#179)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions, python
- Lĩnh vực
- ci-cd, documentation
Hướng nghiên cứu
Bắt đầu bằng cách xóa .github/workflows/sync-branches.md và .github/workflows/sync-branches.lock.yml, sau đó tìm trong repository các tham chiếu đến sync-branches trong tài liệu và hướng dẫn. Đọc autoloop.md Step 3 và xác minh rằng phần này vẫn mô tả việc xử lý độ mới của branch. Hoàn tất khi cả hai tệp workflow và các tham chiếu tài liệu đã lỗi thời đều được xóa, không cần thay đổi Step 3.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Delete .github/workflows/sync-branches.md and .github/workflows/sync-branches.lock.yml. The workflow is currently broken and doing no useful work.
Current state — it doesn't work
Every recent run of sync-branches is failing. Two overlapping problems:
-
Lock-file drift.
sync-branches.mdhas been edited without runninggh aw compile sync-branches, so the activation step bails out with:##[error]ERR_CONFIG: Lock file '.github/workflows/sync-branches.lock.yml' is outdated! The workflow file '.github/workflows/sync-branches.md' frontmatter has changed. Run 'gh aw compile' to regenerate the lock file. -
Even if we re-compiled it, it wouldn't push. The workflow declares
permissions: read-all(to pass gh-aw's strict-mode compile check); that compiles to an emptypermissions: {}in the lock file; which means the defaultGITHUB_TOKENhas no write access. NoGH_AW_GITHUB_TOKENPAT is configured in this repo (gh secret listreturns empty). Anygit pushattempt would be rejected with 403.
The Python script uses capture_output=True and appends to a failed list — it does not fail the workflow on push errors. So before the lock-file drift, the workflow was silently reporting green while syncing zero branches.
Why we don't need it anyway
The per-iteration Step 3 logic in autoloop.md (landed in #179) already does the fast-forward-when-ahead=0 or merge-when-diverged on the program's branch at the start of every iteration. That's the same work sync-branches was meant to do between iterations — except it happens on the branch that's actually about to be iterated, at the moment it's needed, with the agent on hand to resolve any merge conflicts.
Roles that sync-branches was theoretically still doing:
| Role | Why it doesn't matter |
|---|---|
| Bring paused programs' branches current | They're paused — no one's iterating on them. |
| Surface merge conflicts before iteration | Iteration's Step 3 surfaces them the same way, on the branch that's about to be touched. |
| Remove "N commits behind" UI banner between iterations | Cosmetic. |
| Propagate main's fixes faster than the program's schedule | The schedules are 30 min and 6 h — fast enough. |
None of these justify a broken workflow that's also fighting strict-mode compile and token permissions.
Concrete removal
git rm .github/workflows/sync-branches.md .github/workflows/sync-branches.lock.yml.- Audit for any references. Likely candidates: docs, READMEs,
install.md-style instructions. Remove or rewrite to point at the per-iteration Step 3 as the branch-freshness mechanism. - Commit, open a PR.
That's the entire change. No agent prompt updates needed — autoloop.md already owns branch freshness via Step 3.
Follow-on
File the same removal upstream (already tracked — see cross-reference below). Once upstream drops it too, future installs won't re-introduce the broken workflow.
Acceptance
.github/workflows/sync-branches.mdand.lock.ymlare gone from this repo.- No references to sync-branches remain in docs.
- The autoloop program iteration still brings its branch current at Step 3 (no regression — verify with the next scheduled run on any active program).
Related
- Per-iteration branch hygiene: #179 (fast-forward when ahead=0).
- Upstream removal tracking: proposed on
githubnext/autoloop— will be linked once filed. - Historical: sync-branches's lock-file drift symptom has been showing up in recent workflow runs for days; removal rather than re-compile is the right resolution.
- Ngôn ngữ chính
- TypeScript
- Star
- 9
- Fork
- 4
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 15
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của githubnext/tsb
-
automation ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
githubnext/tsb#411 ·
-
[aw] Autoloop failed Đang mởagentic-workflows
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
githubnext/tsb#516 ·
-
[aw] Autoloop failed Đang mởagentic-workflows
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
githubnext/tsb#515 · 3 bình luận ·
-
agentic-workflows
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
githubnext/tsb#514 ·
-
[gh-aw] Protected Files: [Goal #500] Execute scenario 7 against independent pandas snapshots Đang mởagentic-workflows
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
githubnext/tsb#508 ·
Tất cả issue của githubnext/tsb
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
copse-dev/agent-pane#2953 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Đang mởbug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Client support matrix inclusion Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
calcite-components needs triage refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Esri/calcite-design-system#15203 ·