-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
lower limit at which we start shortening filenames for variant configs #2233
base: main
Are you sure you want to change the base?
Conversation
but don't just take the short_config_name, which is too short to distinguish the file names of the respective builds (e.g. CPU vs. CUDA)
short_config_name = config_name[:35] + "_h" + h | ||
if len("conda-forge-build-done-" + config_name) >= 250: | ||
short_config_name = config_name[:40] + "_h" + salt | ||
if len("conda-forge-build-done-" + config_name) >= 200: |
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.
if len("conda-forge-build-done-" + config_name) >= 200: | |
if len(config_name) >= 190: |
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.
Doesn't this need to take into account something like
C:\Users\runnerx\_work\pytorch-cpu-feedstock\pytorch-cpu-feedstock\.ci_support\
(not sure where you got that from, and why the pytorch-cpu-feedstock
is doubled), then we can directly check >=260
.
@@ -791,12 +791,13 @@ def dump_subspace_config_files( | |||
package_key(config, top_level_loop_vars, metas[0].config.subdir), | |||
) | |||
short_config_name = config_name | |||
salt = hashlib.sha256(config_name.encode("utf-8")).hexdigest()[:8] |
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.
salt = hashlib.sha256(config_name.encode("utf-8")).hexdigest()[:8] | |
hash = hashlib.sha256(config_name.encode("utf-8")).hexdigest()[:8] |
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.
This looks like a reasonable change to me
This was proposed by Isuru here. I don't know where the limit on the windows server from prefix is coming from, normally filenames until 260 characters should be fine, but it still fails in conda-forge/pytorch-cpu-feedstock#332 (which has been rerendered with the changes this PR) with
On the other hand, I don't want to shorten the config names too much, because then we lose a lot of information which is relevant for the pytorch/tensorflow feedstocks, like is this a CPU or GPU job (doubly so if we'd take the doubled CI as in conda-forge/pytorch-cpu-feedstock#332), and it's not desirable to just too-short filenames that are only distinguishable by hashes, where one has no idea which exact config is behind when looking at the actions UI.