Skip to content

quick, low-effort binlog upload when created by commands deriving from DotnetCommand #49513

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

baronfel
Copy link
Member

We always forget how to get helix to upload binlogs, so what if we just did a check after each command we execute in the test framework to upload it?

Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

Great! It might be nice to handle file name collisions in case you have multiple tests that just specify -bl and get the default msbuild.binlog filename, but usually you're probably just interested in one test so it's not a big deal.

@baronfel
Copy link
Member Author

Great! It might be nice to handle file name collisions in case you have multiple tests that just specify -bl and get the default msbuild.binlog filename, but usually you're probably just interested in one test so it's not a big deal.

I was thinking along similar lines, but at this level of our test framework we don't know if a binlog was requested. We could possibly add a fluent builder method to request a binlog that could track that data for more precise upload here. What I really expect is more per-test-case binlog name customization like I'm doing over here: f8240a4

This way, if the dev does the simple thing (adding a /bl in a test) we're more likely to do what they expect (upload that binlog) without any additional code on their end.

@baronfel baronfel marked this pull request as ready for review June 20, 2025 14:09
@baronfel baronfel enabled auto-merge (squash) June 20, 2025 14:09
@baronfel baronfel merged commit 65ceb47 into dotnet:main Jun 20, 2025
31 checks passed
@baronfel baronfel deleted the upload-binlogs-as-helix-assets branch June 20, 2025 15:40
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