Repository navigation
🐛 fix(config): resolve factor labels by position when groups share a value - #4402
Merged
gaborbernat merged 2 commits intoNov 17, 2026
Merged
Conversation
gaborbernat
force-pushed
the
factor-label-shared-value
branch
from
November 17, 2026 16:39
c5ad374 to
75f67c6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When two factor groups contain the same value,
{factor:label}picks the wrong one.replace_factorchecks each group's values against the set of factors in the env name, so the first value of the group that shows up anywhere in the name wins, whichever group put it there.tox lshowedmigrate-py313-py312 -> py312 to py312andmigrate-py312-py313 -> py312 to py312. The same happens with labeled groups in anenv_listproduct, e.g.{ client = ["v1", "v2"] }, { server = ["v1", "v2"] }.The env names are built from the cartesian product, so at that point we know which value each group contributed. The fix records that per generated env name on the
FactorGroupandreplace_factoruses it first. Envs outside the matrix (an[env.NAME]table, or an env_base label read from anenv_listenv) still go through the old membership lookup and the declared default.tox -e fix)docs/changelogfragment for user-facing changes, or appliedskip newstox run -e 3.11,3.15)