Skip to content

CI: enable -race detector in the test task - #397

Merged
cinar merged 2 commits into
masterfrom
ci/enable-race-and-wire-mcp
Aug 19, 2026
Merged

CI: enable -race detector in the test task#397
cinar merged 2 commits into
masterfrom
ci/enable-race-and-wire-mcp

Conversation

@cinar

@cinar cinar commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Closes #396

Summary

  • Add -race to the test task in taskfile.yml so the worker-pool backtester's concurrency claims are actually validated on every commit.

mcp/ CI wiring (dead INDICATOR_MCP var, go.mod replace directive) has been split out of this PR into its own follow-up to keep this change focused on the race detector.

Test plan

  • go test -race -cover ./asset/... ./backtest/... ./cmd/... ./helper/... ./momentum/... ./strategy/... ./trend/... ./volatility/... ./volume/... — all pass

No new failures surfaced from -race itself. Note: task lint's revive step currently fails on master independent of this change (pre-existing unused-parameter/receiver-naming/stutter violations in strategy/ and momentum/rvi.go, reproduced on a fresh clone of master) — will file separately and it'll need fixing before any PR's build check can go green, this one included.

🤖 Generated with Claude Code

cinar added 2 commits August 19, 2026 04:17
Adds -race to the test task so the worker-pool backtester's
concurrency claims are actually validated on every commit, and
wires the previously-dead INDICATOR_MCP taskfile variable into
lint/test/fmt so mcp/ is no longer silently unchecked by CI.
Also adds a replace directive in mcp/go.mod pointing at the local
module tree so mcp/'s tests exercise current code instead of the
last tagged release.

Ran the full suite (root + mcp) with -race and go vet after these
changes; both are clean, so no new issues to file from this pass.

Refs #396
The mcp/ module wiring (go.mod replace directive, lint/test/fmt
integration) is being split into its own follow-up so this branch
stays focused on the race detector.
@cinar cinar changed the title CI: enable -race detector and wire mcp/ into lint/test/fmt CI: enable -race detector in the test task Aug 19, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.05%. Comparing base (ef1f803) to head (8ba8036).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #397      +/-   ##
==========================================
- Coverage   92.08%   92.05%   -0.03%     
==========================================
  Files         229      229              
  Lines        7237     7237              
==========================================
- Hits         6664     6662       -2     
- Misses        486      488       +2     
  Partials       87       87              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cinar
cinar merged commit 6c49f42 into master Aug 19, 2026
5 checks passed
@cinar
cinar deleted the ci/enable-race-and-wire-mcp branch August 19, 2026 05:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: enable -race detector in the test task

2 participants