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

feat: transfer also removes empty log folders #463

Open
wants to merge 2 commits into
base: transition-to-runkit
Choose a base branch
from

Conversation

eduardacoppo
Copy link

@eduardacoppo eduardacoppo commented Feb 20, 2025

[sc-67798]

Tested it by writing unit tests and following the tutorial here

empty includes log folders with only the info.yml file in it, since it is not transferred.
info.yml only provides information about the log generation commands, so it can be safely deleted.
@eduardacoppo eduardacoppo force-pushed the transfer_also_removes_folders branch from 324022f to 921f424 Compare February 20, 2025 14:56
Comment on lines +188 to +190
results = log_transfer_results(dataset_path, result, logger: logger)
remove_dataset_folder_if_empty(dataset_path, logger)
results
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that there is a race condition here, especially for process servers: the folder will have only a info.yml until the remote system actually generates some other logs.

I actually believe that with the new system, the folder will be really empty in the end (no info.yml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants