Open
Description
2023-04-11 16:31:44,329:INFO:bugbug.utils:Downloading https://community-tc.services.mozilla.com/api/index/v1/task/project.bugbug.train_testlabelselect.v0.0.499/artifacts/public/testlabelselectmodel.zst...
2023-04-11 16:31:44,841:INFO:bugbug.db:Downloading https://community-tc.services.mozilla.com/api/index/v1/task/project.bugbug.data_test_label_scheduling_history.latest/artifacts/public/past_failures_label.lmdb.tar.zst to data/past_failures_label.lmdb.tar.zst
tar: Error inclusion pattern: Error reading 'zstd'
Traceback (most recent call last):
File "/Users/smujahid/repos/mozilla/bugbug/scripts/commit_classifier.py", line 865, in <module>
main()
File "/Users/smujahid/repos/mozilla/bugbug/scripts/commit_classifier.py", line 851, in main
classifier = CommitClassifier(
File "/Users/smujahid/repos/mozilla/bugbug/scripts/commit_classifier.py", line 198, in __init__
assert db.download_support_file(
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/db.py", line 74, in download_support_file
utils.extract_file(path)
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/utils.py", line 289, in extract_file
extract_tar_zst(path)
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/utils.py", line 282, in extract_tar_zst
subprocess.run(["tar", "-I", "zstd", "-xf", path], check=True)
File "/opt/homebrew/Cellar/[email protected]/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['tar', '-I', 'zstd', '-xf', 'data/past_failures_label.lmdb.tar.zst']' returned non-zero exit status 1.
Steps to reproduce:
- Remove the
data
directory - Run
scripts/commit_classifier.py
The tar command works when dropping the -I zstd
part.