-
Notifications
You must be signed in to change notification settings - Fork 389
Enable Helix queue stats logging for Arcade unit tests #17018
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
Open
+12
−2
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2a0c522
Enable Helix queue stats logging for Arcade unit tests
chcosta 6efdd09
Elevate JobSender log callback to High when queue stats enabled
chcosta c368b79
Add Azure DevOps organization/project context to Helix job creation
chcosta 24f9f81
Remove unnecessary Azure DevOps org/project context from Helix client
chcosta e308631
Merge branch 'main' of https://github.com/dotnet/arcade into dev/chco...
chcosta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -267,8 +267,10 @@ protected override async Task ExecuteCore(CancellationToken cancellationToken) | |
|
|
||
| Log.LogMessage(MessageImportance.High, $"Sending Job to {TargetQueue}..."); | ||
| cancellationToken.ThrowIfCancellationRequested(); | ||
| // LogMessageFromText will take any string formatted as a canonical error or warning and convert the type of log to this | ||
| ISentJob job = await def.SendAsync(msg => Log.LogMessageFromText(msg, MessageImportance.Normal), cancellationToken); | ||
| // LogMessageFromText will take any string formatted as a canonical error or warning and convert the type of log to this. | ||
| // When queue-stats logging is opted in, elevate to High importance so the summary survives the default 'Minimal' build verbosity. | ||
| MessageImportance sendAsyncImportance = EnableShowHelixQueueStats ? MessageImportance.High : MessageImportance.Normal; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment suggests that Minimal should be the important when not enabled?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's what it was, yes. which meant queue stat logging wasn't visible.
Comment on lines
+270
to
+272
|
||
| ISentJob job = await def.SendAsync(msg => Log.LogMessageFromText(msg, sendAsyncImportance), cancellationToken); | ||
| JobCorrelationId = job.CorrelationId; | ||
| JobCancellationToken = job.HelixCancellationToken; | ||
| cancellationToken.ThrowIfCancellationRequested(); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.