-
Notifications
You must be signed in to change notification settings - Fork 166
Reduce test log noise and optimize performance in CI #1849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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 implements optimizations to reduce test log noise and improve performance in the CI environment by configuring Jest's silent mode, optimizing worker allocation, and suppressing console output.
Changes:
- Configured Jest to run in silent mode with minimal reporting in CI
- Optimized worker allocation (50% in CI vs 75% locally) to prevent resource contention
- Suppressed console output methods in CI environment to reduce log noise
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| jest.setup.js | Mocks console methods in CI to suppress output |
| jest.preset.js | Configures Jest silent mode, worker count, and minimal reporter for CI |
| .github/workflows/ci.yml | Sets CI environment variable to enable optimizations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| debug: jest.fn(), | ||
| info: jest.fn(), | ||
| warn: jest.fn(), | ||
| error: jest.fn(), |
Copilot
AI
Jan 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mocking console.error will suppress error messages that are critical for debugging test failures in CI. Consider preserving console.error to ensure that genuine errors are still visible in CI logs, while mocking only the informational methods (log, debug, info, warn).
| error: jest.fn(), |
| reporters: process.env.CI === 'true' | ||
| ? [['default', { summaryThreshold: 0 }]] | ||
| : ['default'], |
Copilot
AI
Jan 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The multi-line ternary expression is split inconsistently with the opening condition. Consider moving the entire ternary to one line or restructuring for better readability: reporters: process.env.CI === 'true' ? [['default', { summaryThreshold: 0 }]] : ['default'],
| reporters: process.env.CI === 'true' | |
| ? [['default', { summaryThreshold: 0 }]] | |
| : ['default'], | |
| reporters: process.env.CI === 'true' ? [['default', { summaryThreshold: 0 }]] : ['default'], |
|



Resolves OPS-3429.
This PR implements optimizations to improve test performance and reduce log noise in the CI pipeline:
Changes Made
Expected Impact
Testing
These changes only affect CI environment behavior (when ). Local development test runs remain unchanged for better debugging experience.
This PR was created by AI (GitHub Copilot CLI)