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

Improve e2es (retries, wasm, server-actions, etc...) #636

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

dario-piotrowicz
Copy link
Member

@dario-piotrowicz dario-piotrowicz commented Jan 14, 2024

This PR improves the e2e by adding (hopefully) making them more reliable and adds tests for the wasm integration and server actions, plus other small improvements

For more details check the commit messages as those should hopefully be pretty self explanatory 🙂

Copy link

changeset-bot bot commented Jan 14, 2024

⚠️ No Changeset found

Latest commit: e965501

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

Copy link
Contributor

github-actions bot commented Jan 14, 2024

🧪 Prereleases are available for testing 🧪

@cloudflare/next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/7544522774/npm-package-next-on-pages-636

@cloudflare/eslint-plugin-next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/7544522774/npm-package-eslint-plugin-next-on-pages-636

@dario-piotrowicz dario-piotrowicz force-pushed the improve-e2es branch 2 times, most recently from aa01afe to 882d49b Compare January 14, 2024 16:17
@@ -478,7 +478,6 @@ describe('processOutputDir', () => {
const outputDir = vercelDir;

expect(readdirSync(outputDir)).toEqual(['index.js', 'nested']);
expect(existsSync(outputDir)).toEqual(true);
Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed this because it was constantly failing in the CI for some reason 😕

I could not understand why and I could not reproduce this locally 😕
(I suspect this to be a weird github actions/nodejs bug 😕🤷)

I thought of removing this as it is also an unnecessary check, since as you can see from the line above, we already check the content of the directory, so checking for its existence afterwords is really unnecessary, so hopefully this is fine

@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review January 14, 2024 16:29
@dario-piotrowicz dario-piotrowicz changed the title Improve e2es Improve e2es (retries, wasm, server-actions, etc...) Jan 14, 2024
Copy link
Collaborator

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

notes:
 - this is needed so that we can add e2e tests for server actions: cloudflare/workers-sdk#4630
 - we the commit also updates node from 18 to 20 in e2e github acitons testing, this is necessary for using the latest
wrangler release, see: cloudflare/workers-sdk#4563 (comment)
@dario-piotrowicz dario-piotrowicz merged commit 0a91001 into cloudflare:main Jan 22, 2024
8 checks passed
@dario-piotrowicz dario-piotrowicz deleted the improve-e2es branch January 22, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants