Skip to content
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

Do not measure perform performance in CI #941

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Feb 19, 2025

When executing in Swift CI, run the block to make sure it doesn't hit any assertions because we don't look at performance numbers in CI and CI nodes can have variable performance characteristics if they are not bare-metal.

Anywhere else, run XCTest's measure function to measure the performance of the block.

Fixes #939
rdar://145139964

When executing in Swift CI, run the block to make sure it doesn't hit any assertions because we don't look at performance numbers in CI and CI nodes can have variable performance characteristics if they are not bare-metal.

Anywhere else, run XCTest's `measure` function to measure the performance of the block.

Fixes swiftlang#939
rdar://145139964
Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach! Better than what I had in mind.

@ahoppen ahoppen merged commit eeb2850 into swiftlang:main Feb 19, 2025
19 checks passed
@ahoppen ahoppen deleted the no-measure-in-ci branch February 19, 2025 21:29
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.

testWhitespaceLinterPerformance is flaky on Windows
2 participants