Report job has infra failure to run-service by TingluoHuang · Pull Request #4073 · actions/runner (original) (raw)

src/Sdk/RSWebApi/RunServiceHttpClient.cs

Added hasInfrastructureFailure parameter to CompleteJobAsync method

src/Sdk/RSWebApi/Contracts/IssueExtensions.cs

Added IsInfrastructureIssue property mapping from issue annotations

src/Sdk/RSWebApi/Contracts/CompleteJobRequest.cs

Added HasInfrastructureFailure property to the request contract

src/Runner.Worker/JobRunner.cs

Updated CompleteJobAsync call to pass the infrastructure failure flag

src/Runner.Worker/GlobalContext.cs

Added HasInfrastructureFailure property to track infrastructure failures

src/Runner.Worker/ExecutionContext.cs

Added logic to detect infrastructure issues and set the global flag

src/Runner.Listener/JobDispatcher.cs

Updated ForceFailJob to pass hasInfrastructureFailure parameter

src/Runner.Common/RunServer.cs

Updated interface and implementation to include hasInfrastructureFailure parameter