Skip to content

ci: remove redundant compile step on non-Linux runners#382

Merged
askpt merged 1 commit into
mainfrom
repo-assist/eng-ci-remove-redundant-compile-20260618-ba83317769e2da39
Jun 19, 2026
Merged

ci: remove redundant compile step on non-Linux runners#382
askpt merged 1 commit into
mainfrom
repo-assist/eng-ci-remove-redundant-compile-20260618-ba83317769e2da39

Conversation

@askpt

@askpt askpt commented Jun 19, 2026

Copy link
Copy Markdown
Owner

test:unit already runs npm run compile internally before invoking mocha.
The standalone npm run compile step that preceded it on non-Linux runners
was therefore compiling TypeScript twice per CI run, wasting 2-3 seconds on
macOS and Windows.

Remove the redundant step. test:unit still compiles before running mocha, so
any TypeScript errors surface at the same point in the pipeline.
Closes #380

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

test:unit already runs `npm run compile` internally before invoking mocha.
The standalone `npm run compile` step that preceded it on non-Linux runners
was therefore compiling TypeScript twice per CI run, wasting 2-3 seconds on
macOS and Windows.

Remove the redundant step. test:unit still compiles before running mocha, so
any TypeScript errors surface at the same point in the pipeline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 19, 2026 18:58
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.72%. Comparing base (5472f3b) to head (de598c3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #382   +/-   ##
=======================================
  Coverage   73.72%   73.72%           
=======================================
  Files          13       13           
  Lines        4133     4133           
  Branches      434      434           
=======================================
  Hits         3047     3047           
  Misses       1084     1084           
  Partials        2        2           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Pull request overview

This PR streamlines the CI workflow for macOS and Windows runners by removing a redundant TypeScript compilation step. Since npm run test:unit already runs npm run compile first, this avoids compiling twice on non-Linux platforms while preserving the same failure point for TypeScript errors.

Changes:

  • Removed the standalone npm run compile step on non-Linux runners in CI.
  • Updated the workflow comments to reflect that test:unit already performs compilation and that lint remains Linux-only via test:coverage.

@askpt askpt merged commit baf7428 into main Jun 19, 2026
17 checks passed
@askpt askpt deleted the repo-assist/eng-ci-remove-redundant-compile-20260618-ba83317769e2da39 branch June 19, 2026 19:02
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.

[repo-assist] ci: remove redundant compile step on non-Linux runners

2 participants