Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

  • Performance evaluation completed - confirmed 53%+ improvement
  • Removed unnecessary sync.Once wrapper per code review
  • Simplified TestMain by moving build logic directly into function body
  • All integration tests passing (3.42s total)
  • All unit tests passing (10.7s total)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Optimize integration test binary to reduce execution time Evaluate performance enhancements in integration test caching Nov 4, 2025
Copilot AI requested a review from pelikhan November 4, 2025 16:38
@pelikhan
Copy link
Contributor

pelikhan commented Nov 4, 2025

@copilot remove sync once as commented above

TestMain runs exactly once before all tests, making the sync.Once
wrapper redundant. Simplified by moving build logic directly into
TestMain body.

Changes:
- Removed sync.Once import and globalBinaryOnce variable
- Moved binary build logic directly into TestMain (no wrapper)
- Zero functional changes - all tests still pass
- Maintains same performance benefits

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 4, 2025

@copilot remove sync once as commented above

Removed sync.Once wrapper as requested. The build logic is now directly in TestMain since it runs exactly once by design.

Changes in 9b4dd0c:

  • Removed sync import and globalBinaryOnce variable
  • Moved build logic directly into TestMain body (no sync.Once.Do() wrapper)
  • All tests still pass with same performance benefits

@pelikhan pelikhan marked this pull request as ready for review November 4, 2025 16:54
@pelikhan pelikhan merged commit 416e1f1 into perf/cache-integration-test-binary-36ba5d908f6693f1 Nov 4, 2025
25 of 30 checks passed
@pelikhan pelikhan deleted the copilot/sub-pr-3021 branch November 4, 2025 16:55
@github-actions github-actions bot mentioned this pull request Nov 4, 2025
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