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 issues for composite actions (Run Service flow) #3446

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

ericsciple
Copy link
Collaborator

No description provided.

@ericsciple ericsciple force-pushed the users/ericsciple/24-08-embed branch 2 times, most recently from 12e67bd to ce2086c Compare August 30, 2024 22:30
@ericsciple ericsciple force-pushed the users/ericsciple/24-08-embed branch from ce2086c to deade9c Compare August 30, 2024 22:34
@ericsciple ericsciple marked this pull request as ready for review August 30, 2024 22:35
@ericsciple ericsciple requested a review from a team as a code owner August 30, 2024 22:35
@@ -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;
Copy link
Collaborator Author

@ericsciple ericsciple Aug 30, 2024

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;
Copy link
Collaborator Author

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

@ericsciple ericsciple merged commit 36c66c8 into main Sep 3, 2024
10 checks passed
@ericsciple ericsciple deleted the users/ericsciple/24-08-embed branch September 3, 2024 22:06
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