Skip to content

Commit

Permalink
config/runtime/kunit: fix artifact field names
Browse files Browse the repository at this point in the history
Normalize field names, replace '.' characters with '_', as dots in
fields are problematic with mongodb

Signed-off-by: Ricardo Cañuelo <[email protected]>
  • Loading branch information
r-c-n authored and nuclearcat committed Jan 15, 2024
1 parent 84695cb commit 582f202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/runtime/kunit.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ cd {src_path}
root_path = '-'.join([JOB_NAME, NODE['id']])
print(f"Uploading artifacts to {root_path}")
for file_name, file_path in local_artifacts.items():
# Normalize field names
file_name = file_name.replace('.', '_')
if os.path.exists(file_path):
file_url = storage.upload_single(
(file_path, file_name), root_path
Expand Down

0 comments on commit 582f202

Please sign in to comment.