Skip to content
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

feat: migrate remix-netlify adapter #83

Merged
merged 42 commits into from
Jul 19, 2023

Conversation

mcansh
Copy link
Contributor

@mcansh mcansh commented May 2, 2023

Description

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Note that for the time being, it's expected that the E2E tests fail for a PR from an external contributor. They don't get access to the token to run them. I've checked and they do pass when running manually.

CleanShot 2023-07-10 at 15 15 45

For Serverless Demo

  1. From the root of the project, run npm run build:demo
  2. Run ntl serve to start the serverless demo site.
  3. Run npm run e2e to start up Cypress.
  4. Choose end to end tests from the Cypress UI.
  5. Run the smoke test for the serverless demo site.
  6. All tests pass.

For Edge Demo

  1. From the root of the project, run npm run build:edge-demo
  2. Run ntl serve to start the serverless demo site.
  3. Run npm run e2e to start up Cypress.
  4. Choose end to end tests from the Cypress UI.
  5. Run the smoke test for the serverless demo site.
  6. All tests pass.

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This
    ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a
    typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style
    guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)
image

@nickytonline
Copy link
Contributor

Thanks for this @mcansh! I already have an E2E test suite for the Netlify Remix Edge Runtime that I can use for this adapter as well.

@mcansh
Copy link
Contributor Author

mcansh commented May 2, 2023

Thanks for this @mcansh! I already have an E2E test suite for the Netlify Remix Edge Runtime that I can use for this adapter as well.

sweet! i can bring over our current tests too if you'd like

@nickytonline
Copy link
Contributor

Thanks for this @mcansh! I already have an E2E test suite for the Netlify Remix Edge Runtime that I can use for this adapter as well.

sweet! i can bring over our current tests too if you'd like

Yeah, the unit tests would be great! Thanks!

nickytonline and others added 3 commits May 2, 2023 17:31
not sure what's up with some types, i'll look more into it tomorrow

Signed-off-by: Logan McAnsh <logan@mcan.sh>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
@nickytonline
Copy link
Contributor

The E2E tests are good, just trying to figure out why when I approve the run for an external contributor it still borks.

@mcansh mcansh marked this pull request as ready for review May 4, 2023 15:02
@mcansh mcansh requested a review from a team May 4, 2023 15:02
Signed-off-by: Logan McAnsh <logan@mcan.sh>
@mcansh
Copy link
Contributor Author

mcansh commented May 4, 2023

The E2E tests are good, just trying to figure out why when I approve the run for an external contributor it still borks.

maybe it was related to this being a "Draft PR" up until now.

package.json Outdated
@@ -5,6 +5,7 @@
"main": "index.js",
"workspaces": [
"packages/remix-edge-adapter",
"packages/remix-serverless-adapter",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming (blocking): It's explicit, but we've discussed internally before about the name of this whenever we'd get around to it, and we landed on @netlify/remix-adapter

@@ -0,0 +1,12 @@
import { describe, expect, it } from 'vitest'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for bringing in all the tests! 😍

mcansh added 2 commits May 4, 2023 17:56
Signed-off-by: Logan McAnsh <logan@mcan.sh>
packages/remix-adapter/package.json Outdated Show resolved Hide resolved
@MichaelDeBoey
Copy link
Contributor

@nickytonline Is there anything that still needs to be done before we can merge this one?

@nickytonline
Copy link
Contributor

@nickytonline Is there anything that still needs to be done before we can merge this one?

I've had a few things on the go. Will look to getting this reviewed.

@nickytonline nickytonline requested a review from a team as a code owner June 22, 2023 20:43
@nickytonline
Copy link
Contributor

@mcansh and @MichaelDeBoey, looking to get this merged next week. I've made a bunch of changes myself, so I can't approve it. I'll let someone on my team do that.

Thanks for the work on this both of you!

packages/demo-site/netlify.toml Show resolved Hide resolved
packages/demo-site/package.json Outdated Show resolved Hide resolved
packages/demo-site/package.json Outdated Show resolved Hide resolved
packages/demo-site/package.json Outdated Show resolved Hide resolved
packages/demo-site/package.json Outdated Show resolved Hide resolved
packages/demo-site/package.json Outdated Show resolved Hide resolved
packages/remix-adapter/LICENSE Outdated Show resolved Hide resolved
packages/remix-adapter/test/setup.ts Outdated Show resolved Hide resolved
packages/remix-adapter/src/index.ts Show resolved Hide resolved
packages/demo-site/netlify.toml Show resolved Hide resolved
@nickytonline nickytonline self-assigned this Jul 10, 2023
@nickytonline nickytonline added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 10, 2023
MarcL
MarcL previously approved these changes Jul 19, 2023
Copy link
Contributor

@MarcL MarcL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 Looks good to me but I'm not a Remix expert!

@netlify
Copy link

netlify bot commented Jul 19, 2023

Deploy Preview for hydrogen-demo-site failed.

Name Link
🔨 Latest commit 7aae4cc
🔍 Latest deploy log https://app.netlify.com/sites/hydrogen-demo-site/deploys/64b7e7eddf8f2a0008790d45

MarcL
MarcL previously approved these changes Jul 19, 2023
Copy link
Contributor

@MarcL MarcL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@nickytonline nickytonline enabled auto-merge (squash) July 19, 2023 13:45
@nickytonline nickytonline disabled auto-merge July 19, 2023 13:49
@nickytonline nickytonline merged commit cdab2fe into netlify:main Jul 19, 2023
@mcansh mcansh deleted the logan/remix-serverless-adapter branch July 19, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a package for the Remix Netlify Functions adapter
4 participants