You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] gh-issues CI status counts duplicate/superseded check runs #176
just gh-issues PR table CI column shows incorrect status because statusCheckRollup from gh pr list includes all check runs, including re-runs of the same check.
Example
PR #175 has Validate PR Title appearing 3 times in statusCheckRollup:
Validate PR Title → FAILURE (12:52:49)
Validate PR Title → FAILURE (12:53:39)
Validate PR Title → SUCCESS (12:53:52)
The table shows ✗ 1/3 Validate PR Title, Validate PR Title (red) when GitHub's PR page shows the check as passing (only the latest run matters).
Expected
Deduplicate statusCheckRollup by check name, keeping only the latest result (by completedAt), so the CI column matches what GitHub shows on the PR page.
statusCheckRollup from gh pr list includes all check runs, including re-runs. When a check fails twice then succeeds, the table shows red (✗ 1/3) instead of green (✓ 1/1) because we count duplicates.
Solution
Deduplicate statusCheckRollup by check name, keeping only the latest result. Use completedAt for ordering; if missing, treat as oldest (or last in list as fallback).
Implementation
Add a helper _dedupe_status_checks(rollup: list[dict]) -> list[dict] that:
Groups by name
For each name, keeps the entry with the latest completedAt (ISO8601 string)
Entries without completedAt sort before those with it (or use list order as tiebreaker)
Call _dedupe_status_checks(rollup) at the start of _format_ci_status before existing logic.
Testing
Add test: duplicate check names with different conclusions — latest (by completedAt) wins.
Add test: duplicate check names without completedAt — last occurrence wins (or first, document choice).
Existing tests remain green (they have no duplicates).
Task 1: Add test for dedup — duplicate check names, latest by completedAt wins — tests/test_gh_issues.py — verify: uv run pytest tests/test_gh_issues.py::TestFormatCiStatus -v
Task 2: Add test for dedup fallback — duplicates without completedAt, last in list wins — tests/test_gh_issues.py — verify: uv run pytest tests/test_gh_issues.py::TestFormatCiStatus -v
Failing workflow: CodeQL Analysis (python) / Run CodeQL analysis Error: Code Scanning could not process the submitted SARIF file: CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled Root cause: Repo-level CodeQL configuration conflict — multiple workflows (codeql.yml, security-scan, scorecard, ci.yml) upload SARIF; GitHub rejects when advanced + default setup coexist. Planned fix: None in this PR — we did not modify any workflow files. This is a pre-existing configuration issue. Recommend opening a separate issue to resolve CodeQL workflow conflicts.
Closing as part of an agreed backlog cleanup (with @gerchowl) — valid but dormant, no work in progress since the Nix migration. Reopen or refile fresh if picked up.
Activity
gerchowl commentedon Feb 24, 2026
Design
Problem
statusCheckRollupfromgh pr listincludes all check runs, including re-runs. When a check fails twice then succeeds, the table shows red (✗ 1/3) instead of green (✓ 1/1) because we count duplicates.Solution
Deduplicate
statusCheckRollupby checkname, keeping only the latest result. UsecompletedAtfor ordering; if missing, treat as oldest (or last in list as fallback).Implementation
_dedupe_status_checks(rollup: list[dict]) -> list[dict]that:namecompletedAt(ISO8601 string)completedAtsort before those with it (or use list order as tiebreaker)_dedupe_status_checks(rollup)at the start of_format_ci_statusbefore existing logic.Testing
gerchowl commentedon Feb 24, 2026
Implementation Plan
Issue: #176
Branch: bugfix/176-gh-issues-ci-dedup
Tasks
tests/test_gh_issues.py— verify:uv run pytest tests/test_gh_issues.py::TestFormatCiStatus -vtests/test_gh_issues.py— verify:uv run pytest tests/test_gh_issues.py::TestFormatCiStatus -vscripts/gh_issues.py— verify: tests passscripts/gh_issues.py— verify:just test && just lint && pre-commit run --all-filesfix(gh-issues): deduplicate CI status by check name
gerchowl commentedon Feb 24, 2026
CI Diagnosis
Failing workflow: CodeQL Analysis (python) / Run CodeQL analysis
Error: Code Scanning could not process the submitted SARIF file: CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled
Root cause: Repo-level CodeQL configuration conflict — multiple workflows (codeql.yml, security-scan, scorecard, ci.yml) upload SARIF; GitHub rejects when advanced + default setup coexist.
Planned fix: None in this PR — we did not modify any workflow files. This is a pre-existing configuration issue. Recommend opening a separate issue to resolve CodeQL workflow conflicts.
gerchowl commentedon Feb 24, 2026
Autonomous Run Complete
ci(test-project): include gh_issues tests in coverage run
fix(gh-issues): deduplicate CI status by check name (#176) (#177)
c-vigo commentedon Jul 8, 2026
Closing as part of an agreed backlog cleanup (with @gerchowl) — valid but dormant, no work in progress since the Nix migration. Reopen or refile fresh if picked up.
fix(vig-utils): key check dedup recency on startedAt (#1542)