Skip to content

CI-only: fix/hotspots-repo-scope (zzet/gortex#1003) at 46350974 (do not merge) - #71

Merged
peterkc merged 1 commit into
mainfrom
ci/fix/hotspots-repo-scope
Oct 26, 2026
Merged

peterkc merged 1 commit into
mainfrom
ci/fix/hotspots-repo-scope

Conversation

@peterkc

@peterkc peterkc commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Fork-only draft to run CI for fix/hotspots-repo-scope at 4635097 (zzet#1003: skip source reads for repos outside the session's scope in hotspots). Upstream zzet#980 test layout; no fork-only commit. Do not merge.

A scoped analyze hotspots call loaded every hotspot in the store with
GetNode and only then dropped the entries outside the session workspace
or the repo allow-set. Each extra tracked repo added one point read per
hotspot, so a call scoped to one repo got slower as other repos were
added (269 reads per call with one repo, 516 with six, on a store with
1.9 times the nodes).

In a multi-repo store, a source node's ID starts with its repo prefix
and a slash. The handler now builds the set of tracked repos that cannot
be visible once per call, and skips an entry without a read only when
its ID has that source form and its exact prefix is in the set.
Single-repo IDs, stub IDs such as <repo>::stdlib::..., unknown prefixes
and the unbound path keep the existing read, and analyzeNodeVisible
still decides every entry that is not skipped. Ranking, the analysis
cache, totals and truncation do not change.

TestHotspotsScopeSkipsInvisibleRepoReads runs memory and SQLite readers
with three repos, including gortex2 and a worktree prefix, for repo,
workspace, empty-workspace, threshold and novelty requests. It checks
that the full response equals the base filter's and counts the reads:
71 to 25 for one repo of three, 71 to 48 for the shared workspace.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: dd1943e9-44fa-43c5-9f26-b2cd5e04c3f8

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

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

@peterkc
peterkc merged commit db5be14 into main Oct 26, 2026
21 checks passed
@peterkc
peterkc deleted the ci/fix/hotspots-repo-scope branch October 26, 2026 19:45
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.

1 participant