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

changes to support specific run service URL #2158

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

yaananth
Copy link
Contributor

@yaananth yaananth commented Sep 26, 2022

Issue: https://github.com/github/c2c-actions-service/issues/3231

Please see the list of all PR's involved and diagram showing before & after on high level and demo video at https://github.com/github/c2c-actions-service/issues/3231#issuecomment-1258397487

TL;DR: Run stamp will inject a run service URL as part of job message, which the broker would send that through to runner.

Runner would directly call the stamp to acquire job (no more proxying through actions service), so changes were needed to support that.

We didn't want to use vssf for the new call, so did the minimum to support the new calls, mimicking vssf but with out vssf based dependencies

@yaananth yaananth force-pushed the yaananth-url-callback2 branch from aa7bead to 42985d1 Compare September 26, 2022 17:36
@yaananth yaananth marked this pull request as ready for review September 27, 2022 15:03
@yaananth yaananth requested a review from a team as a code owner September 27, 2022 15:03
Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

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

Some thoughts!

src/Runner.Common/ActionsRunServer.cs Show resolved Hide resolved
src/Sdk/WebApi/WebApi/OAuth/VssOAuthCredential.cs Outdated Show resolved Hide resolved
src/Sdk/Common/Common/RawHttpMessageHandler.cs Outdated Show resolved Hide resolved
@yaananth yaananth requested a review from thboop October 5, 2022 19:29
Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

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

lgtm

@thboop thboop merged commit 252f4de into actions:main Oct 6, 2022
var jobMessage = await runServer.GetJobMessageAsync(messageRef.RunnerRequestId, messageQueueLoopTokenSource.Token);
if (string.IsNullOrEmpty(messageRef.RunServiceUrl))
{
var actionsRunServer = HostContext.CreateService<IActionsRunServer>();
Copy link
Member

Choose a reason for hiding this comment

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

These should be HostContext.GetService<> so the underline object will be reused.

Copy link
Contributor Author

@yaananth yaananth Oct 7, 2022

Choose a reason for hiding this comment

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

👌🏼 I didn't do this btw, this was his how it was before 🤷🏻‍♂️ I added new code doing the same
Do you want me to do a follow up PR with just this change or do we have any other PR's that we can bundle this with?

Copy link
Member

Choose a reason for hiding this comment

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

maybe just a follow-up PR for this change only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do, thanks!

nikola-jokic pushed a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
* changes to support run service url

* feedback
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Aug 14, 2024
* changes to support run service url

* feedback
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.

3 participants