-
Notifications
You must be signed in to change notification settings - Fork 32
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
migrate to dart test configuration #1035
Conversation
packages/dynamite/dynamite_end_to_end_test/test/ensure_validity_test.dart
Outdated
Show resolved
Hide resolved
b11f9f8
to
216e1d5
Compare
This was really painful. |
Seems like it is still broken. |
Does that make sense? The current issue is that the timeout overrides per tag are not taken into account so our scale factor of 20 that we use to get 10minutes isn't used. |
When I tested it yesterday the retry count was correctly applied to tests with the |
Can you point me to the docs for this config file? Maybe there is just something wrong with our config |
As far as I understand the docs the timeout you configured should work just fine. It also allows you to specify the concurrency for a tag, but I assume that would only apply to tests that have this tag (which we don't want)? |
This also only allows us to set a fixed concurrency but we want it to be dynamic through
I think you could also specify it globally for all test, similar to the global timeout of 30s |
Yes, but I would force that through the command line and then override it for that one tag to be 1.
Sure, but then we run all tests with concurrency 1 which is bad |
But I don't think the concurrency discussion helps us in any way with the timeout problems :) |
216e1d5
to
64ffe0b
Compare
Ok leaving the base timeout out fixed it. Can you please review @provokateurin |
Can you report that in the dart test repo? I don't think this is intended |
This might be intended.
and our |
Can you please approve so we can finally land the fix on dynamite. |
Tbh I still don't like this because I can't just run |
can you elaborate? (I just noticed that the melos command also excludes "integration" so I'll adjust that) |
Signed-off-by: Nikolas Rimikis <[email protected]>
64ffe0b
to
329adc7
Compare
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.
Ok so this works, but we don't really need the dart test configuration at all. Just set the timeout and tag for that one test and keep the changes in melos.yaml and .github
Instead of filtering on the dart_test.yaml file which could very well be used for other reasons please use something else. Maybe just a file called source_verification.txt with a comment inside to explain why it is needed. |
I disagree. With #1014 this would get duplicated and even more if we decide to enable something similar on the neon packages (once we use go_router we'll also generate a lot of code there).
In this case I'd rather keep the test name the same and filter based on that. |
I see, but I would have expected the shared config file in the PR where you actually have this problem and not in a different PR if that makes sense?
I thought the problem with filtering for a tag or test name is that the command fails if there are no tests matching the filter? If not then please go for it |
This is a chicken and egg problem. I initially only wanted to add the validity testing for the nc package which can't go through because of the dynamite header bug which can't go through because of the dynamite_e2e validity test timeout. If you want I can also just dirty fix the timeout with this PR by hard coding a longer one into the one test and do all the shared
We cant do that on the melos exec --scope="$packages_glob" --concurrency=1 --fail-fast --file-exists=test/ensure_validity_test.dart -- "flutter test --concurrency=1 -t source_verification" |
extracted from #1014
Needed for #1024