Skip to content

fix: resolve CI failures and flaky detector tests - #17

Merged
Lambertyan merged 1 commit into
mainfrom
fix/ci-and-test-fixes
Jul 28, 2026
Merged

fix: resolve CI failures and flaky detector tests#17
Lambertyan merged 1 commit into
mainfrom
fix/ci-and-test-fixes

Conversation

@Lambertyan

Copy link
Copy Markdown
Contributor

Summary

This PR fixes all CI failures on the main branch and makes the detector tests robust against environment pollution.

Root causes fixed

  1. Flaky detector tests: Test environment pollution from agent config files in $HOME caused non-deterministic test failures. Added filesystem isolation in beforeEach/afterEach to clean up leaked config files.

  2. pnpm version conflict: All CI workflows specified version: 9 while package.json declares packageManager: pnpm@9.15.0. The pnpm/action-setup v4 detects this mismatch and fails. Fixed by specifying exact version 9.15.0.

  3. Node.js 20 deprecation: GitHub Actions deprecated Node 20. Updated test matrix from [20, 22] to [22, 24].

  4. pnpm/action-setup v2 → v4: Upgraded in ci.yml for consistency with other workflows.

Verification

  • All 6082 tests pass (119 test files)
  • All 29 integration tests pass
  • All 15 property-based tests pass

- Fix flaky detector test: add filesystem isolation to prevent
  agent config file pollution between test runs
- Fix pnpm version mismatch across all CI workflows
  (version: 9 -> 9.15.0 to match packageManager field)
- Upgrade pnpm/action-setup from v2 to v4 in ci.yml
- Upgrade Node.js matrix from [20, 22] to [22, 24]
  (Node 20 is deprecated on GitHub Actions runners)
- Clean up leaked agent config files in beforeEach/afterEach
  to ensure test isolation across all describe blocks
@github-actions

Copy link
Copy Markdown

🔄 Code Analyzer — Review in Progress

The automated review is currently running. This comment will be replaced with a full report once the analysis completes.

Status: Running security, standards, and code-quality checks...

Last updated: 2026-07-28T05:39:34.689Z

@Lambertyan
Lambertyan merged commit 35ca0bb into main Jul 28, 2026
8 of 12 checks passed
@github-actions

Copy link
Copy Markdown

⚠️ Code Analyzer Review Failed

The review encountered issues:

  • Some findings are missing code references (file/line).
  • Review process was interrupted.

Please check the workflow logs for details.

🤖 Generated by Code Analyzer

@github-actions

Copy link
Copy Markdown

🏎️ Benchmark Results

Suite Category Mean P50 P95

✅ No performance regressions detected

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