mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
Clean up trace messages + add Trace debug in ActionManager
This commit is contained in:
@@ -397,7 +397,8 @@ namespace GitHub.Runner.Worker
|
||||
}
|
||||
else if (definition.Data.Execution.ExecutionType == ActionExecutionType.Composite && !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("TESTING_COMPOSITE_ACTIONS_ALPHA")))
|
||||
{
|
||||
// Don't do anything for now
|
||||
var compositeAction = definition.Data.Execution as CompositeActionExecutionData;
|
||||
Trace.Info($"Action steps: {compositeAction.Steps}.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -291,8 +291,6 @@ namespace GitHub.Runner.Worker
|
||||
// placed after the queued composite steps
|
||||
// This will take only O(n+m) time which would be just as efficient if we refactored the code of JobSteps to a PriorityQueue
|
||||
// This temp Queue is created in the CompositeActionHandler.
|
||||
|
||||
Trace.Info("Adding Composite Action Step");
|
||||
var newGuid = Guid.NewGuid();
|
||||
step.ExecutionContext = Root.CreateChild(newGuid, step.DisplayName, newGuid.ToString("N"), null, null);
|
||||
step.ExecutionContext.ExpressionValues["inputs"] = inputsData;
|
||||
@@ -310,7 +308,6 @@ namespace GitHub.Runner.Worker
|
||||
Root.JobSteps.Clear();
|
||||
foreach (var cs in steps)
|
||||
{
|
||||
Trace.Info($"EnqueueAllCompositeSteps : Adding Composite action step {cs}");
|
||||
Root.JobSteps.Enqueue(cs);
|
||||
}
|
||||
foreach (var s in temp)
|
||||
@@ -323,7 +320,6 @@ namespace GitHub.Runner.Worker
|
||||
Root.JobSteps = new Queue<IStep>();
|
||||
foreach (var cs in steps)
|
||||
{
|
||||
Trace.Info($"EnqueueAllCompositeSteps : Adding Composite action step {cs}");
|
||||
Root.JobSteps.Enqueue(cs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,14 +36,6 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
|
||||
// Resolve action steps
|
||||
var actionSteps = Data.Steps;
|
||||
if (actionSteps == null)
|
||||
{
|
||||
Trace.Error("Data.Steps in CompositeActionHandler is null");
|
||||
}
|
||||
else
|
||||
{
|
||||
Trace.Info($"Data Steps Value for Composite Actions is: {actionSteps}.");
|
||||
}
|
||||
|
||||
// Create Context Data to reuse for each composite action step
|
||||
var inputsData = new DictionaryContextData();
|
||||
|
||||
Reference in New Issue
Block a user