Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd scheduling profiler deployment CI job #19874
Conversation
| @@ -1,3 +1,15 @@ | |||
| # Experimental React Concurrent Mode Profiler | |||
|
|
|||
| - Deployed at: https://react-scheduling-profiler.vercel.app | |||
| https://react-devtools-scheduling-profiler.vercel.app/ | |||
taneliang
Sep 21, 2020
Author
Contributor
I've updated the domain name to match the package's folder name, but it's a little long. @bvaughn do you have a preference?
I've updated the domain name to match the package's folder name, but it's a little long. @bvaughn do you have a preference?
bvaughn
Sep 21, 2020
Contributor
Either domain sounds fine to me 😄
Either domain sounds fine to me
bvaughn
Sep 21, 2020
•
Contributor
Question: If this was working, would I expect to actually see a working deployment at react-devtools-scheduling-profiler.vercel.app (rather than 404: NOT_FOUND) Disregard.
Question: If this was working, would I expect to actually see a working deployment at react-devtools-scheduling-profiler.vercel.app (rather than 404: NOT_FOUND) Disregard.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 38a15c7:
|
|
Disabled the project on my CircleCI account. Closing and reopening to kick CI. |
|
@bvaughn, would you mind setting up the deploy token environment variable in CircleCI? I've laid out the steps here: https://github.com/taneliang/react/blob/scheduling-profiler-deploy/packages/react-devtools-scheduling-profiler/README.md I'm also not sure if we want to test the deployment before merging this PR, as that'll require exposing CI secrets to all jobs running from forks. I'm quite sure everything will work as I've tried it though. Unrelated: I'll also rebase this on master since #19691 is merged. |
|
Yes |
20f6c91
to
8f6e13a
|
|
||
| These instructions are intended for internal use, but may be useful if you are setting up a custom production deployment of the scheduling profiler. | ||
|
|
||
| 1. Create a Vercel token at https://vercel.com/account/tokens. |
taneliang
Sep 21, 2020
Author
Contributor
These tokens make me a little uneasy, as they allow access to the whole Vercel account and we can't scope them to a single project. I don't think there's any alternative though.
These tokens make me a little uneasy, as they allow access to the whole Vercel account and we can't scope them to a single project. I don't think there's any alternative though.
@taneliang Done. |
|
Thanks @bvaughn! I've just tried deploying from this fork, and the deployment failed as expected because I can't access the deploy token. https://app.circleci.com/pipelines/github/facebook/react/5074/workflows/7269c720-0dd2-4164-9ff5-b9c2d70b8687/jobs/211378 Looks like this is ready for a review/merge, unless we want to do a test deployment first. |
|
Ok. Let's give it a try then. |
04e21ef
into
facebook:master
|
It works! When will it be a good time to transfer the domains? I'll need to delete the domains off the MLH Fellowship Vercel account before you can add them, but that'll break the old domains until they're added to your account :) |
|
Excellent We could transfer them now. I'm not sure what's required on my end though. |
|
Ah! It's pretty simple:
That's it! The end result should look something like this: |
|
Ok. Let's do it. (Looks like I can't add them yet.) |
|
Oops, just deleted them a second ago. Does it work now? |
|
Hm. I was able to add |
|
Ok just got |
|
Huh okay, looks like it's because I was holding on to their *.now.sh versions. The last one should work now |
|
Got 'em all! Thanks |
|
Awesome! cc @kartikcho |
|
Thanks a bunch! |



Summary
The scheduling profiler is currently still being deployed from the https://github.com/MLH-Fellowship/scheduling-profiler-prototype/ repository. This PR adds a CI job to deploy the scheduling profiler from master.
I've used the deprecated
nameproperty invercel.json(https://vercel.link/name-prop) as I'm not sure how we can set the project's name when using thevercel linkCLI command in CI.Stacked on #19691.
Alternatives considered
Pre-merge checklist
Post-merge checklist
Test Plan
Test prod deployment: https://app.circleci.com/pipelines/github/taneliang/react/24/workflows/4e48ded3-6d39-47bd-b6a2-19941802ff08/jobs/125

I'll need to delete this deployment to release the domain, but this is what it looks like now:

Ensured Vercel token will not be exposed to PRs from forks: https://app.circleci.com/pipelines/github/taneliang/react/25/workflows/a3970596-db17-4fd8-8067-debfa83d20d6/jobs/128
