Repository navigation
ci: pass CODECOV_TOKEN on coverage upload - #1385
Merged
Merged
Conversation
Codecov rejects tokenless uploads to protected branches, so pushes to main fail with "Token required because branch is protected". Codecov has no report for any recent main commit and falls back to a base 228 commits old, which makes every PR look like it loses coverage. Fork PRs get a colon-prefixed branch name and keep uploading without the token. Assisted-by: ClaudeCode:claude-opus-5
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1385 +/- ##
===========================================
- Coverage 100.00% 99.76% -0.24%
===========================================
Files 17 19 +2
Lines 4546 5217 +671
Branches 0 1128 +1128
===========================================
+ Hits 4546 5205 +659
- Misses 0 12 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
henryiii
added a commit
that referenced
this pull request
Jul 29, 2026
Followup to #1385. :robot: _AI text below_ :robot: Codecov reports main at 99.76% with 12 missed lines in 5 spots. This fills them: - `sum_string_vector`: int64 overflow/underflow fall-back to the double path (`TypeTools.hpp`) - `handle_secondary_array`: array-escaping from #1110, direct and via `process_quoted_string` (`StringTools_inl.hpp`) - Config parsing: quoted section name with a trailing comment, and a too-short header after comment strip (`Config_inl.hpp`) - `Option::get_name` on a hidden (empty-group) option (`Option_inl.hpp`) The last line, the `break` in the rvalue `App::_parse` overload (`App_inl.hpp:1601`), is unreachable: `_parse_single` can only return false when a parent app exists, and this overload only runs at the top level. It is now marked `LCOV_EXCL_LINE` as defensive code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Coverage uploads from
mainhave failed since the branch became protected:Codecov permits tokenless uploads for public repos only on unprotected branches. Fork PRs get a colon-prefixed branch name (
fork:main) and upload correctly, but pushes tomainare rejected. As a result Codecov holds no report for any recentmaincommit and falls back toe4ee3af, which is 228 commits old. Every PR then shows a coverage loss that does not exist — see #1379, where Codecov reports "All modified and coverable lines are covered by tests" butcodecov/projectstill fails.This adds the token input. The repository secret
CODECOV_TOKENmust be set for the fix to operate.