Skip to content

Fix hashFiles timeout in GitHub Actions workflow on macOS runners#7382

Merged
DennisOSRM merged 2 commits intomasterfrom
claude/debug-build-failure-issue
Feb 27, 2026
Merged

Fix hashFiles timeout in GitHub Actions workflow on macOS runners#7382
DennisOSRM merged 2 commits intomasterfrom
claude/debug-build-failure-issue

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Feb 27, 2026

The conan-macos-x64-release-node job was consistently failing during cache save operations with hashFiles('**/package-lock.json') couldn't finish within 120 seconds.

Changes

  • Changed hashFiles('**/package-lock.json') to hashFiles('package-lock.json') in .github/workflows/osrm-backend.yml:389

Technical Details

The recursive glob pattern **/ traverses the entire repository tree, which is particularly slow on macOS runners. Since package-lock.json exists only at the repository root, the direct path reference eliminates unnecessary filesystem traversal while maintaining identical cache key generation.

This same pattern may benefit other workflows experiencing similar timeouts on macOS runners.

Original prompt

Reference: https://github.com/Project-OSRM/osrm-backend/actions/runs/22412592516/job/65132753147#step:48:1 figure out why this is consistently failing for this build. It is also failing for other PRs.

The workflow was using a recursive glob pattern `**/package-lock.json` which
would search through the entire repository tree. This caused timeouts on macOS
runners during the cache saving phase (Post Enable Node.js cache step).

Since package-lock.json only exists in the repository root, changed the pattern
to `package-lock.json` which avoids the expensive recursive traversal and
resolves the timeout issue.

Fixes the consistent build failure in conan-macos-x64-release-node job.

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Investigate consistent build failure in CI pipeline Fix hashFiles timeout in GitHub Actions workflow on macOS runners Feb 27, 2026
@DennisOSRM DennisOSRM marked this pull request as ready for review February 27, 2026 12:20
@DennisOSRM DennisOSRM merged commit 0b87dc7 into master Feb 27, 2026
19 checks passed
@DennisOSRM DennisOSRM deleted the claude/debug-build-failure-issue branch February 27, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants