Skip to content

fix: Normalize db_repos to short repo names in coverage dashboard - #26

Merged
mrsabath merged 1 commit into
rossoctl:mainfrom
rubambiza:fix/db-repos-short-names
Jul 17, 2026
Merged

fix: Normalize db_repos to short repo names in coverage dashboard#26
mrsabath merged 1 commit into
rossoctl:mainfrom
rubambiza:fix/db-repos-short-names

Conversation

@rubambiza

Copy link
Copy Markdown
Contributor

Summary

Normalizes db_repos to short repo names in the automation-health-dashboard, matching lh_repos and pr_repos. Previously db_repos kept the full owner/repo form while the other two used split("/")[1], which could produce duplicate rows in the cross-program coverage table (e.g. kagenti from one program vs owner/kagenti from dep-bump).

Testing

  • bash -n passes.
  • shellcheck clean apart from a pre-existing SC2034 (SCRIPT_DIR unused) unrelated to this change.
  • jq sanity check: inputs like kagenti/kagenti and bar/kagenti normalize to kagenti and dedupe to a single coverage-table row.

Follow-up to the pre-existing nit in #17 (discussion r3515526432).

Fixes #22

Assisted-By: Claude Code

@rubambiza rubambiza self-assigned this Jul 15, 2026
@rubambiza rubambiza added the ready-for-ai-review Request automated AI code review from clawgenti label Jul 15, 2026

@clawgenti clawgenti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Single-line fix that aligns db_repos normalization with lh_repos and pr_repos — both already apply split("/")[1]. The change is correct: unique operates on full owner/repo paths before the split, and the downstream sort -u handles any residual dedup after normalization. DCO signed, all CI checks pass.

All checks pass. Ready for human review.


Reviewed by clawgenti using github:pr-review

Match lh_repos and pr_repos by applying split("/")[1] to db_repos so
the cross-program coverage table does not emit duplicate rows for a repo
covered by dep-bump plus another program (owner/repo vs repo).

Assisted-By: Claude Code (Anthropic AI) <noreply@anthropic.com>

Signed-off-by: Gloire Rubambiza <gloire@ibm.com>
@rubambiza
rubambiza force-pushed the fix/db-repos-short-names branch from dac82e7 to 0cb45d1 Compare July 15, 2026 19:50

@clawgenti clawgenti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Single-line fix that aligns db_repos normalization with lh_repos and pr_repos — both already apply split("/")[1]. The downstream grep -qxF exact-match at line 391 requires short repo names, confirming this fix is correct and necessary. DCO signed, CI passes, no findings.

All checks pass. Ready for human review.


Reviewed by clawgenti using github:pr-review

@rubambiza rubambiza added ready-for-human-review AI review passed, ready for human reviewer and removed ready-for-ai-review Request automated AI code review from clawgenti labels Jul 16, 2026

@mrsabath mrsabath left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM — correct and well-scoped. Adding | split("/")[1] brings db_repos in line with lh_repos (line 355) and pr_repos (line 369), which already normalize to short names. Verified this is more than cosmetic: all_repos merges the three via sort -u and the coverage-table membership checks use grep -qxF (exact full-line match), so a owner/kagenti vs kagenti mismatch both duplicated rows and made the dep-bump membership test miss. The no-slash / empty-string edge case is handled identically to the existing siblings (grep -v '^$'), so no regression. Testing is documented (bash -n, shellcheck, jq sanity).

Areas reviewed: Shell
Commit: 1, signed-off (DCO pass) · CI: green
Verdict: APPROVE

@mrsabath
mrsabath merged commit 68cea00 into rossoctl:main Jul 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human-review AI review passed, ready for human reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Normalize db_repos to use short names in coverage dashboard

3 participants