-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Using captureKicksDiagnostics to speed up multiple plugin tests #4339
Conversation
Move test data to temporary directory. Avoid `waitForDiagnosticsWithSource` as it unconditionally waits for diagnostics.
hey @soulomoon, any suggestions? |
@komikat Did you investigate the failing test case? |
Yes, I'm looking into it, will hopefully have something by tomorrow. PS: the failing testcase is ignoreHintGoldenResolveTest. |
This looks like... the testcase is wrong? I can't explain it, but changing |
Perhaps we lack a |
@komikat since I do not familiar with cabal plugin, I can only give very general suggestions. Take consideration of the following.
|
|
Setting Will also have to look into "provides 3.8 code actions including apply all" since it's correctly failing after ignoring redundant id, it expects both redundant id and eta reduce currently. |
Moved hlint tests to the virtual file system and fixed a config issue with the resolveTests. |
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.
good work!
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.
Thanks for pushing this over the finish line! Please also make sure to remove dead code, e.g. code that is commented out.
Updated PR scope, please refer TODO. |
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.
LGTM, doing a final CI run to make sure the tests didn't get more flaky
seems like the timeout in PluginSimpleTests still happens erratically (unmarked as broken in #4259) |
Extending #4144 to
cabal-plugin-tests
and merging upstream changes onhlint-plugin-tests
Update: Extending to multiple plugins as noted below.
Update 2: Scope reverted to cabal and hlint plugins. (ref #4371)
TODO