Skip to content

[worker] Add HttpLogStream#3391

Open
sjchmiela wants to merge 4 commits intostanley/add-log-idfrom
stanley/http-logger
Open

[worker] Add HttpLogStream#3391
sjchmiela wants to merge 4 commits intostanley/add-log-idfrom
stanley/http-logger

Conversation

@sjchmiela
Copy link
Contributor

@sjchmiela sjchmiela commented Feb 10, 2026

Why

We want to push logs to a logs service.

How

Initially I wanted to set up a WebSocket connection between worker and the logs service to reduce the HTTP overhead, but I found having a persistent/reconnecting WebSocket connection is not trivial and HTTP should be ok.

Confirmed failure to upload is not logged in the GCS log.

Test Plan

Tested manually.

Nagranie.z.ekranu.2026-02-10.o.10.28.42.mov

@github-actions
Copy link

github-actions bot commented Feb 10, 2026

Size Change: +3.21 kB (0%)

Total Size: 72.7 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 72.7 MB +3.21 kB (0%)

compressed-size-action

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 14.28571% with 54 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.24%. Comparing base (7061a67) to head (bdf49ab).
⚠️ Report is 1 commits behind head on stanley/add-log-id.

Files with missing lines Patch % Lines
packages/worker/src/utils/HttpLogStream.ts 13.47% 39 Missing and 6 partials ⚠️
packages/worker/src/logger.ts 12.50% 6 Missing and 1 partial ⚠️
packages/worker/src/utils/logger.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                   @@
##           stanley/add-log-id    #3391      +/-   ##
======================================================
- Coverage               52.31%   52.24%   -0.06%     
======================================================
  Files                     804      805       +1     
  Lines                   33425    33490      +65     
  Branches                 6975     6986      +11     
======================================================
+ Hits                    17482    17493      +11     
- Misses                  14555    14602      +47     
- Partials                 1388     1395       +7     

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

@sjchmiela sjchmiela added the no changelog PR that doesn't require a changelog entry label Feb 10, 2026
@github-actions
Copy link

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

@sjchmiela sjchmiela marked this pull request as ready for review February 10, 2026 13:12
@github-actions
Copy link

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention


if (config.loggers.http.baseUrl && robotAccessToken) {
const httpLogStream = new HttpLogStream({
url: new URL(config.buildId, config.loggers.http.baseUrl).toString(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

or that is intentional to make this PR noop?

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

Comments