fix: add timeout to buildx export operation to prevent hanging

Add a 30-second timeout to the buildxHistory.export() call to prevent
workflow jobs from hanging indefinitely when the buildx dial-stdio
process crashes or becomes unresponsive. The build will continue
with reporting even if the export fails or times out.

Key improvements:
- Clear timeout when export completes to avoid unhandled promise rejection
- Handle undefined exportRes gracefully (already supported by reporter)
- Continue with build reporting even if export fails

Fixes issue where docker run export-build command would hang with
"broken pipe" errors when buildx backend is unavailable.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-08-04 18:47:51 -04:00
parent c213746489
commit e6eefa1b11
3 changed files with 25 additions and 4 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long