Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test Results (next)Details
Flaky testsFeatures › realtime-inspector.spec.ts › Realtime Inspector › Basic Inspector UI › can join and leave a channel Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
372d445 to
c2c0760
Compare
c2c0760 to
9167aab
Compare
9167aab to
eeda057
Compare
eeda057 to
b407770
Compare
b407770 to
128dd26
Compare
a96c104 to
756ce15
Compare
756ce15 to
c0aa01f
Compare
c0aa01f to
8d3c570
Compare
8d3c570 to
498af6e
Compare
498af6e to
2fca0d0
Compare
2fca0d0 to
483cfb8
Compare
24a3df4 to
521a6cc
Compare
521a6cc to
79a32c5
Compare
The v2 deploy endpoint accepts a spec without a build context when runtime is set, so the dashboard can create a worker without uploading a tarball.
…ndpoints Follows the API team's flow: mint an upload slot, PUT a gzipped tar of the starter source to the presigned URL, then deploy with the context upload id.
a160647 to
0dcf3b3
Compare
|
Closing — deploying a worker from the dashboard is out of scope for v1. It also has a hard infra blocker: the browser The branch stays if we want to pick it back up. The worker detail + Logs tab (validated end to end on staging) is on #49195; the Secrets section is on #49589, now rebased directly onto #49195. |
## What A Secrets section for Workers (FE-4280), so secrets are viewable without detouring to Edge Functions. Base: #49242. - **Nav** — a "Secrets" item under the Workers product menu, next to the worker list - **Page** at `/project/[ref]/workers/secrets`, header copy "Environment variables loaded into every worker at start-up" - **Route** + `routeTree.gen.ts` regenerated, plus the `TANSTACK_MIGRATION.md` entry Gated by `WorkersLayout` (flag + permission), same as the rest of the product. ## Duplicated page, shared data Per the ticket, this is the duplicated-page approach — a second entry point, not a second store. Secrets are project-level (`/v1/projects/{ref}/secrets`), so the page reuses the existing `EdgeFunctionSecrets` / `DefaultEdgeFunctionSecrets` components rather than forking ~400 lines of secret CRUD. Workers and Edge Functions read and write the same list. The longer-term direction (a shared Compute-level Secrets section) is out of scope here. ## How to test Needs the `workers` flag on. 1. Project with the flag → **Workers** in the sidebar → **Secrets** appears under it 2. Open it → default secrets table + custom secrets, identical to Edge Functions → Secrets 3. Add/edit/delete a secret here; confirm it shows on the Edge Functions Secrets page too (same project secrets) ## Note Two strings inside the reused `EdgeFunctionSecrets` component still say "edge function secrets" (the no-permission messages). Left as-is to avoid refactoring shared Edge Functions code in a private-alpha duplicated page; they'd be resolved by the eventual shared Compute-level section. Flagging in case reviewers want them parameterized now. No new tests: the page composes already-tested components and the nav is a data literal, matching how the Edge Functions Secrets page itself is covered. Closes FE-4280
What
Deploy a worker from the dashboard, no CLI. Base: #49195.
New worker — in the list header and the empty state, both permission-gated — opens a form (name, size, access, instances) and runs the three-step flow the API team documented:
POST /workers/{name}/uploads→ presigned URL + upload idPUTa gzipped tar of the starter source to that URL, no auth header (the URL signature authorizes it, so this one call bypasses the API client on purpose)POST /workers/{name}/deploywithcontext_upload_id, then poll untilbuild_stateleavesbuildingdata/workers/createTarGz.tswrites a minimal ustar archive and gzips it withCompressionStream— no tar dependency exists in the repo. 9 unit tests cover the header layout, octal size field, checksum, padding, and end-of-archive blocks.The starter is Deno only: one entrypoint contract is verified, and runtimes that build and then fail are worse than no option. Adding one later is an entry in
workers.templates.ts. Both New worker buttons are gated onPermissionAction.FUNCTIONS_WRITE.How to test
Only on the Mockamaster project in staging — it is the one project in the alpha allow-list, and this is why this PR exists: standing a worker up any other way is involved right now.
Buildingand flips toActivewithin a minute or so, no refresh needed401— that needs the separate api-gateway allow-list (WORKERS_ALLOWED_PROJECTS), not this PRVerified end to end on Mockamaster with the tarball this PR produces:
build_state: active, 1/1/1/0 instances,image_version: 1.0, at2gb-1vcpu/deno/public/ 1 instance.Form constraints need a second opinion
V2DeployWorkerRequestdocuments no enums and no bounds —size,instances,exposure, andruntimeare free-form with one@exampleeach. So the form's limits are inherited from the original POC spec, not from the API:2gb-1vcpu4gb-2vcpuAn invalid size fails loudly (the deploy POST errors and toasts), so this is not silent — but if infra confirms only one size exists at alpha, the picker should go.
Staff-only test deploy
WorkerTestDeployButton— a one-click "Deploy test worker" that deploys the starter under a generatedtest-worker-<id>name, so the deploy path (and the log pipeline behind it) can be exercised without the dialog. Gated onIS_STAGING_OR_LOCAL, so it renders on staging/local and never on production, matching the existing OTEL-toggle precedent.Notes