Skip to content

[build-tools] add metadata to eas/upload_artifact#3878

Open
hSATAC wants to merge 1 commit into
ash/eng-19036-upload-maestro-screenshotsfrom
ash/eng-19035-add-metadata-to-upload_artifact
Open

[build-tools] add metadata to eas/upload_artifact#3878
hSATAC wants to merge 1 commit into
ash/eng-19036-upload-maestro-screenshotsfrom
ash/eng-19035-add-metadata-to-upload_artifact

Conversation

@hSATAC

@hSATAC hSATAC commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Why

The screen-recording deep-link feature (ENG-19035) uploads the recording via a www-generated eas/upload_artifact workflow step, and needs to attach { kind: 'screen-recording', startedAtMs, device } metadata so the website can derive the jump-to-failure seek. The generic eas/upload_artifact step had no way to pass metadata through.

How

Add an optional metadata JSON BuildStepInput to eas/upload_artifact and forward it to ctx.runtimeApi.uploadArtifact (the runtimeApi metadata passthrough already exists from the screenshots plan). Backward-compatible — existing callers that don't set metadata are unaffected (it's optional; undefined serializes as absent → no-op). Note: metadata is persisted only for generic artifacts; the worker's managed-type upload paths drop it.

Test Plan

Unit tests (uploadArtifact.test.ts): metadata is forwarded to runtimeApi.uploadArtifact when provided (generic artifact type), and omitted when absent. Passing in CI.

@linear-code

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

ENG-19035

hSATAC commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@hSATAC hSATAC added the no changelog PR that doesn't require a changelog entry label Jun 18, 2026
@hSATAC hSATAC force-pushed the ash/eng-19035-add-metadata-to-upload_artifact branch from 18be157 to 6c1441a Compare June 18, 2026 06:36
@hSATAC hSATAC force-pushed the ash/eng-19036-upload-maestro-screenshots branch from 863bd75 to 5fe7e8d Compare June 18, 2026 06:36
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.55%. Comparing base (173cd06) to head (b1679ce).

Additional details and impacted files
@@                             Coverage Diff                              @@
##           ash/eng-19036-upload-maestro-screenshots    #3878      +/-   ##
============================================================================
+ Coverage                                     58.55%   58.55%   +0.01%     
============================================================================
  Files                                           923      923              
  Lines                                         40332    40335       +3     
  Branches                                       8490     8492       +2     
============================================================================
+ Hits                                          23611    23615       +4     
+ Misses                                        16625    16624       -1     
  Partials                                         96       96              

☔ View full report in Codecov by Harness.
📢 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.

@hSATAC hSATAC marked this pull request as ready for review June 18, 2026 06:44
@hSATAC hSATAC requested a review from sjchmiela June 18, 2026 06:44
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

@hSATAC hSATAC force-pushed the ash/eng-19035-add-metadata-to-upload_artifact branch from 6c1441a to 869e93e Compare June 18, 2026 14:19
@hSATAC hSATAC force-pushed the ash/eng-19036-upload-maestro-screenshots branch from 5fe7e8d to 4c1cb19 Compare June 18, 2026 14:19
@hSATAC hSATAC force-pushed the ash/eng-19035-add-metadata-to-upload_artifact branch from 869e93e to b1679ce Compare June 18, 2026 14:19
@hSATAC hSATAC force-pushed the ash/eng-19036-upload-maestro-screenshots branch from 4c1cb19 to 173cd06 Compare June 18, 2026 14:19
@github-actions

Copy link
Copy Markdown

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

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