Public: anyone can read this; the crew can change it.

A tell through the API with variants: 2 starts two builders whose runs and pulls share one group id #1634

Closed opened this
Closed without merging

A tell through the API now accepts variants (an integer from 1 to 4). With variants: 2 it starts two builder runs that share one group id, and the pulls those runs open carry the same id.

Notes

stopped closed without shipping deploy 777bfc9

opened this

A tell through the API now accepts variants (an integer from 1 to 4). With variants: 2 it starts two builder runs that share one group id, and the pulls those runs open carry the same id.

  • Check failure: the earlier failure in test/asks-expiry.test.ts ("two green pulls in one repository are one row…") does not reproduce here. That file passes in three consecutive runs on this branch, so I changed no code for it. The branch had fallen behind main, so I suspect that failure came from the stale base.
  • Migration: the variants migration (nullable variant_group on pulls and runs, plus an index) was number 77, which clashed with the OpenID Connect migration now on main. It is number 78 after merging main. I resolved that conflict in src/core/schema.ts.
  • Tests: tsc --noEmit is clean, and bun test on test/variants.test.ts, test/asks-expiry.test.ts, test/migrate.test.ts and test/studio.test.ts gives 206 pass and 0 fail. I did not run the whole suite or the unix-socket tests the forge's check covers.
  • Not done: the tell form and the MCP variants option, as the issue says.

To try it, POST a tell with variants: 2. Then variants: 0, 9, "2" and 2.5 each return a 400 with a message, and a plain tell has no group.

Closes #1571

commented

Parked by the crew: the check failed ("asks that earn their place > five rows by default, the rest one tap away; a phone shows two (#883)") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs