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

Run Service: Only add StepResult for Tasks, not the Job itself #2620

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

cdb
Copy link
Contributor

@cdb cdb commented May 23, 2023

This is an attempt to remove an extra Job Step that is coming through to the Run Service /completejob endpoint:

CleanShot 2023-05-23 at 13 47 41

In a codespace, this does correct the issue:

CleanShot 2023-05-23 at 13 48 41

I don't think how I got the tests to 🟢 is really correct. With this code change ec.Global.StepsResult.Count is stuck at 0 in the test case. I think I somehow need to ensure that the Job being run by the test case has a step, and I don't think the embeddedStep is doing that correctly? Looking for advice on how to wire it up.

Additionally, I wonder if instead of moving the code inside a the if (_record.RecordType == "Task") conditional, it could just go inside the if (Root != this) which is right underneath?

@cdb cdb requested a review from a team as a code owner May 23, 2023 20:53
@cdb cdb merged commit d4bbbb8 into actions:main Jun 30, 2023
@cdb cdb deleted the users/cdb/remove-extra-step branch June 30, 2023 11:17
ashb pushed a commit to ashb/runner that referenced this pull request Jul 1, 2023
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