fix: restore properly-bundled hashFiles index.js and patch GetNextMessageAsync mock

- Restore src/Misc/layoutbin/hashFiles/index.js from commit b06c585 so
  @actions/glob is bundled inline by ncc rather than externalized. The
  previous regeneration was done without running npm install first, causing
  ncc to fall back to require("@actions/glob") which is not available at
  runtime.

- Fix flaky GetNextMessageAsync mock in TestRunAsync: after Task.Delay
  resolves (either by timeout or cancellation) return null when the queue
  is empty instead of calling Dequeue() on an empty queue which would
  throw InvalidOperationException.

Agent-Logs-Url: https://github.com/actions/runner/sessions/9ceb7e98-b518-4b84-b302-29b0ed28500b
This commit is contained in:
copilot-swe-agent[bot]
2026-04-29 15:13:19 +00:00
committed by GitHub
parent fabb1364f5
commit 9825a12fd1
2 changed files with 5237 additions and 17 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -121,6 +121,7 @@ namespace GitHub.Runner.Common.Tests.Listener
{
signalWorkerComplete.Release();
await Task.Delay(2000, hc.RunnerShutdownToken);
return null;
}
return messages.Dequeue();