You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: with #858 we got rid of the GCP one, so this is more a question of how to do the Vercel version without showing the world the console before we want to.
Just a thought to consider. The GCP deploys are annoying to maintain and I'm not sure they give us much value over MSW anymore now that we're testing the console against the full non-simulated stack every Friday. If we think of the QA deploy as being about spot checking UI changes during PR review, and not about testing the API, then it makes sense to do it this way.
Pro
Can deploy to Vercel like all our other sites
QA deploy would take about 30 seconds instead of 8 minutes
No more Docker or Packer
Con
Not exercising the console against the real API (with simulated sled agent)
The funny thing is the GCP version is the real API but not the real internals. As we have started exercising the console against the real full stack in Friday control plane huddle, I think this con is losing significance. The problems we uncover have tended to be less about the API and more about subsystems. We should also probably be testing against real Nexus in local dev anyway whenever we're working with a new or complicated API.
Shrug 🤷
Probably should put it behind VPN like the current one
Actually the VPN thing is kind of a dealbreaker. Uncool. On the plus side it is very easy to open a PR locally and run yarn start:msw. Maybe we should just scrap the GCP thing regardless. Or keep using GCP and just run yarn start:msw on it 😁. That would still make things a lot simpler!
Seems like it's also possible to use Cloudflare Access (with Vercel) for this – it does get expensive if more than 50 people need to get to the console but we'd be fine. Alternatively GCP with yarn start:msw sounds good to me. Is it possible to add a tag or something to a PR that lets you optionally use a full sled agent build.
The flag idea probably wouldn’t work because the full Nexus thing would always be broken if we weren’t using it all the time. In fact, it’s broken right now because of a bug in the CLI that prevents disk creation. The difficulty of fixing that was what prompted me to consider this. I want to get rid of that whole dependency chain. It’s good to exercise those tools but it’s a bit heavy to put the responsibility for that on console QA deploys.
On second thought, $150 a month is not much if we get any value out of it (and we definitely do — plus Steve said he'd find it useful to be able to see exactly where the console is), so I'm thinking we should just pay Vercel for password protection.
There are some challenges here. One is around gating it behind auth. Another is that when building for production MSW is stripped out. We could probably find a way around the latter thing, but it's probably not worth the effort.
Activity
david-crespo commentedon May 9, 2022
Actually the VPN thing is kind of a dealbreaker. Uncool. On the plus side it is very easy to open a PR locally and run
yarn start:msw. Maybe we should just scrap the GCP thing regardless. Or keep using GCP and just runyarn start:mswon it 😁. That would still make things a lot simpler!benjaminleonard commentedon May 10, 2022
Seems like it's also possible to use Cloudflare Access (with Vercel) for this – it does get expensive if more than 50 people need to get to the console but we'd be fine. Alternatively GCP with
yarn start:mswsounds good to me. Is it possible to add a tag or something to a PR that lets you optionally use a full sled agent build.david-crespo commentedon May 10, 2022
The flag idea probably wouldn’t work because the full Nexus thing would always be broken if we weren’t using it all the time. In fact, it’s broken right now because of a bug in the CLI that prevents disk creation. The difficulty of fixing that was what prompted me to consider this. I want to get rid of that whole dependency chain. It’s good to exercise those tools but it’s a bit heavy to put the responsibility for that on console QA deploys.
[-]Vercel + MSW instead of GCP for QA[/-][+]Vercel + MSW for QA[/+]david-crespo commentedon Jun 20, 2022
On second thought, $150 a month is not much if we get any value out of it (and we definitely do — plus Steve said he'd find it useful to be able to see exactly where the console is), so I'm thinking we should just pay Vercel for password protection.
just-be-dev commentedon Feb 7, 2023
There are some challenges here. One is around gating it behind auth. Another is that when building for production MSW is stripped out. We could probably find a way around the latter thing, but it's probably not worth the effort.