Bug: Remove artifacts directory created by dart-runner v>0.96 in the directory where bags are placed #123
Merged
HafeezOJ merged 3 commits intoAug 27, 2025
Conversation
1 task
zoidy
approved these changes
Aug 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
dart-runnerversions greater than 0.96 create an "_artifacts' directory in addition to the .tar file for a bag in theoutput_dir. The "_artifacts" directory contains only the metadata files in .txt format. Compared todart-runner 0.96, the later versions also return a slightly different data structure and keys after successfully processing a bag, thereby creating aKeyError. Regardless of theKeyError, bags are generated successfully, but bagger reports errors after a run. This PR removes the "_artifacts" folder and fixes theKeyError, hence bagger will be able to usedart-runner 0.96or greater.Fixes
dart-runnerversions after successfully processing an item.Testing (if applicable)
Run ReBACH using
dart-runner 0.97. The test is passed if .tar file is created and "_artifacts" directory is not in output_dir. Also,KeyErrors should not occur.