Skip to content

[build-tools] Support absolute artifact glob paths#3738

Open
sjchmiela wants to merge 1 commit into
mainfrom
stanley/absolute-artifact-globs
Open

[build-tools] Support absolute artifact glob paths#3738
sjchmiela wants to merge 1 commit into
mainfrom
stanley/absolute-artifact-globs

Conversation

@sjchmiela
Copy link
Copy Markdown
Contributor

Summary

Updates artifact path resolution so absolute paths containing glob metacharacters are treated as glob patterns instead of literal paths.

This lets eas/upload_artifact handle paths like /var/folders/.../T/maestro_xctestrunner_xcodebuild_output*, while preserving the existing literal-path behavior for non-dynamic absolute paths.

Why

upload_artifact.path already accepts paths or patterns, but absolute patterns were previously short-circuited through fs.pathExists() and never reached fast-glob.

Test Plan

  • yarn workspace @expo/build-tools jest-unit packages/build-tools/src/utils/__tests__/artifacts.test.ts

Note: the focused test was run in the existing local checkout with the same two-file patch. The clean PR worktree did not have its own install state.

@sjchmiela sjchmiela changed the title [codex] Support absolute artifact glob paths [build-tools] Support absolute artifact glob paths May 18, 2026
@sjchmiela sjchmiela added the no changelog PR that doesn't require a changelog entry label May 18, 2026
@sjchmiela sjchmiela marked this pull request as ready for review May 18, 2026 10:28
@sjchmiela sjchmiela requested a review from hSATAC May 18, 2026 10:28
@github-actions
Copy link
Copy Markdown

⏩ The changelog entry check has been skipped since the "no changelog" label is present.

@github-actions
Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 56.62%. Comparing base (d156419) to head (6599ec2).

Files with missing lines Patch % Lines
packages/build-tools/src/utils/artifacts.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3738   +/-   ##
=======================================
  Coverage   56.62%   56.62%           
=======================================
  Files         906      906           
  Lines       39063    39063           
  Branches     8158     8159    +1     
=======================================
  Hits        22117    22117           
  Misses      15468    15468           
  Partials     1478     1478           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@hSATAC hSATAC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants