Skip to content

Add minimum unit test coverage for replication - #10822

Closed
yux0 wants to merge 1 commit into
mainfrom
yx/test-coverage
Closed

yux0 wants to merge 1 commit into
mainfrom
yx/test-coverage

Conversation

@yux0

@yux0 yux0 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What changed?

Add minimum unit test coverage for replication

Why?

Add minimum unit test coverage for replication

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Block PR merge

@yux0
yux0 requested review from a team as code owners June 24, 2026 05:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 243f79f378

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

set -euo pipefail

MIN_COVERAGE="${MIN_COVERAGE:-80}"
PACKAGES="${PACKAGES:-./service/history/replication/ ./service/history/ndc/}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include replication subpackages in coverage checks

The workflow is triggered for any change under service/history/replication/**, but the default package list only measures the top-level ./service/history/replication/ package plus ./service/history/ndc/. The repo also has service/history/replication/eventhandler with its own tests, so a PR can delete or regress coverage there while this required check still reports success because that package is never tested or compared.

Useful? React with 👍 / 👎.

@yux0 yux0 closed this Jun 25, 2026
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