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 bug in workload history recorder #42536

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

Forgind
Copy link
Member

@Forgind Forgind commented Aug 6, 2024

Without this, it interprets the hashed form of the version as a workload set version

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Aug 6, 2024
@@ -54,15 +54,16 @@ public void Run(Action workloadAction)
private WorkloadHistoryState GetWorkloadState()
{
var resolver = _workloadResolverFunc();
var currentWorkloadInfo = resolver.GetWorkloadVersion();
var currentWorkloadVersion = resolver.GetWorkloadVersion();
currentWorkloadVersion = currentWorkloadVersion.Contains("manifest") ? string.Empty : currentWorkloadVersion;
Copy link
Member

Choose a reason for hiding this comment

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

Is there an api that tells you you're in workload set (or not) mode that you could use instead of doing the string check?

Copy link
Member Author

Choose a reason for hiding this comment

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

It sounded like there was consensus behind this, so I implemented it. I want to point out, however, that it made the PR roughly 25x as big...albeit from 'tiny' to 'small'

@marcpopMSFT marcpopMSFT merged commit 83f146d into dotnet:main Aug 13, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants