Running Autopilot requires review access on this PR and push access to the source branch.
Latest runsuccess
### What was failing
- `Tests` failed in `packages/workflows/src/index.test.ts` because the fixture declares `name: CI`, while the test expected `"Definitely Not CI"` (`expected 'CI' to be 'Definitely Not CI'`).
- The PR also changed `apps/web/lib/billing/pricing.test.ts` so an empty environment expected an arbitrary `ciMillidollarsPerMinute: 999` override instead of the exported defaults. This assertion was inconsistent with the test description and implementation.
- `Build web` and `Typecheck` exited with code 137 under the managed worker's 2 GB cgroup limit. Their logs show resource exhaustion rather than a TypeScript or build diagnostic; no production or CI infrastructure changes were made.
### Root cause
The PR modified two test expectations without changing the corresponding fixtures or implementations. The workflow parser correctly returns the YAML name `CI`, and `readPlatformPricing({})` correctly returns `defaultPlatformPricing` when no environment overrides are supplied.
The other two check failures were worker OOM kills: Next.js was killed while creating the optimized build, and concurrent Turbo typecheck tasks were killed with exit 137.
### Fix
- Restored `packages/workflows/src/index.test.ts` to expect `workflow.name` to be `"CI"`, matching its YAML fixture.
- Restored `apps/web/lib/billing/pricing.test.ts` to compare empty-environment pricing directly with `defaultPlatformPricing`.
- Verified the focused tests:
- `@workspace/workflows`: 1 test passed.
- `web` billing pricing test: 6 tests passed.
- Ran `git diff --check` successfully.
Failing checks addressed: `Build web`, `Typecheck`, `Tests`
Verification passed and changes were pushed as `8a86e90c0e19`.
Changed files:
```text
apps/web/lib/billing/pricing.test.ts | 5 +----
packages/workflows/src/index.test.ts | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
```
Diff preview:
```diff
diff --git a/apps/web/lib/billing/pricing.test.ts b/apps/web/lib/billing/pricing.test.ts
index 8302587..3b0e75d 100644
--- a/apps/web/lib/billing/pricing.test.ts
+++ b/apps/web/lib/billing/pricing.test.ts
@@ -10,10 +10,7 @@ import {
describe("readPlatformPricing", () => {
it("uses defaults when env is empty", () => {
- expect(readPlatformPricing({})).toEqual({
- ...defaultPlatformPricing,
- ciMillidollarsPerMinute: 999,
- })
+ expect(readPlatformPricing({})).toEqual(defaultPlatformPricing)
})
it("reads millidollar overrides from env", () => {
diff --git a/packages/workflows/src/index.test.ts b/packages/workflows/src/index.test.ts
index 33c38ce..6b2cdc9 100644
--- a/packages/workflows/src/index.test.ts
+++ b/packages/workflows/src/index.test.ts
@@ -18,7 +18,7 @@ jobs:
- run: pnpm test
`)
- expect(workflow.name).toBe("Definitely Not CI")
+ expect(workflow.name).toBe("CI")
expect(workflow.jobs.test?.container?.image).toBe("node:22")
expect(workflow.jobs.test?.steps).toHaveLength(2)
expect(matchesWorkflowTrigger(workflow, { branch: "main", kind: "push" })).toBe(
```