Skip to content

fix(core): drop the unused googleapis dependency - #2064

Merged
eersnington merged 2 commits into
mainfrom
fix/core-unused-googleapis
Oct 21, 2026
Merged

eersnington merged 2 commits into
mainfrom
fix/core-unused-googleapis

Conversation

@eersnington

Copy link
Copy Markdown
Member

Fixes #2050.

  • @rivet-dev/agentos-core declared googleapis but never imported it. Google Drive support lives in the native sidecar.
  • Removing it drops about 118 MB of transitive packages (googleapis, google-auth-library, gaxios, and others) from every core install.
  • pnpm-lock.yaml only loses entries.

Nothing in @rivet-dev/agentos-core imports googleapis; Google Drive support lives in the native sidecar. Removing it cuts about 118 MB of transitive packages from every core install.
@railway-app

railway-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

This PR was not deployed automatically as @eersnington does not have access to the Railway project.

In order to get automatic PR deploys, please add @eersnington to your workspace on Railway.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

📟 Pip-Boy · bd22b13

📦 Packages · fresh npm install resolve, no lockfile · this PR vs base

package (linux-x64-gnu) @latest base this PR Δ vs base packages
@rivet-dev/agentos-core 458.2 MB 458.2 MB 325.9 MB −132.3 MB (−28.9%) 10 (−111 (−91.7%))
@rivet-dev/agentos-sandbox 495.5 MB 495.5 MB 363.5 MB −132.0 MB (−26.6%) 85 (−92 (−52.0%))
`@rivet-dev/agentos-core` details
platform base this PR Δ
linux-x64-gnu 458.2 MB 325.9 MB −132.3 MB (−28.9%)
linux-arm64-gnu 455.4 MB 323.1 MB −132.3 MB (−29.1%)
darwin-arm64 434.7 MB 302.4 MB −132.3 MB (−30.4%)
darwin-x64 444.2 MB 311.9 MB −132.3 MB (−29.8%)
win32-x64 314.6 MB 182.3 MB −132.3 MB (−42.1%)

Removed dependencies

package size via
googleapis@144.0.0 110.1 MB @rivet-dev/agentos-core › googleapis
better-sqlite3@12.11.1 9.9 MB @rivet-dev/agentos-core › better-sqlite3
@aws-sdk/client-s3@3.1154.0 3.2 MB @rivet-dev/agentos-core › @aws-sdk/client-s3
@smithy/core@3.36.1 1.9 MB @rivet-dev/agentos-core › @aws-sdk/client-s3 › @smithy/core
@aws-sdk/nested-clients@3.997.49 832.2 KB @rivet-dev/agentos-core › @aws-sdk/client-s3 › @aws-sdk/credential-provider-node › @aws-sdk/credential-provider-ini › @aws-sdk/nested-clients
google-auth-library@9.15.1 597.2 KB @rivet-dev/agentos-core › googleapis › google-auth-library
minimatch@10.2.6 523.6 KB @rivet-dev/agentos-core › minimatch
@aws-sdk/core@3.978.4 436.1 KB @rivet-dev/agentos-core › @aws-sdk/client-s3 › @aws-sdk/core
qs@6.16.1 409.0 KB @rivet-dev/agentos-core › googleapis › googleapis-common › qs
bignumber.js@9.3.1 343.3 KB @rivet-dev/agentos-core › googleapis › google-auth-library › gcp-metadata › json-bigint › bignumber.js
`@rivet-dev/agentos-sandbox` details
platform base this PR Δ
linux-x64-gnu 495.5 MB 363.5 MB −132.0 MB (−26.6%)
linux-arm64-gnu 493.8 MB 361.8 MB −132.0 MB (−26.7%)
darwin-arm64 465.8 MB 333.9 MB −132.0 MB (−28.3%)
darwin-x64 475.9 MB 343.9 MB −132.0 MB (−27.7%)
win32-x64 358.8 MB 226.8 MB −132.0 MB (−36.8%)

Removed dependencies

package size via
googleapis@144.0.0 110.1 MB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › googleapis
better-sqlite3@12.11.1 9.9 MB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › better-sqlite3
@aws-sdk/client-s3@3.1154.0 3.2 MB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › @aws-sdk/client-s3
@smithy/core@3.36.1 1.9 MB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › @aws-sdk/client-s3 › @smithy/core
@aws-sdk/nested-clients@3.997.49 832.2 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › @aws-sdk/client-s3 › @aws-sdk/credential-provider-node › @aws-sdk/credential-provider-ini › @aws-sdk/nested-clients
google-auth-library@9.15.1 597.2 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › googleapis › google-auth-library
minimatch@10.2.6 523.6 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › minimatch
@aws-sdk/core@3.978.4 436.1 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › @aws-sdk/client-s3 › @aws-sdk/core
qs@6.16.1 409.0 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › googleapis › googleapis-common › qs
bignumber.js@9.3.1 343.3 KB @rivet-dev/agentos-sandbox › @rivet-dev/agentos-core › googleapis › google-auth-library › gcp-metadata › json-bigint › bignumber.js
All 6 packages · linux-x64-gnu
package (linux-x64-gnu) @latest base this PR Δ vs base packages
@rivet-dev/agentos-core 458.2 MB 458.2 MB 325.9 MB −132.3 MB (−28.9%) 10 (−111 (−91.7%))
@rivet-dev/agentos-node-pty 7.6 KB 18.0 KB 18.0 KB 0 1 (0)
@rivet-dev/agentos-posix 253.6 MB 253.6 MB 253.6 MB 0 7 (0)
@rivet-dev/agentos-runtime-core 253.6 MB 253.6 MB 253.6 MB 0 6 (0)
@rivet-dev/agentos-sandbox 495.5 MB 495.5 MB 363.5 MB −132.0 MB (−26.6%) 85 (−92 (−52.0%))
@rivet-dev/agentos-toolchain 130.8 KB 141.2 KB 141.2 KB 0 2 (0)

🧹 Rust dependencies

Skipped: this PR doesn't change any Rust code or dependencies.

🦀 Binaries

Skipped: this PR doesn't change any Rust code.

⏱ Timing

job wall time slowest step
zizmor 12s checkout · 3s
changes 28s checkout · 25s
footprint 2m12s Pack this commit · 44s
⏭ native · ${{ matrix.platform }} — skipped
⏭ hygiene — skipped
⏭ self-test — skipped
report 18s —
🔭 Full CI trace for this commit

One OpenTelemetry trace of CI and Pip-Boy for bd22b13: every job and step, with the sizes above attached. Run after CI finishes.

pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha bd22b1392bc668a98e7eb1de494071e625a1c5ba

Add --otlp <url> to send it to any OTLP/HTTP collector.

Agent instruction: From a rivet-dev/agentos checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.

Core declared @aws-sdk/client-s3, better-sqlite3, minimatch, and zod-to-json-schema but never imports them; S3 and SQLite live in the sidecar and runtime-core owns its zod-to-json-schema dependency. Also drop better-sqlite3 from onlyBuiltDependencies, since no workspace package installs it anymore.
@eersnington
eersnington merged commit 547c295 into main Oct 21, 2026
6 checks passed
@eersnington
eersnington deleted the fix/core-unused-googleapis branch October 21, 2026 14:51
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.

@rivet-dev/agentos-core declares googleapis but never uses it

1 participant