mirror of
https://github.com/actions/runner.git
synced 2025-12-14 04:53:34 +00:00
Pass jobId to the actionsDownloadInfo controller (#1639)
* Update JobServer.cs * Update ActionManager.cs * Update TaskHttpClientBase.cs * Update ActionManagerL0.cs * Update ActionManager.cs * :nit changes * Update ActionManager.cs * :nit changes * Code formatting * Update JobServer.cs * Update JobServer.cs * Update TaskHttpClientBase.cs * Update ActionManagerL0.cs * :nit changes * passing `jobId` as queryparameter to the controller * :nit changes * Update src/Sdk/DTGenerated/Generated/TaskHttpClientBase.cs Co-authored-by: Lokesh Gopu <lokesh755@github.com> Co-authored-by: Tingluo Huang <tingluohuang@github.com> Co-authored-by: Lokesh Gopu <lokesh755@github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
@@ -2135,6 +2135,7 @@ runs:
|
||||
_ec = new Mock<IExecutionContext>();
|
||||
_ec.Setup(x => x.Global).Returns(new GlobalContext());
|
||||
_ec.Setup(x => x.CancellationToken).Returns(_ecTokenSource.Token);
|
||||
_ec.Setup(x => x.Root).Returns(new GitHub.Runner.Worker.ExecutionContext());
|
||||
var variables = new Dictionary<string, VariableValue>();
|
||||
if (enableComposite)
|
||||
{
|
||||
@@ -2156,8 +2157,8 @@ runs:
|
||||
_dockerManager.Setup(x => x.DockerBuild(_ec.Object, It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>())).Returns(Task.FromResult(0));
|
||||
|
||||
_jobServer = new Mock<IJobServer>();
|
||||
_jobServer.Setup(x => x.ResolveActionDownloadInfoAsync(It.IsAny<Guid>(), It.IsAny<string>(), It.IsAny<Guid>(), It.IsAny<ActionReferenceList>(), It.IsAny<CancellationToken>()))
|
||||
.Returns((Guid scopeIdentifier, string hubName, Guid planId, ActionReferenceList actions, CancellationToken cancellationToken) =>
|
||||
_jobServer.Setup(x => x.ResolveActionDownloadInfoAsync(It.IsAny<Guid>(), It.IsAny<string>(), It.IsAny<Guid>(), It.IsAny<Guid>(), It.IsAny<ActionReferenceList>(), It.IsAny<CancellationToken>()))
|
||||
.Returns((Guid scopeIdentifier, string hubName, Guid planId, Guid jobId, ActionReferenceList actions, CancellationToken cancellationToken) =>
|
||||
{
|
||||
var result = new ActionDownloadInfoCollection { Actions = new Dictionary<string, ActionDownloadInfo>() };
|
||||
foreach (var action in actions.Actions)
|
||||
|
||||
Reference in New Issue
Block a user