Skip to content

Speed up running the framework validation test suite #380

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

Merged
merged 1 commit into from
Sep 25, 2022

Conversation

TysonAndre
Copy link
Contributor

  1. We're parsing thousands of files and there are many tokens per file.
    The overhead of all the assert statements is noticeable.
    Optimizing out the check (when they'd pass) speeds this up 3x from 90 seconds to 30 seconds - notably, function calls in php are slow, and phpunit has multiple levels of them
  2. Don't write files only to unlink them later.
    Instead, save the failed file only on test suite failure

1. We're parsing thousands of files and there are many tokens per file.
   The overhead of all the assert statements is noticeable.
   Optimizing out the check speeds this up 3x from 90 seconds to 30 seconds.
2. Don't write files only to unlink them later.
   Instead, save the failed file only on test suite failure
@TysonAndre
Copy link
Contributor Author

@roblourens - thoughts? The speedup for this would be convenient for local development, and #382 would make the validation test suite pass so that it can be required in CI again

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

Great speedup! PHP... 😆

@roblourens roblourens merged commit 9d9b602 into microsoft:main Sep 25, 2022
@TysonAndre TysonAndre deleted the speed-up-validation-suite branch September 25, 2022 19:18
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