Skip to content
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 Cartesian product to return empty set if empty set is given #503

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

edtan
Copy link
Contributor

@edtan edtan commented Jan 23, 2021

This fixes #499, where a matrix strategy with only include keys ends up
causing multiple builds. This bug appears to have been introduced in #415,
when extra include keys are added in the matrix strategy. The cause
seems to be because the CartesianProduct function returns an item with
empty keys, instead of returning an empty set, when given an empty set.

This fixes nektos#499, where a matrix strategy with only include keys ends up
causing multiple builds.  This bugs appears to have been introduced in nektos#415,
when extra include keys are added in the matrix strategy.  The cause
seems to be because the CartesianProduct function returns an item with
empty keys, instead of return an empty set.
@edtan edtan requested a review from cplee as a code owner January 23, 2021 19:09
Copy link
Contributor

@cplee cplee left a comment

Choose a reason for hiding this comment

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

Thank you!

@cplee cplee merged commit 56ec367 into nektos:master Jan 23, 2021
@edtan edtan deleted the fix-cartesian-product-empty-set branch January 24, 2021 01:51
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.

jobs.*.strategy.matrix.include doesnt seem to be parsed correctly when used in a step's env.
2 participants