Skip to content

Docs: Correct install-stats collector comments from #1457's review - #1460

Merged
huang195 merged 1 commit into
mainfrom
install-stats-review-nits
Oct 21, 2026
Merged

huang195 merged 1 commit into
mainfrom
install-stats-review-nits

Conversation

@Alan-Cha

Copy link
Copy Markdown
Member

Follow-up to huang195's review of #1457. Comment and wording changes only; no behaviour changes.

Summary

  • Re-run note (review thread): the comment suggested storing run_attempt and re-querying when it rises. That still miscounts, because the jobs endpoint defaults to filter=latest, which lists every job under the new attempt, including copies of the jobs that weren't re-run. Confirmed on CI run 39469900873. The comment now says an exact count needs filter=all, dropping each copy.
  • Last-100 window (review thread): "that run is queried once more" now says this applies only to runs still in the window, and that older records keep their old count. 62 of the 162 runs are outside it; none failed, so no figure is affected.
  • Record shape: the two {id, created_at, installs} comments now include installs_rule.
  • Wording (review thread): "had legs run" is now "had legs that ran", on the page and in its comment.

Test plan

  • shellcheck and sh -n clean.
  • Every changed line in the collector is a comment.

Assisted-By: Claude (Anthropic AI) [email protected]

Comment and wording fixes only; no behaviour changes.

- The re-run note described a fix that would still miscount. The jobs
  endpoint defaults to filter=latest, which lists every job under the new
  attempt, so re-querying when run_attempt rises counts a failed-then-re-run
  leg once instead of twice. It now says an exact count needs filter=all
  with the carried-over copies dropped.
- "That run is queried once more" held only for runs still in the last-100
  window. Older records keep their old count. None of them failed, so the
  two rules agree on all of them.
- The record shape comments now include installs_rule.
- "had legs run" on the install-stats page is now "had legs that ran".

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
@Alan-Cha
Alan-Cha requested a review from a team as a code owner October 21, 2026 14:20
@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9fa957dd-2174-410b-9a53-53459bcea482
📥 Commits

Reviewing files that changed from the base of the PR and between 952db09 and b1d2ed6.

📒 Files selected for processing: 2
  • docs/install-stats/index.html
  • scripts/collect-install-stats.sh
  • 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

Comment @coderabbitai help to get the list of available commands.

@Alan-Cha Alan-Cha added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 21, 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.

Comment-only follow-up to #1457's review: every changed line in the collector is a comment, and the corrected re-run note checks out against the API (run 39469900873, attempt 2: 15 jobs under filter=latest, 30 under filter=all).

All checks pass. Ready for human review.


Reviewed by clawgenti using the github-pr-review skill

@huang195
huang195 merged commit 15da639 into main Oct 21, 2026
30 checks passed
@huang195
huang195 deleted the install-stats-review-nits branch October 21, 2026 15:22
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Oct 21, 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.

3 participants