Skip to content

[build-tools] Extract a shared worker API client from the device run session client - #4806

Open
AHGIJMKLKKZNPJKQR wants to merge 1 commit into
mainfrom
tom/worker-api-core
Open

AHGIJMKLKKZNPJKQR wants to merge 1 commit into
mainfrom
tom/worker-api-core

Conversation

@AHGIJMKLKKZNPJKQR

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Why

Sandboxes will use the same "worker API" mechanism as device run sessions and we want to reuse the code.

How

Created a WorkerAPI interface, which owns the retrying and auth of when making requests to www. DeviceRunSessionWorkerAPI uses it. We're essentially just moving code around, without making actual changes in this PR

Test Plan

CI passes, existing tests pass, since we expect no behavior changes

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.65%. Comparing base (156e38e) to head (7f7ee6f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4806      +/-   ##
==========================================
+ Coverage   76.64%   76.65%   +0.01%     
==========================================
  Files        1102     1103       +1     
  Lines       55495    55499       +4     
  Branches    12236    12232       -4     
==========================================
+ Hits        42530    42535       +5     
+ Misses      11976    11975       -1     
  Partials      989      989              

☔ 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.

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR changed the title [build-tools][worker] Extract a shared worker API client from the device run session client [build-tools] Extract a shared worker API client from the device run session client Nov 3, 2026
@AHGIJMKLKKZNPJKQR
AHGIJMKLKKZNPJKQR marked this pull request as ready for review November 3, 2026 16:41
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Thank you for adding a changeset!

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.

1 participant