witty-crayon-22786
08/31/2022, 5:57 PMwitty-crayon-22786
08/31/2022, 6:16 PMhundreds-father-404
08/31/2022, 7:21 PMwitty-crayon-22786
08/31/2022, 7:23 PMhundreds-father-404
08/31/2022, 7:23 PMhundreds-father-404
08/31/2022, 7:24 PMResolvedEnvironmentTarget
for every goal rule? Is that stopping on your shoes?witty-crayon-22786
08/31/2022, 7:24 PMEnvironmentName
name in about 40 files, so it should be shorter. but it’s not blocking.witty-crayon-22786
08/31/2022, 7:24 PMand should I continue with the PR to injectthat is what i am currently working onfor every goal rule? Is that stopping on your shoes?ResolvedEnvironmentTarget
hundreds-father-404
08/31/2022, 7:27 PMwitty-crayon-22786
08/31/2022, 7:28 PMwitty-crayon-22786
08/31/2022, 10:43 PMRuleRunner
tests need to be updated to provide an EnvironmentName
witty-crayon-22786
08/31/2022, 10:44 PMOptionsBootstrapper
parameter in that it touches basically every QueryRule
and product_request
hundreds-father-404
08/31/2022, 10:44 PMa boatload of RuleRunner tests need to be updated to provide an EnvironmentNamelmk if you want help
it’s akin to the old OptionsBootstrapper parameter in that it touches basically every QueryRule and product_requestah, rip
witty-crayon-22786
08/31/2022, 10:52 PMwitty-crayon-22786
08/31/2022, 10:52 PMhundreds-father-404
09/01/2022, 4:08 PMResolvedEnvironmentAlias
, and another that makes the changes to Platform
?
Specifically, I want to get python_bootstrap.py
so it simply requests ResolvedEnvironmentTarget
in its rule signature, vs. right now having to use Get()
witty-crayon-22786
09/01/2022, 4:19 PMwitty-crayon-22786
09/01/2022, 4:20 PMEnvironmentName
injected everywhere is the bit that has all of the test fallouthundreds-father-404
09/01/2022, 4:20 PMhundreds-father-404
09/01/2022, 4:21 PMdocker_environment
? Specifically how users will specify the imagewitty-crayon-22786
09/01/2022, 4:21 PMwitty-crayon-22786
09/01/2022, 4:23 PMwitty-crayon-22786
09/01/2022, 9:56 PMwitty-crayon-22786
09/01/2022, 10:28 PMwitty-crayon-22786
09/02/2022, 3:28 AMwitty-crayon-22786
09/02/2022, 4:20 AMwitty-crayon-22786
09/02/2022, 4:12 PMwitty-crayon-22786
09/02/2022, 10:01 PMEnvironmentName
would be to use a name that we think that we can commit to moving forward.
i think that that should be a separate change from actually using/resolving and renaming ResolvedEnvironmentAlias
… the primary thing to get right is just not needing to change the name again.hundreds-father-404
09/02/2022, 10:01 PMEnvironmentName
makes sense - I'm proposing we should confirm the name & import path nowwitty-crayon-22786
09/02/2022, 10:02 PMpants.engine.environment.EnvironmentName
was that it was close to the ideal for such a widely used type.witty-crayon-22786
09/02/2022, 10:02 PMutil_rules
, for example.hundreds-father-404
09/02/2022, 10:02 PMhundreds-father-404
09/02/2022, 10:02 PMsomething that is used in ~every API should be in util_rules, for example.Meaning, this should be defined in util_rules or in engine?
witty-crayon-22786
09/02/2022, 10:03 PMwitty-crayon-22786
09/02/2022, 10:06 PMThoughts on “name” vs “alias”? We can change the subsystem option still of coursewhile it is possible to change the names at runtime (which feels closer to “aliasing” for me), in practice, that is the assigned name of the environment. i’m not sure it makes sense to have something called
EnvironmentAlias
unless you have already* something else called EnvironmentName
hundreds-father-404
09/02/2022, 10:06 PM[environments].names
? I think I like that more than aliases
🙂witty-crayon-22786
09/02/2022, 10:07 PMenvironments
is what i had been imagining
[GLOBAL]
[environments]
name1 = ..
name2 = ..
witty-crayon-22786
09/02/2022, 10:08 PMhundreds-father-404
09/02/2022, 10:11 PMjust not sure what other options we’re likely to get thereI still think we may want
[environments].local_env
which allows you to force Pants to use a certain value. You can do that by changing the value for a particular name..but that's awkward with a dict option because you need to make sure all the previously defined names are still valid, or you'll get errors
maybe even --local-env
is just : str
, and it's really intended for things like pants.rc
. Rather than the more complex DictOption
mapping Platform -> namewitty-crayon-22786
09/02/2022, 10:14 PMwitty-crayon-22786
09/02/2022, 10:15 PMhundreds-father-404
09/02/2022, 10:15 PMname
rather than alias
. We use "resolve name" everywhere alsowitty-crayon-22786
09/02/2022, 10:16 PMpants.toml
hundreds-father-404
09/02/2022, 10:16 PMwitty-crayon-22786
09/02/2022, 10:16 PMwitty-crayon-22786
09/02/2022, 10:17 PMhundreds-father-404
09/02/2022, 10:17 PMhundreds-father-404
09/02/2022, 10:18 PMEnvironmentField
witty-crayon-22786
09/02/2022, 10:19 PMwitty-crayon-22786
09/02/2022, 10:20 PMwitty-crayon-22786
09/02/2022, 10:42 PM