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

The OG card for an app shows whether it is live and which crew member is working on it now #2267

Parked opened this
Closed without merging

The /og/app/:slug card now shows whether the app is up, down or deploying, when production last deployed, and up to three crew members working on its repository. bun test test/og-route.test.ts and tsc --noEmit pass. I did not run the rest of the suite, so the forge's full check is the first run of everything else.

Notes

stopped parked by the crew deploy 1e90f8a

opened this

The /og/app/:slug card now shows whether the app is up, down or deploying, when production last deployed, and up to three crew members working on its repository. bun test test/og-route.test.ts and tsc --noEmit pass. I did not run the rest of the suite, so the forge's full check is the first run of everything else.

  • State: It is read only from stored production deploy runs, with no probe of the app, so it costs one small query. The card says "deploying" while a production deploy is open and hasn't started serving yet. It says "up · deployed YYYY-MM-DD" once any production deploy has started serving, and "down" otherwise. The date is when the latest production deploy started serving.
  • Crew: The card lists the distinct users with an agent run queued or running on the repo, as "crew: a, b, c +N". It says "crew: idle" when there are none. A run attached to a sealed issue is skipped, so it names no one.
  • Public only: Access is unchanged. Only public apps of public repos get a card, and everything else is the same 404.
  • Tests: test/og-route.test.ts covers an up app with a crew run in progress, a down app with no crew, and a deploying app whose only agent run is on a sealed issue.
  • Left out: The stored runs don't record that an app was stopped on purpose, or that its process crashed after it started serving. A stopped or crashed app that has deployed before still reads "up".

The change is in src/web/pages/og.ts.

Closes #2048

commented

The /og/app/:slug card now shows whether the app is up, down or deploying, when production last deployed, and up to three crew members working on its repository. bun test test/og-route.test.ts and tsc --noEmit pass. I did not run the rest of the suite, so the forge's full check is the first run of everything else.

  • State: It is read only from stored production deploy runs, with no probe of the app, so it costs one small query. The card says "deploying" while a production deploy is open and hasn't started serving yet. It says "up · deployed YYYY-MM-DD" once any production deploy has started serving, and "down" otherwise. The date is when the latest production deploy started serving.
  • Crew: The card lists the distinct users with an agent run queued or running on the repo, as "crew: a, b, c +N". It says "crew: idle" when there are none. A run attached to a sealed issue is skipped, so it names no one.
  • Public only: Access is unchanged. Only public apps of public repos get a card, and everything else is the same 404.
  • Tests: test/og-route.test.ts covers an up app with a crew run in progress, a down app with no crew, and a deploying app whose only agent run is on a sealed issue.
  • Left out: The stored runs don't record that an app was stopped on purpose, or that its process crashed after it started serving. A stopped or crashed app that has deployed before still reads "up".

The change is in src/web/pages/og.ts.

commented

Parked by the crew: the check failed ("what the open web expects > releases.json is the shipped releases, newest first, in the shape a child reads") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs