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

Run e2e tests on GH actions #12517

Merged
merged 13 commits into from Mar 12, 2021
Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Dec 16, 2020

Q                       A
License MIT

CircleCI is quite slow because there is a low concurrency limit (I think it's 1 job at time?) so it gets overloaded easily and sometimes jobs are queued for hours. Even when they are not, it happens quite often that they wait for ~30 mins before running.

This PR moves the Babel 7 e2e tests to GitHub actions, where the concurrency limit is 16 parallel jobs, to speed it up a bit.

I'm not moving everything to GH actions to avoid hitting the concurrency limit. CircleCI will still run:

  • build-standalone on PRs and main
  • e2e-breaking on main (it's opt-in on PRs)
  • test262 on main (it's opt-in on PRs)

Thanks @juanpicado for the help!

@babel-bot
Copy link
Collaborator

babel-bot commented Dec 16, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/44268/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 16, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4c86b80:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@juanpicado
Copy link
Contributor

You mentioned you were using the httpassw file, I'm not sure whether you wants to use it, I'd use for CI https://github.com/verdaccio/monorepo/tree/9.x/plugins/auth-memory#verdaccio-auth-memory which does not require write anything also speed up things a bit.

@nicolo-ribaudo
Copy link
Member Author

Thanks, I'm trying that now.

@juanpicado
Copy link
Contributor

I'll take a look over this weekend to this, let's see whether I find something.

@juanpicado
Copy link
Contributor

juanpicado commented Jan 9, 2021

Ok fixed 👍 , I've spotted few little mistakes, @nicolo-ribaudo do you mind if I PR on top of this one? I'd like to apply few optimizations.

Screenshot from 2021-01-09 19-08-48

@juanpicado
Copy link
Contributor

Changes are here https://github.com/juanpicado/babel/pull/1/files

@nicolo-ribaudo
Copy link
Member Author

Hey sorry I completely forgot about this. I'll merge your branch into mine!

@juanpicado
Copy link
Contributor

Sure, just let me know if you need some help, I'll be willing to move this on.

@nicolo-ribaudo nicolo-ribaudo force-pushed the e2e-gh-actions branch 10 times, most recently from 7d5d057 to 463a951 Compare March 3, 2021 21:52
@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review March 3, 2021 23:01
@@ -3,14 +3,14 @@
# Copied from https://github.com/facebook/create-react-app/blob/053f9774d3f592c17741d2a86de66a7ca58f90c0/tasks/local-registry.sh

custom_registry_url=http://localhost:4873
default_verdaccio_package=verdaccio@~4.3.3
default_verdaccio_package=verdaccio@~4.10.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think is better v4.11.1, it has few optimizations.


function startLocalRegistry {
# Start local registry
tmp_registry_log=`mktemp`
echo "Registry output file: $tmp_registry_log"
(cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &)

npm install --global verdaccio-memory
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd pin verdaccio-memory@9.7.2 . There are few major coming soon that might affect the pipeline.

@@ -20,6 +20,10 @@ auth:
uplinks:
npmjs:
url: https://registry.npmjs.org/
agent_options:
Copy link
Contributor

Choose a reason for hiding this comment

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

The agent_options are not need it if you use (v4.10.0). It is harmless if you like to keep it.

@@ -54,7 +58,7 @@ middlewares:

# log settings
logs:
- { type: stdout, format: pretty, level: http }
- { type: stdout, format: pretty, level: trace }
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd move here to warn to speed boost. trace is really expensive.

Copy link
Contributor

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

LGTM with some nits.

scripts/integration-tests/publish-local.sh Outdated Show resolved Hide resolved
scripts/integration-tests/utils/local-registry.sh Outdated Show resolved Hide resolved
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
@nicolo-ribaudo
Copy link
Member Author

I'm merging even if one review is from @juanpicado and not from a Babel team member, since he definitely has more experience than us with Verdaccio on CI servers 😛

@nicolo-ribaudo nicolo-ribaudo merged commit 05fa18e into babel:main Mar 12, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the e2e-gh-actions branch March 12, 2021 21:33
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue repo automation 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants