Skip to content

test(evals): derive the Daytona regression inventory invariant instead of pinning bucket counts - #4287

Merged
benjaminshafii merged 1 commit into
devfrom
ci/derive-daytona-inventory-invariant
Sep 2, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
ci/derive-daytona-inventory-invariant

Conversation

@yomgui

@yomgui yomgui commented Sep 1, 2026

Copy link
Copy Markdown
Member

Problem

daytona-e2e-regression-concurrency.test.ts pins the four inventory buckets to literal sizes (all=152 / rawDesktop=56 / profile=76 / eligible=19). Those numbers are only correct for one exact state of dev, so every PR that adds, renames, or removes an E2E spec must edit this shared line — and every two concurrent spec-adding PRs are guaranteed to invalidate each other.

Observed since the guard landed in #4220 (2026-08-31): 8 PRs touched the line in ~48h (#4249 #4258 #4262 #4263 #4273 #4282 #4280 + this one's origin), and #4264 / #4280 / #4111 currently hold mutually incompatible values. #4280 went red on first push for exactly this, needed a dev merge + rebump + SHA-bound evidence re-run, and is already one behind again after #4282 merged.

Change

Replace the four toHaveLength(<literal>) pins with what they were always implying:

  • the buckets partition the inventory: all = rawDesktop + profile + dedicated + eligible
  • the shared lane is non-vacuous: eligible ≥ |productFailuresThatMustRemainEligible|

Three lines, one file. Spec-adding PRs no longer touch this file at all.

What is preserved (unchanged)

Category allowlist + mandatory reasons; profile sorted/unique/existing/non-overlapping with the auto-detected raw-desktop bucket; list-daytona-raw-desktop-tests.mjs vs source-scan parity; 13 named category spot-checks; productFailuresThatMustRemainEligible. The anti-green-washing purpose from #4220 is intact: an exclusion is still a categorized, reviewable JSON diff.

What changes in behavior

A new spec that is not raw-desktop / profile-excluded / dedicated becomes eligible without a PR-time count failure. Placement is still prompted by #4268's contracts.snapshot.json guard (which fails naming the file — more actionable than 151 vs 152) and enforced by the bi-daily shared lane itself.

Verification (local, PR lane)

  • pnpm --dir evals exec vitest run --config vitest.config.ts --project pr specs/daytona-e2e-regression-concurrency.test.ts — 3 passed / 0 failed
  • Negative control: temporarily adding a profile entry that duplicates a raw-desktop spec → the audit test fails at the non-overlap assertion (1 failed / 2 passed); profile restored.

@vercel

vercel Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 2, 2026 12:07am UTC
openwork-den Ready Ready Preview Sep 2, 2026 12:07am UTC
openwork-diagnostics Ready Ready Preview Sep 2, 2026 12:07am UTC
openwork-landing Ready Ready Preview, v0 Sep 2, 2026 12:07am UTC

@yomgui

yomgui commented Sep 1, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — daytona-e2e-regression-workflow-fails-skipped-or-empty-matrices — 0/0 screenshots passed · 1 assertion

✅ 0/0 screenshots passed · 1 assertion · 1 expectations passed · 0 failed · 0 pending

screenshots not uploaded (no BLOB_READ_WRITE_TOKEN)

ℹ️ ASSERTION — 1. Skipped and empty Daytona matrices cannot report success

The batch exits non-zero for every result except passed, deferred judging runs only after a passed batch, and the final verdict exits non-zero unless the matrix job succeeded.

  • ✅ PASS Skipped and empty Daytona matrices cannot report success — The batch exits non-zero for every result except passed, deferred judging runs only after a passed batch, and the final verdict exits non-zero unless the matrix job succeeded.

Test run created 2026-09-02T00:06:56.825Z · Source: evals/results/test-runs/2026-09-02T00-06-56-825Z-daytona-e2e-regression-workflow-fails-skipped-or-empty-matrices/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4287 --test-run 2026-09-02T00-06-56-825Z-daytona-e2e-regression-workflow-fails-skipped-or-empty-matrices

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (821c2c27c04055a58688590b4cd786257dc6c995). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1c835ab143171e72d6cd03876d5671c1a0f3921e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 1c835ab1 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-app — 1c835ab1 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-den — 1c835ab1 Deployed Sep 2, 2026 by vercel[bot]
Preview – openwork-diagnostics — 1c835ab1 Deployed Sep 2, 2026 by vercel[bot]
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