Skip to content

test: make the coverage gates independent of HOSTNAME and checkout path - #1425

Merged
scttbnsn merged 1 commit into
dev/v1.8from
test/v1.8-coverage-host-independent
Oct 20, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
test/v1.8-coverage-host-independent

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Anchors the ui coverage include globs to the ui root so a checkout under a directory named src no longer pulls ui/tests/helpers into the 100% gate (99.94% before). Config spec pins the anchored shape.

The app side needed no change: a full npm test coverage run in app/ with HOSTNAME=x set reports 100% on statements, branches, functions and lines, because the HOSTNAME-dependent code is already covered by tests that stub process.env.HOSTNAME.

Test-only, no user-visible change.

The include globs are matched against absolute paths, so a checkout under a
directory named src pulled ui/tests/helpers into the 100% gate and dropped
the total to 99.94%. Anchor them to the ui directory and pin the shape.
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Error Error Oct 20, 2026 12:19am UTC
drydockdemo-website Ready Ready Preview Oct 20, 2026 12:19am UTC

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0787e0aa-7b55-4105-826d-21280baa7fee
📥 Commits

Reviewing files that changed from the base of the PR and between afd9f0c and 4beccb2.

📒 Files selected for processing: 3
  • ui/tests/coverage-contract.spec.ts
  • ui/tests/vitest.config.spec.ts
  • ui/vitest.config.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit 463e1a4 into dev/v1.8 Oct 20, 2026
@scttbnsn
scttbnsn deleted the test/v1.8-coverage-host-independent branch October 20, 2026 01:01

This branch had an error being deployed

1 failed and 1 active deployments
Preview – drydock-website — 4beccb23 Deployed Oct 20, 2026 by vercel[bot]
Preview – drydockdemo-website — 4beccb23 Deployed Oct 20, 2026 by vercel[bot]
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