diff --git a/src/Runner.Worker/FileCommandManager.cs b/src/Runner.Worker/FileCommandManager.cs index 0005a5f5e..a55050de1 100644 --- a/src/Runner.Worker/FileCommandManager.cs +++ b/src/Runner.Worker/FileCommandManager.cs @@ -275,12 +275,6 @@ namespace GitHub.Runner.Worker public void ProcessCommand(IExecutionContext context, string filePath, ContainerInfo container) { - if (!context.Global.Variables.GetBoolean("DistributedTask.UploadStepSummary") ?? true) - { - Trace.Info("Step Summary is disabled; skipping attachment upload"); - return; - } - if (String.IsNullOrEmpty(filePath) || !File.Exists(filePath)) { Trace.Info($"Step Summary file ({filePath}) does not exist; skipping attachment upload"); diff --git a/src/Test/L0/Worker/CreateStepSummaryCommandL0.cs b/src/Test/L0/Worker/CreateStepSummaryCommandL0.cs index a15e19ad3..46fe52608 100644 --- a/src/Test/L0/Worker/CreateStepSummaryCommandL0.cs +++ b/src/Test/L0/Worker/CreateStepSummaryCommandL0.cs @@ -25,23 +25,6 @@ namespace GitHub.Runner.Common.Tests.Worker private CreateStepSummaryCommand _createStepCommand; private ITraceWriter _trace; - [Fact] - [Trait("Level", "L0")] - [Trait("Category", "Worker")] - public void CreateStepSummaryCommand_FeatureDisabled() - { - using (var hostContext = Setup(featureFlagState: "false")) - { - var stepSummaryFile = Path.Combine(_rootDirectory, "feature-off"); - - _createStepCommand.ProcessCommand(_executionContext.Object, stepSummaryFile, null); - _jobExecutionContext.Complete(); - - _jobServerQueue.Verify(x => x.QueueFileUpload(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny()), Times.Never()); - Assert.Equal(0, _issues.Count); - } - } - [Fact] [Trait("Level", "L0")] [Trait("Category", "Worker")] @@ -199,7 +182,7 @@ namespace GitHub.Runner.Common.Tests.Worker File.WriteAllText(path, contentStr, encoding); } - private TestHostContext Setup([CallerMemberName] string name = "", string featureFlagState = "true") + private TestHostContext Setup([CallerMemberName] string name = "") { var hostContext = new TestHostContext(this, name); @@ -241,7 +224,6 @@ namespace GitHub.Runner.Common.Tests.Worker _variables = new Variables(hostContext, new Dictionary { { "MySecretName", new VariableValue("My secret value", true) }, - { "DistributedTask.UploadStepSummary", featureFlagState }, }); // Directory for test data