fix(evolution): run rolling branch on latest main - #8
Merged
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Reviewer's GuideEnsure the rolling bot/evolution branch is always rebased onto the latest main before each run, centralizing git identity/sync logic and adding an integration-style test that verifies state preservation and up-to-date controller code. Sequence diagram for updated daily_worker run with rolling branch rebasesequenceDiagram
participant Scheduler
participant daily_worker as run_daily
participant GitRepo as git_clone
participant BotIdentity as _configure_bot_identity
participant SyncBase as _sync_with_base
participant Git as git
Scheduler->>daily_worker: run_daily(args)
daily_worker->>GitRepo: git clone args.source_url
daily_worker->>BotIdentity: _configure_bot_identity(clone)
BotIdentity->>Git: git config user.name
BotIdentity->>Git: git config user.email
daily_worker->>SyncBase: _sync_with_base(clone, base, branch, source_branch)
alt source_branch != branch
SyncBase->>Git: git switch -c branch
else source_branch == branch
SyncBase->>Git: git fetch origin +base:refs/remotes/origin/base
SyncBase->>Git: git rebase origin/base
end
daily_worker-->>Scheduler: result dict
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Summary
bot/evolutiononto the latest protectedmainbefore every refreshVerification
python3 tests/test_evolution.pypython3 scripts/validate.pygit diff --checkFound by the live cron double-check: after PR #7 merged, the third scheduled-equivalent run still executed the old hardcoded-count test because
daily_worker.pycloned the rolling branch without synchronizingmain.Summary by Sourcery
Ensure the evolution rolling branch is rebased onto the latest main before each daily run and covered by an integration test.
Bug Fixes:
Enhancements:
Tests: