Skip to content

fix(pr-management): keep code-review save names within the vetted-ops limit - #1917

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:cr-reviewers-save-name
Oct 31, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:cr-reviewers-save-name

Conversation

@potiuk

@potiuk potiuk commented Oct 31, 2026

Copy link
Copy Markdown
Member

code-review reviewers asks for a cr-path-commits read saved as path-commits-<slug>.json, with the slug cut at 90 characters.
With the prefix and suffix that reaches 108, and vetted-ops refuses any save name over 100,
so for a deeply nested file (the plugins/magpie-security-tools/ mirror, for one) the read could never be saved and the reviewer ranking stayed incomplete.
It came up reviewing #1911.
A cut alone would also let two long paths that share a stem read each other's saved commits.

A path whose slug is over 80 characters now keeps a 70-character stem and an 8-character hash of the whole path.
Tests hold the save name to the vetted-ops rule and check that long paths stay distinct.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Claude Opus 5)

Generated-by: Claude Code (Claude Opus 5) following the guidelines

🤖 Generated with Claude Code

… limit

`code-review reviewers` asks for a `cr-path-commits` read saved as
`path-commits-<slug>.json`, with the slug cut at 90 characters. With the
prefix and suffix that reaches 108, and vetted-ops refuses any save name
over 100, so for a deeply nested file (the security-tools plugin mirror,
for one) the read could never be saved and the reviewer ranking stayed
incomplete. A cut alone would also let two long paths that share a stem
read each other's commits.

A path whose slug is over 80 characters now keeps a 70-character stem and
an 8-character hash of the whole path. Tests hold the save name to the
vetted-ops rule and check that long paths stay distinct.

Generated-by: Claude Opus 5
@github-actions github-actions Bot added family:tools tools/* substrate:analytics Tool substrate: read-only metrics / dashboards / renderers labels Oct 31, 2026
@potiuk
potiuk merged commit e25fea6 into apache:main Oct 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:tools tools/* substrate:analytics Tool substrate: read-only metrics / dashboards / renderers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant