Repository navigation
ci(deps): rebuild the update branch on every push to AgentHits-Dev - #260
Merged
Merged
Conversation
The update branch was rebuilt only by the daily schedule (which GitHub often starts hours late) or by hand. Between rebuilds AgentHits-Dev moved on, so the checks of the open update PR ran against an outdated base and their verdict on the libraries could be wrong in both directions: a failure already fixed in the base, or a pass that no longer holds with newer code. The workflow now also runs on every push to AgentHits-Dev, so the branch is always rebuilt from the latest base commit and the checks it dispatches run on it. Concurrency now cancels a run in progress: only the run on the latest commit matters. Cancelling in the middle of publish is safe, because the next run builds from a newer base, gets a different tree, pushes and dispatches the checks again. There is no loop: the branch is pushed with GITHUB_TOKEN, which starts no push workflows, and a merge of the update PR finds nothing left to update and closes the branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Зачем
Ветка
deps/auto-updateпересобиралась только по расписанию (GitHub часто запускает его на часы позже) или вручную. Между пересборкамиAgentHits-Devуходила вперёд, и проверки открытого PR с обновлениями шли на устаревшей базе: их вывод о библиотеках мог быть неверным в обе стороны.Что меняется
deps-auto-update.ymlзапускается ещё и на каждый push вAgentHits-Dev: ветка всегда собирается от последнего commit базы, и проверки, которые workflow запускает сам, идут на нём.concurrency.cancel-in-progress: true: нужен только прогон на последнем commit. Отмена посреди publish безопасна: следующий прогон собирает ветку от более новой базы, дерево другое, он пушит и запускает проверки.GITHUB_TOKEN, такой push workflow не запускает; merge самого PR с обновлениями ничего нового не находит и закрывает ветку.Проверка
После merge: следующий push в
AgentHits-Devдолжен запуститьDeps auto-updateс событиемpushи пересобрать ветку от него.🤖 Generated with Claude Code