Skip to content
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

fix: Prevent 'directory not empty' error in snowfakery on Linux #3864

Merged
merged 6 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cumulusci/tasks/bulkdata/snowfakery.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,10 @@ def _generate_and_load_initial_batch(self, working_directory: Path):
self.sets_finished_while_generating_template = num_records

new_template_dir = data_loader_new_directory_name(template_dir, self.run_until)
shutil.move(template_dir, new_template_dir)
template_dir = new_template_dir
# rename only if new_template_dir does not match template_dir
if template_dir.resolve() != new_template_dir.resolve():
shutil.move(template_dir, new_template_dir)
template_dir = new_template_dir

# don't send data tables to child processes. All they
# care about are ID->OID mappings
Expand Down
Loading