Skip to content

Remove empty XHarness logs - #7418

Merged
premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/empty-logs
May 21, 2021
Merged

Remove empty XHarness logs#7418
premun merged 1 commit into
dotnet:mainfrom
premun:prvysoky/empty-logs

Conversation

@premun

@premun premun commented May 20, 2021

Copy link
Copy Markdown
Member

Since we added few more log files which are sometimes empty (app's .err.log for example), let's not upload them to Helix

chmod 0644 "$output_directory"/*.log

# Remove empty files
find "$output_directory" -name "*.log" -maxdepth 1 -size 0 -print -delete

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if helix should just not upload zero-byte files in general. It seems sort of pointless to do.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was thinking the same but no idea if someone relies on it somehow somewhere

@premun
premun merged commit dfc3d94 into dotnet:main May 21, 2021
@premun
premun deleted the prvysoky/empty-logs branch May 21, 2021 07:56
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.

5 participants