Skip to content

fix: keep the review warm-start analysis for 5 days - #183

Merged
Svilen-Stefanov merged 1 commit into
mainfrom
chore/warmstart-retention-5-days
Dec 1, 2026
Merged

Svilen-Stefanov merged 1 commit into
mainfrom
chore/warmstart-retention-5-days

Conversation

@Svilen-Stefanov

Copy link
Copy Markdown
Contributor

What

warmstart_retention_days now defaults to 5 instead of 1. The README's input table and the retention section of docs/COMMIT_STRATEGY.md say the same.

Why

The warm-start bundle (codeboarding-warmstart-<cfg>-pr<N>) is what lets a push re-analyze only the files changed since the previous push. At one day it expires over every weekend and every pause in review, and the next run then re-derives from the base: every file the pull request changed, and the LLM updates for all of them.

Measured on one of our repositories, a pull request pushed again three days after its last run:

Run Seeded from Files analyzed LLM calls Review job
Push 7 minutes after the previous one the previous push 3 9 304s
Push 3 days later, 4 files changed the base (warm-start expired) 13 14 422s

The log for the second one: No stored codeboarding-warmstart-…-pr343 to reuse; deriving from the base analysis.

Cost

Each push uploads its own copy (about 1.4 MB on a mid-size TypeScript repository), and same-named copies from earlier runs stay until they expire. Storage is therefore pushes per day × days. On that repository (about 6 review runs a day, 17 at peak) it is roughly 8 MB at 1 day, 41 MB at 5 days on average, and about 85 MB in a busy week.

No GitHub limit is near: artifact storage is 500 MB on Free and 50 GB on Enterprise Cloud (shared with Packages), retention can be set up to 90 days on public repositories and 400 on private ones, and fetch-state.sh takes the newest trusted copy from a page of 100, which a busy pull request at 5 days (about 30 copies) stays well inside. A repository can still set the input lower.

Longer retention also means longer warm-start chains, since more pushes build on the previous push instead of the base. Nothing caps chain_depth today; that was already true within a busy day.

Tests

  • python -m unittest discover -s tests: 375 pass, 9 skipped.
  • actionlint: clean.

Nothing visible changes beyond faster reviews on pull requests that sit for more than a day.

🤖 Generated with Claude Code

The warm-start bundle is how a push re-analyzes only what changed since the
previous push. At one day it expired over every weekend and every pause in
review, and the next run re-derived from the base: every file the pull request
changed, plus the LLM updates for all of them, instead of the last push.

Each push stores its own copy (about 1.4 MB on a mid-size repository) until it
expires, so the cost grows with pushes times days, which stays in the tens of
MB for a busy repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T00:42:25.625819Z 8e4d530 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codeboarding-review

codeboarding-review Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

CodeBoarding review

Status: 0 changed components (no analysed file changed)

See the full change in CodeBoarding.

graph LR
    n_Action_Workflow_and_Analysis_Execution["Action Workflow and Analysis Execution"]
    n_Remote_Review_and_Problem_Ledger["Remote Review and Problem Ledger"]
    classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
    classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
    classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
Loading

download artifacts · run 46547066115

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e4d53005a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread action.yml
description: 'Days to keep the reusable analysis. Only the next run reads it; a pull request idle for longer re-derives from the base.'
required: false
default: '1'
default: '5'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the default within repository retention limits

For repositories or organizations whose artifact-retention maximum is 1–4 days, this new default makes the Publish this analysis for the next run upload request exceed policy. GitHub documents that a custom period “cannot exceed the retention limit set by the repository, organization, or enterprise”; because the upload step has continue-on-error: true, reviews still appear successful but never publish a warm-start bundle, so every subsequent push silently re-derives from the base unless each affected consumer overrides this input.

Useful? React with 👍 / 👎.

@ivanmilevtues ivanmilevtues left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine yes, 5 days of retention instead of 1. It's okay

@Svilen-Stefanov
Svilen-Stefanov merged commit c0d7ea3 into main Dec 1, 2026
5 checks passed
@Svilen-Stefanov
Svilen-Stefanov deleted the chore/warmstart-retention-5-days branch December 1, 2026 15:24
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