-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Changing tags flag format #619
Conversation
Changing separator from `foo=bar` to `foo:bar` in order to keep consistence between how we format in flags like `stages` and environment variables, since we use the envconfig project which also uses `:` as separator for maps
Codecov Report
@@ Coverage Diff @@
## master #619 +/- ##
==========================================
- Coverage 62.08% 62.07% -0.02%
==========================================
Files 97 97
Lines 7512 7512
==========================================
- Hits 4664 4663 -1
- Misses 2588 2589 +1
Partials 260 260
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'm not sure the semantics here and with the stages are the same. This resembles the setting of environment variables more than the setting of stages, and that one uses =
to separate keys and values.
Also, stages are not really keys and values like tags or environment variables, for the moment they are duration:vus
pairs with the vus
being optional. That would probably change and become more complicated when the arrival-rate executor is done, but it still won't be a key-value map.
I agree. But what is your suggestion then? should we keep the way it is now? Which in the case is when using command-line flags it will be |
Not sure to be honest. I personally don't like the format Also, I don't think |
Actually, it won't be a breaking change because tags weren't released yet. And regarding the setting of multiples tags with the environment variable I would say that moving away from |
Maybe I didn't phrase that correctly: it won't be a breaking change to do |
Decided to wait for the config handling refactor before making any decisions on this, so we can pick one format and use it everywhere. |
Changing separator from
foo=bar
tofoo:bar
in order to keep consistencebetween how we format in flags like
stages
and environment variables,since we use the envconfig project which also uses
:
as separator for maps