-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix(appset): regard selector in nested matrix generator's generators #11984
fix(appset): regard selector in nested matrix generator's generators #11984
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #11984 +/- ##
==========================================
- Coverage 49.64% 49.62% -0.03%
==========================================
Files 256 256
Lines 43914 43943 +29
==========================================
+ Hits 21800 21805 +5
- Misses 19958 19976 +18
- Partials 2156 2162 +6
☔ View full report in Codecov by Sentry. |
Does this work as intended? If so, could you write some e2e tests to exercise that functionality? |
The fix works, tried with my local cluster. I'll have a look into the e2e testing setup this project uses! Need to check why my branch is failing after the rebase anyway. |
@blakepettersson I've added an e2e test that covers the fix. |
@crenshaw-dev as discussed I've added a flag and log some warnings if someone is using terminal generators with selectors without having the flag enabled. I'm not sure if this is the cleanest solution (i.e. adding the terminal selector when unmarshalling and removing it afterwards) instead of not adding it in the first place when going from terminal to nested, but the latter would need access to the application set (1. for the flag, 2. for some meaningful log warnings). if this solution is okay, I would write 3 more e2e tests for the remaining branches (matrix->merge, merge->matrix, merge->merge). |
@crenshaw-dev pull request is ready for review now |
@Roshick would you mind resolving conflicts? I will give the PR a review today. |
Sure, I can take care of it this evening! |
@ishitasequeira done, but for some reason I don't understand the docs build failed |
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!! @crenshaw-dev could you take another look?
@crenshaw-dev would appreciate another review :) |
I will rebase and fix up the pull request next week and hope we can get it merged soon. |
Thanks, @Roshick! Apologies for the delayed review. Looking forward to giving it a final pass next week. |
Signed-off-by: Elias Rieb <e.rieb@posteo.de>
@crenshaw-dev all fixed up now and ready to be reviewed! :) |
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, @Roshick!
Drat, I broke auto-merge. I'll solve merge conflicts and push, then I'll merge after checks pass. |
…-matrix-generators Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
…ctors (argoproj#11984) Signed-off-by: Elias Rieb <e.rieb@posteo.de> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
…ctors (argoproj#11984) Signed-off-by: Elias Rieb <e.rieb@posteo.de> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Fixes #11982
Checklist: