Skip to content

ci: check out repo on coverage job to fix Codecov REPORT_EMPTY#7

Closed
alexzhangs wants to merge 1 commit into
masterfrom
ci/codecov-checkout-fix
Closed

ci: check out repo on coverage job to fix Codecov REPORT_EMPTY#7
alexzhangs wants to merge 1 commit into
masterfrom
ci/codecov-checkout-fix

Conversation

@alexzhangs

Copy link
Copy Markdown
Collaborator

The coverage job had no actions/checkout, so Codecov's uploader scanned an empty workspace and rejected every report as REPORT_EMPTY. Add a checkout (coverage job only; the test loads the lib via xsh load). Mirrors alexzhangs/xsh's working setup.

…s REPORT_EMPTY)

Codecov's uploader builds its file network from the workspace git tree; the job had no actions/checkout (the lib loads via xsh load), leaving the workspace empty → every upload was REPORT_EMPTY. alexzhangs/xsh works because it checks out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexzhangs

Copy link
Copy Markdown
Collaborator Author

Closing: lib utility coverage is architecturally blocked — xsh sources utilities from /dev/stdin (xsh.sh:1703), so kcov can't attribute coverage to functions/*.sh (only init.sh registers, ~1%). The actions/checkout fix here is correct and necessary, but not worth landing until xsh supports a source-by-path coverage mode. Tracked in alexzhangs/xsh#35. Reverting the Codecov coverage from core; keeping CodeFactor.

@alexzhangs alexzhangs closed this Jun 14, 2026
@alexzhangs alexzhangs deleted the ci/codecov-checkout-fix branch June 14, 2026 17:06
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