Skip to content

Vercel + MSW for QA #850

Closed as not planned
Closed as not planned

Description

@david-crespo

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

Activity

  1. david-crespo commented on May 9, 2022

    @david-crespo
    CollaboratorAuthor

    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!

  2. benjaminleonard commented on May 10, 2022

    @benjaminleonard
    Contributor

    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.

  3. david-crespo commented on May 10, 2022

    @david-crespo
    CollaboratorAuthor

    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.

  4. changed the title [-]Vercel + MSW instead of GCP for QA[/-] [+]Vercel + MSW for QA[/+] on May 12, 2022
  5. david-crespo commented on Jun 20, 2022

    @david-crespo
    CollaboratorAuthor

    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.

  6. just-be-dev commented on Feb 7, 2023

    @just-be-dev
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions