Skip to content

test(codecov): verify Codecov coverage + Test Analytics on a multi-file refactor#15

Closed
the0807 wants to merge 1 commit into
mainfrom
test/extract-constants
Closed

test(codecov): verify Codecov coverage + Test Analytics on a multi-file refactor#15
the0807 wants to merge 1 commit into
mainfrom
test/extract-constants

Conversation

@the0807
Copy link
Copy Markdown
Owner

@the0807 the0807 commented May 17, 2026

NOTE: This PR exists solely to validate the Codecov integration end-to-end.
It will be closed without merging once the verification is complete.

What this PR is testing

After enabling Codecov Test Analytics on main (commit b49d51f), this PR exercises the full PR-time signal pipeline:

  1. Coverage upload (lcov.info) → expected Codecov comment with project + patch coverage
  2. Test Analytics upload (test-results.xml) → expected first-time Test Analytics data ingestion
  3. PR comment auto-posting → previously blocked by require_changes:true when only a comment line moved; this PR actually shifts statement counts

What changes (for realism)

Three files touched so Codecov has a non-trivial file tree to display:

  • src/git/git-service.ts — 7 magic-number constants extracted
  • src/git/git-graph-builder.ts — 4 layout constants moved from function-local to module scope
  • src/services/repo-discovery.ts — 2 timeout constants extracted

All touched lines are already covered by existing tests, so patch coverage should report 100%.

What to verify

  • CI passes on Node 20 + 22 (incl. git-flow integration tests)
  • Codecov coverage report comment appears
  • Codecov dashboard shows updated project coverage
  • Codecov Test Analytics page now shows test counts / runtimes (no longer the onboarding page)
  • No regression in any of the 336 tests

…nstants

Three files, all hot-path code where re-tuning a literal previously
required grep-and-replace.

src/git/git-service.ts (7 constants):
  DEFAULT_EXEC_TIMEOUT_MS, FORCE_KILL_DELAY_MS, ACTIVITY_LOG_MAX_ENTRIES,
  MERGE_TREE_TIMEOUT_MS, REMOTE_NAMES_CACHE_TTL_MS,
  MAX_IMAGE_SIZE_BYTES, IMAGE_LOAD_TIMEOUT_MS

src/git/git-graph-builder.ts (4 constants):
  UNIT_W / HALF_W / UNIT_H / HALF_H moved from function-local to
  module scope so the layout grid is documented in one place.

src/services/repo-discovery.ts (2 constants):
  DEFAULT_EXEC_TIMEOUT_MS, FORCE_KILL_DELAY_MS — same pattern as
  GitService.exec for consistency.

No behavior change. All 336 tests pass.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/git/git-service.ts 68.75% 5 Missing ⚠️
src/services/repo-discovery.ts 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@the0807
Copy link
Copy Markdown
Owner Author

the0807 commented May 17, 2026

Codecov integration verified end-to-end. Closing.

@the0807 the0807 closed this May 17, 2026
@the0807 the0807 deleted the test/extract-constants branch May 17, 2026 09:11
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