Skip to content

fix(vendors): price AWS workers with the service sizes they share - #136

Merged
xevrion merged 1 commit into
workersio:mainfrom
shobhitagnihotri69:fix/worker-cost
Nov 26, 2026
Merged

xevrion merged 1 commit into
workersio:mainfrom
shobhitagnihotri69:fix/worker-cost

Conversation

@shobhitagnihotri69

@shobhitagnihotri69 shobhitagnihotri69 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The AWS worker mapping says a worker is the same EC2 hardware as a service and shares its sizes, but nothing read that: a worker had no size picker and costDesign left every worker out of the monthly total.

Add VendorMapping.sizesFrom and a sizesFor() lookup that follows it, and use it in both the size picker and the cost total so the two agree. Only AWS sets it; GCP and Azure run workers as Cloud Run jobs / Container Apps jobs, which are not sold as machine sizes, so they stay unpriced.

What this changes

Why

Verification

  • bun run test passes. Note the run: plain bun test bypasses the jsdom setup and
    reports failures that are not real
  • bun run typecheck and bun run lint pass
  • bun run build passes
  • Screenshot attached, if anything visual changed

The AWS worker mapping says a worker is the same EC2 hardware as a service
and shares its sizes, but nothing read that: a worker had no size picker and
costDesign left every worker out of the monthly total.

Add VendorMapping.sizesFrom and a sizesFor() lookup that follows it, and use
it in both the size picker and the cost total so the two agree. Only AWS sets
it; GCP and Azure run workers as Cloud Run jobs / Container Apps jobs, which
are not sold as machine sizes, so they stay unpriced.
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@shobhitagnihotri69 is attempting to deploy a commit to the breakscale OSS Program Team on Vercel.

A member of the Team first needs to authorize it.

@xevrion

xevrion commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Good catch, thanks! The AWS file promised the shared sizes and nothing ever read it.

@xevrion
xevrion merged commit f1185e9 into workersio:main Nov 26, 2026
7 of 9 checks passed
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.

2 participants