-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
developer-experience: deployment previews for pull requests #9276
Comments
## Motivation - A cloudflare-based take on #9276 - As discussed w/ @domoritz, Previewing the editor site is probably more useful than the docs site, so we're going after that first ## Changes - Use explicit packageManager version so Cloudflare doesn't autoupgrade to yarn 3 (breaks lockfile) - Add a build script (originally this was a 1-liner in package.json but it was getting hard to read) that - Builds vega-lite - Clones vega/editor and links the local vega-lite in place of the full build - Install `vega/editor` without running the `prepare` script. (The CI device doesn't have rsync installed). - Makes empty index.json for vega / vega-lite examples. - Build editor with vite with `/` as the base URL (previously it was erroring due to thinking it was under the `/editor` subdomain). Technically this is an abstraction leak but fixing it would involve modifying the vega/editor repo too and I'd like to contain this change to 1 repo if possible. ## Testing - See Cloudflare comment below, confirm site loads ## Notes - For now only `cameron.yick/*` branches have the previews since the build script is WIP. It's using my personal Cloudflare account for testing. I'll open it up to all (non dependabot/*) PRs this change is confirmed. - I've filed an request to https://blog.cloudflare.com/cloudflare-new-oss-sponsorships-program to see if we can get deployment previews sponsored (they also sponsor D3, yarn). If not, I'll plan to discuss on Slack whether to keep Cloudflare or switch the config to a different account. - Free plan limits: 500 builds/ month: https://developers.cloudflare.com/pages/platform/limits/ .
Here's a copy of the setup on Cloudflare so anyone can configure this for their own account. ( Docs on preview deployments ) As discussed in #vega-maintainers , this only builds the
See the result here: https://vega-lite.pages.dev/#/ |
Sweet. I think we can close this now, right? |
Yep, unless we also want previews of the docs site to be deployed in
parallel.
…On Fri, Apr 5, 2024 at 10:31 PM Dominik Moritz ***@***.***> wrote:
Sweet. I think we can close this now, right?
—
Reply to this email directly, view it on GitHub
<#9276 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE2MM3CENNWKS5BKQNLQPTY35M7RAVCNFSM6AAAAABEEAD52OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHA4TEOBXGE>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
That's not as critical as the editor imo but could also be useful. How about we close this for now until we learn a bit more about how the current setup works out? |
Sounds good!
…On Fri, Apr 5, 2024 at 11:25 PM Dominik Moritz ***@***.***> wrote:
That's not as critical as the editor imo but could also be useful. How
about we close this for now until we learn a bit more about how the current
setup works out?
—
Reply to this email directly, view it on GitHub
<#9276 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACE2MM4M6JYLTITOFKOCWFDY35TK3AVCNFSM6AAAAABEEAD52OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHEZDKMJWGU>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Idea for future : if building previews per commit automatically eats through the builds too quickly much, we can use the "Deploy hooks" feature to trigger deploys via specialized comments (like |
## Motivation - Following vega/editor#1420, #9276 stopped working - This updates the build command for compatibility with parcel. ## Changes - Updates stale comments - Don't mention vite, try to stick to the yarn build command (with 1 parcel specific flag parcel-bundler/parcel#206 (comment) ) ## Testing - Check if deploy preview link loads correctly ( [src](https://cameron-yick-fix-deploy-prev.vega-lite.pages.dev/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAKyUAVhDYA7EABoQAEzjQATjRyZ289AEEABBBoIcguIaZJ1h2DcyGA7nRiHETOMtXLDypJhUiioBKKigxEiCDGpoANqgYSD6wUxoAEwAHAC+ColoIABCqWhiYrn56ADCJagALADMFSBJACK1AJwAjM1JAKK1mT15LQUAYrViTSNJAOK1XR29BQASgwDsy+gAkpPp2QC6uSDI6gDWBdbqwXCyUGzKNLJkaKAAHq8gAGY0cILKBRQSkwAE8cHACrI2AgnlFgkg3jQIJ9BEhPIJ9M8LGgAAzZY4gz4-P4A9BpYFgiHoACODCQsh0gR0pBA+OyQA) )
Enhancement Description
Goal: Reduce time and effort to validate change requests, and improve review quality for vega-lite change requests (PRs). By making a deployment preview easy, it makes it easier to test end-user facing behaviors.
Motivating use-cases
Expected behavior
Checklist
Notes
The text was updated successfully, but these errors were encountered: