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

chore: move node adapter to core #13141

Merged
merged 497 commits into from
Feb 6, 2025
Merged

chore: move node adapter to core #13141

merged 497 commits into from
Feb 6, 2025

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Feb 5, 2025

Changes

This PR starts a series of PR that will move the adapters pack into the main monorepo.

I fixed the build step and the tests.

Steps to keep the history:

  1. Checkout the adapters repository into a temporary folder
  2. Run
    git filter-repo --path packages/node --path-rename packages/node:packages/integrations/node
  3. Move to this repository and create a new branch move-node
  4. Add the temporary folder to the list of remotes of withastro/astro, called adapters
  5. Run
    git pull --allow-unrelated-histories --no-rebase  adapters main
  6. Resolve conflicts
  7. Fix CI

Testing

I had to skip two tests regarding the infer remote size. We would need to fix and enable them.

The CI should pass.

Docs

withastro/docs#10898

natemoo-re and others added 30 commits August 10, 2023 18:25
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [ci] release

* Update packages/create-astro/CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* switch inlineStylesheets default

* use previous default for astro/test

* use previous default for content-collections-render.test.js

* integrations: node, deno, mdx, markdown

* typedocs: switch inlineStylesheets default

* Update example to show non-default

* add changeset

* reword changeset

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#8141)

* fix(node): delegate preview's not found and error handling to core/app

* add changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ematipico and others added 12 commits November 28, 2024 13:25
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* test: use Astro v5 and update cloudflare assertions

* disable check origin

* disable check origin

* update test

* fix another test

* remove logging

* format
* chore(node): add image tests

* Format

* Format
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

changeset-bot bot commented Feb 5, 2025

⚠️ No Changeset found

Latest commit: 9f54f0e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Feb 5, 2025
@ematipico ematipico marked this pull request as ready for review February 6, 2025 11:12
@Adammatthiesen
Copy link

Why is it coming back? Didn't they all just get their own repo not to long ago?

@ematipico
Copy link
Member Author

ematipico commented Feb 6, 2025

Why is it coming back? Didn't they all just get their own repo not to long ago?

In September, during our offsite, the core team decided that having them inside core was better. While the adapters were in a different repository, we experienced the following difficulties:

  • regressions that we couldn't catch early
  • test the adapters against the core code pushed in main and next for major releases

These regressions took huge toll to the maintainers, and we eventually realised that we made a mistake in the first place, so now we bring them back into the main monorepo.

Sure, we will have more issues filed, but a trade-off we are willing pay.

@Adammatthiesen
Copy link

Why is it coming back? Didn't they all just get their own repo not to long ago?

In September, during our offsite, the core team decided that having them inside core was better. While the adapters were in a different repository, we experienced the following difficulties:

  • regressions that we couldn't catch early
  • test the adapters against the core code pushed in main and next for major releases

These regressions took huge toll to the maintainers, and we eventually realised that we made a mistake in the first place, so now we bring them back into the main monorepo.

Sure, we will have more issues filed, but a trade-off we are willing pay.

Makes sense, thanks for the clarification!

@sarah11918
Copy link
Member

Reminder that moving the adapters is a non-trivial docs change, too! We pull information about the adapters into each docs page from its repository... so if you're changing that, we need to know and update our docs infrastructure!

image

@ematipico
Copy link
Member Author

ematipico commented Feb 6, 2025

@sarah11918 if you let me know where the code is, I can help and send a PR PR sent

@sarah11918
Copy link
Member

Thanks! I was conferring with Chris to make sure nothing else relied on the adapter repo, but since we did restructure to use the full GitHub URL, looks like it was a trivial change! 🙌

@ascorbic
Copy link
Contributor

ascorbic commented Feb 6, 2025

Thanks for including the details on how it was done!

@ematipico ematipico merged commit df7eb74 into main Feb 6, 2025
15 checks passed
@ematipico ematipico deleted the move-node branch February 6, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.