Report infra_error for action download failures. (#4294)

This commit is contained in:
Tingluo Huang
2026-03-16 13:31:57 +00:00
committed by GitHub
parent c5dcf59d26
commit 45ed15ddf3
3 changed files with 104 additions and 67 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ namespace GitHub.Runner.Common.Tests.Worker
Func<Task> action = async () => await _actionManager.PrepareActionsAsync(_ec.Object, actions);
//Assert
await Assert.ThrowsAsync<ActionNotFoundException>(action);
var ex = await Assert.ThrowsAsync<FailedToDownloadActionException>(action);
Assert.IsType<ActionNotFoundException>(ex.InnerException);
var watermarkFile = Path.Combine(_hc.GetDirectory(WellKnownDirectory.Actions), ActionName, "main.completed");
Assert.False(File.Exists(watermarkFile));