-
Notifications
You must be signed in to change notification settings - Fork 493
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
Consolidate SKIP_E2E_SUBS and E2E_SUBS_ONLY #2705
Consolidate SKIP_E2E_SUBS and E2E_SUBS_ONLY #2705
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2705 +/- ##
==========================================
+ Coverage 47.08% 47.09% +0.01%
==========================================
Files 349 349
Lines 55887 55887
==========================================
+ Hits 26312 26319 +7
+ Misses 26626 26621 -5
+ Partials 2949 2947 -2
Continue to review full report at Codecov.
|
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.
I think this looks ok with the new change if we want to leave the option of adding another option in the future.
Talked to Will, will be refactoring to use switch statement. |
It looks like it would work, but has the same mixed skip/only pattern so in general, the design seems strange to me. There exists this undefined "other stuff" that doesn't need to be so mysterious. I think selecting which tests to run would be easy to understand, and flexible for future subdivisions (like when we re-enable expect tests):
A switch/case could also be nice if wrapping everything in if's is too ugly |
@winder Changed to switch case and combined into one variable as we discussed. Refactoring everything in that file into it's own if statements and adding variables where it's used might be a bit outside of the scope of this ticket. So we should file another ticket if you want to refactor this file. What do you think? |
This looks more complex with no benefit. My main concern was that we used both enable and skip so this has the same configuration complexity and extra code complexity. Why not use a simple if block that supports future cases with a direct configuration and simple code? Either way I'll defer to the DevOps team. Whoever re-enables the expect tests will need to revisit this code. |
that's what i thought too, that's why i was confused when you said you wanted switch statement. I don't think we understand what you want here @winder |
putting this ticket in blocked/icebox until we have clear description and delivierables. |
@winder how about this? If this is not it, we should definitely have another call once you are back. Apologies if I misunderstood. |
Why is the if statement checking for E2E_TEST_FILTER just seems a bit odd to me. Maybe it could check for |
Yes, that's the default right now. We have places that run this without any flags.
I'm not sure that's where Will wants to go with this, so far as I understand it we want the default (no flags) to be defined to run these (vs not running) |
In that case, I guess that makes sense. |
Summary
Replaced SKIP_E2E_SUBS var and E2E_SUBS_ONLY var with E2E_SUBS var that has values of "ONLY" and "SKIP" as well as not set at all. We might need to add another value to this var in the future for another option.
Test Plan
Check if tests work correctly still.