Repository navigation
fix: Regenerate the Agents pane still - #2119
Conversation
PR rossoctl#2110 removed the window from the Agents pane title. It did not regenerate docs/assets/agentop/agents.svg. TestCommittedStillsAreCurrent fails on main since b8cffb7. This commit runs `go -C scripts/readme-demo run . -stills` again. Only agents.svg changes. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters: 1
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
|
clawgenti
left a comment
There was a problem hiding this comment.
你好 Hai — a satisfying tiny PR: one regenerated line, and the drift is gone. 谢谢 for tracking it down.
What I verified at head (34caae3)
- The exact check CI runs, at head:
GOWORK=off go -C scripts/readme-demo test -count=1 -run TestCommittedStillsAreCurrent .→ok github.com/rossoctl/cortex/scripts/readme-demo 125.048s. The committed still matches what the generator produces, byte for byte. - Positive control at the merge base (
8b4c7f65b,mainbefore this PR): the same test →FAIL: ../../docs/assets/agentop/agents.svg is stale(124.98s), naming only that file. So the failure is real, reproducible, and this PR is the whole fix. - The sibling asset too:
TestCommittedAssetIsCurrent+TestCommittedAssetIsWithinBudget(the animatedcortex-demo.svg) →ok ... 146.547s. The demo does not render the Agents pane header, so nothing else went stale with #2110. The PR body's "onlyagents.svgchanges" holds. - The line itself: the diff drops both the
· todaylabel tspan and the separator tspan before it, so the header ends cleanly atagentswith no dangling·— exactly whatpaneContent()emits after #2110 (title = "%s · %s · agents"). - XML:
docs/assets/agentop/agents.svgparses as well-formed XML (root{http://www.w3.org/2000/svg}svg, viewBox0 0 872 598).
On the root cause
Not asking for a change here — just recording the mechanism, since the PR body says "every PR that merges main gets this failure": d2c768bae (the docs PR that added the stills) and b8cffb7dc (#2110, the title change) are not ancestors of each other. Neither PR's CI run ever saw both trees, so both passed truthfully and main went stale in the merge. No gate was skipped and no check was missing — this is ordinary merge skew, and the post-merge push run to main is what caught it. 没有漏掉的关卡, in other words.
No inline findings: the file is generated, and the generator's own staleness test is the authority on its contents.
Author: huang195 (MEMBER — maintainer)
Areas reviewed: docs/assets (generated SVG), README-demo generator + staleness tests, commit conventions
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: Go CI (README demo) still pending at review time; every completed check green (DCO, Go CI core/authbridge, security scans, Dockerfile/YAML/shell lint)
Not checked:
- The package's unit tests (
svg_test.go,sgr_test.go,script_test.go,capture_test.go) and the other Go modules — not run locally, since an asset-only diff cannot reach them and the CLI job runs the whole package in CI.
No findings. Ready for human review.
Generated by repoman github-pr-review@af425c8.
clawgenti
left a comment
There was a problem hiding this comment.
Summary
This PR regenerates docs/assets/agentop/agents.svg so that it matches the Agents pane title after #2110, which removed the today window segment from the header. It changes one line: the · today tspans are dropped from row r0, and nothing else moves.
I verified the fix locally at 34caae3:
GOWORK=off go -C scripts/readme-demo test -run TestCommittedStillsAreCurrent .passes with this svg.- The same test with the pre-PR svg (from
8b4c7f6) fails with the "Regenerate the stills" message. This confirms the diagnosis. - The full
scripts/readme-demopackage test passes. - The two commits on main since the PR's base (#2118) only touch
deploy/central/, so they don't affect the stills.
No must-fix issues.
Author: huang195 (MEMBER — maintainer)
Areas reviewed: Docs/assets (generated SVG), README-demo staleness test
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing. Go CI (README demo) is green, and the annotations show only cache-restore and Node.js 20 deprecation warnings.
Problem
Go CI (README demo)fails on main sinceb8cffb7dc(#2110). The testTestCommittedStillsAreCurrentreports:PR #2110 removed the window from the Agents pane title. It did not regenerate the still image. Every PR that merges main gets this failure (for example, #2062).
Fix
Run
go -C scripts/readme-demo run . -stillsagain. Onlydocs/assets/agentop/agents.svgchanges, by one line in the pane header.Verification
GOWORK=off go -C scripts/readme-demo test -run TestCommittedStillsAreCurrent .passes locally.Assisted-By: Claude (Anthropic AI) [email protected]