-
Notifications
You must be signed in to change notification settings - Fork 997
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 issues for composite actions (Run Service flow) #3446
Conversation
12e67bd
to
ce2086c
Compare
ce2086c
to
deade9c
Compare
@@ -365,6 +366,10 @@ public IExecutionContext CreateChild( | |||
|
|||
var child = new ExecutionContext(this, isEmbedded); | |||
child.Initialize(HostContext); | |||
if ((Global.Variables.GetBoolean("RunService.FixEmbeddedIssues") ?? false) && embeddedIssueCollector != null) | |||
{ | |||
child._embeddedIssueCollector = embeddedIssueCollector; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently _embeddedIssueCollector
is incorrectly set in the constructor here
It's used in the method Complete
to populate the roll-up step annotations here which is then published as step results only for "Task" execution contexts (i.e. not for the "Job" execution context.
@@ -154,6 +153,7 @@ public sealed class ExecutionContext : RunnerService, IExecutionContext | |||
private CancellationTokenSource _cancellationTokenSource; | |||
private TaskCompletionSource<int> _forceCompleted = new(); | |||
private bool _throttlingReported = false; | |||
private List<Issue> _embeddedIssueCollector; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed readonly
because initialized by the method CreateChild
now
No description provided.