conda-smithy icon indicating copy to clipboard operation
conda-smithy copied to clipboard

Shorten config & job names

Open saraedum opened this issue 4 years ago • 7 comments

I found the names that are generated for CI jobs a bit difficult to parse, e.g., here:

image

with this change, they look a bit nicer to me:

image

TODO:

  • [ ] Bring back platform-target
  • [ ] Write NEWS
  • [ ] More tests

saraedum avatar Jun 26 '20 12:06 saraedum

I’m not in favor of this. Knowing where each config var comes from is useful.

beckermr avatar Jun 26 '20 12:06 beckermr

I’m not in favor of this. Knowing where each config var comes from is useful.

Ok. Then what about doing this only for specific variables such as python_impl?

saraedum avatar Jun 26 '20 12:06 saraedum

Yes. Things that are obvious could be shortened like python or python_impl

beckermr avatar Jun 26 '20 12:06 beckermr

I think I still like this more aggressive approach better as it's hard to maintain a list of "boring" variables. There are quite a few variables that change over time that we don't show here anyway, such as the global pinnings.

For the feedstocks that I am actively maintaining, I know what the possible combinations are and if I doubt it I personally always look at the config or the CI output to understand which combination I am looking at. But maybe that's just me :)

saraedum avatar Jun 26 '20 13:06 saraedum

@beckermr, @scopatz: I now gave it a default list of variables and the option for maintainers to modify them.

saraedum avatar Jun 26 '20 21:06 saraedum

Just to clarify, I started doing this because I had two comments where people thought that something was wrong with a feedstock or conda-smithy because the CI names look broken.

saraedum avatar Jun 26 '20 22:06 saraedum

Sure I get that. We could do better on extra underscores for example. But having the variable names in the config file path is very useful especially for the build-locally script where those config names appear as options in the script.

beckermr avatar Jun 26 '20 22:06 beckermr