Skip to content

fix(ci): require Go race checks before merging - #35

Merged
caorushizi merged 1 commit into
masterfrom
codex/require-pr-race-check
Sep 14, 2026
Merged

caorushizi merged 1 commit into
masterfrom
codex/require-pr-race-check

Conversation

@caorushizi

@caorushizi caorushizi commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Changes

Pull requests previously skipped Go race detection, allowing concurrency regressions to reach master. Run test-race on every PR and require it alongside lint, Linux, Windows, and macOS checks before merging.

Use task test:go in the race job to retain the CLI build and Go E2E coverage while avoiding duplicate Dashboard tests, which remain covered by the existing test jobs. Update the contributor guidance to document all five required checks.

Validation

  • task pre-push passed, including Go race tests and Dashboard checks.
  • Workflow YAML validation confirmed all five jobs run on pull requests and the race task retains its CLI build dependency.
  • PR CI run: lint, Linux, Windows, macOS, and Go race checks all passed. Race-job logs confirm the CLI build, both Go modules' -race suites, and E2E tests executed.
  • Master ruleset verified with all five required checks. GitHub kept the PR blocked while Windows was still running, even after the other four checks passed.

Copilot AI lite review requested due to automatic review settings September 14, 2026 17:04
@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
one-cli-docs Ready Ready Preview Sep 14, 2026 5:05pm UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are low-risk, with only a non-blocking documentation nit recorded.

Pull request overview

Updates PR CI to require Go race checks before merging and documents the expanded required checks.

Changes:

  • Runs test-race on every pull request via task test:go.
  • Documents all five required merge checks.
File summaries
File Description
CONTRIBUTING.md Documents the expanded PR gate.
.github/workflows/ci.yml Runs Go race tests for every PR.
Review details

Suppressed comments (1)

CONTRIBUTING.md:65

  • This changes the PR gate from the two task check subtasks to a third required task test:go job, but ARCHITECTURE.md:446-449 still describes CI as those two subtasks and presents task pre-push as the race-detector addition. Please update that public-contract documentation in this change so maintainers do not get contradictory guidance about which checks are required for a PR.
PR CI 在 Linux 上并行执行 `task check:static`、`task check:test` 与
`task test:go`(Go race detector),同时在 Windows 上执行 `task check`、
macOS 上执行 `task check:test`。master 的保护规则要求 `lint`、`test`、
`test-windows`、`test-macos`、`test-race` 五项检查全部通过才能合并。
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@caorushizi
caorushizi merged commit 73884f2 into master Sep 14, 2026
8 checks passed
@caorushizi
caorushizi deleted the codex/require-pr-race-check branch September 14, 2026 17:12
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.

2 participants