Skip to content

fix: Regenerate the Agents pane still - #2119

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/agents-still
Nov 24, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/agents-still

Conversation

@huang195

Copy link
Copy Markdown
Member

Problem

Go CI (README demo) fails on main since b8cffb7dc (#2110). The test TestCommittedStillsAreCurrent reports:

../../docs/assets/agentop/agents.svg is stale.

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 . -stills again. Only docs/assets/agentop/agents.svg changes, 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]

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]>
@huang195
huang195 requested a review from a team as a code owner November 24, 2026 20:51
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • docs/assets/agentop/agents.svg is excluded by !**/*.svg

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a544e40-bcd3-48a9-9569-63a9b0f9459d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 24, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

你好 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, main before 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 animated cortex-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 "only agents.svg changes" holds.
  • The line itself: the diff drops both the · today label tspan and the separator tspan before it, so the header ends cleanly at agents with no dangling · — exactly what paneContent() emits after #2110 (title = "%s · %s · agents").
  • XML: docs/assets/agentop/agents.svg parses as well-formed XML (root {http://www.w3.org/2000/svg}svg, viewBox 0 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 clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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-demo package 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.

@huang195
huang195 merged commit 1804e3f into rossoctl:main Nov 24, 2026
43 checks passed
@huang195
huang195 deleted the fix/agents-still branch November 24, 2026 21:17
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants