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

Add master branch workflow for test262 tests #10556

Merged
merged 7 commits into from Oct 17, 2019
Merged

Conversation

jbhoosreddy
Copy link
Contributor

@jbhoosreddy jbhoosreddy commented Oct 15, 2019

Fixes #10500

Q                       A
Fixed Issues? N/A (doesn't completely fix anything yet. only a step towards the goal
Patch: Bug Fix? N/A
Major: Breaking Change? N/A
Minor: New Feature? N/A
Tests Added + Pass? test262 tests added. Definitely don't pass 😝
Documentation PR Link N/A
Any Dependency Changes? No direct dependencies. Dependencies for CI
License MIT

This PR adds a master branch job for running test262 tests. The results of
these tests will be stored in build artifacts which will be used to
compare with test262 runs on PR (future work!). Robin has also done a
lot of work to ensure all babel packages are properly linked to the
test runner. Additionally, Nicolo has helped in mentorship and
contributions to babel-test262-runner which is used here (babel/babel-test262-runner@c80353...399abd).

Co-authored-by: Robin Ricard rricard2@bloomberg.net

Robin Ricard and others added 2 commits October 15, 2019 12:57
This PR adds a nightly job for running test262 tests. The results of
these tests will be stored in build artifacts which will be used to
compare with test262 runs on PR (future work!). Robin has also done a
lot of work to ensure all babel packages are properly linked to the
test runner. Additionally, Nicolo has helped in mentorship and
contributions to babel-test262-runner which is used here.

Co-authored-by: Robin Ricard <rricard2@bloomberg.net>
@nicolo-ribaudo nicolo-ribaudo added area: test262 area: tests PR: Internal 🏠 A type of pull request used for our changelog categories labels Oct 15, 2019
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
node lib/download-node
- run:
name: Run Test262
command: node lib/run-tests I_AM_SURE | tee ~/test262.tap
Copy link
Member

Choose a reason for hiding this comment

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

Rather than linking every Babel package, what do you think of adding a --babelMonorepo .. cli clag to lib/run-tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is something I wanted to do in a followup PR in which I want to:

  1. Use something like yargs: http://yargs.js.org/
  2. Refactor existing cli arguments
  3. Add path to babel argument
  4. Add path to whitelist files so that they can remain colocated to babel/babel repo
  5. Add babel plugins/config argument

Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Let's merge this before 5:00 UTC so that it generates the artifact

@jbhoosreddy
Copy link
Contributor Author

jbhoosreddy commented Oct 15, 2019

Thinking a bit more about this I am realizing that only running these tests nightly doesn’t achieve our end result. Because when I query master branch artifacts, it isn't necessary that I find it in the latest master job, if other non-nightly jobs have run. Based on that thinking, I’ll add a commit to make these tests always run on master, so that I can rely on them existing when I’m in a PR job.

@jbhoosreddy jbhoosreddy changed the title Add nightly workflow for test262 tests Add master branch workflow for test262 tests Oct 16, 2019
We're no longer giving xunit output to CircleCI because once it sees failing tests it will mark babel's master as broken. As a stopgap, it will render the test results in the mocha spec format, which is human readable.
@buildsize
Copy link

buildsize bot commented Oct 16, 2019

File name Previous Size New Size Change
babel-preset-env.js 2.73 MB [deleted]
babel-preset-env.min.js 1.65 MB [deleted]
babel.js 2.92 MB [deleted]
babel.min.js 1.61 MB [deleted]
test262.tap [new file] 7.09 MB

@hzoo hzoo merged commit da9c9a6 into babel:master Oct 17, 2019
@jbhoosreddy jbhoosreddy deleted the ci/test262 branch November 13, 2019 15:13
@jbhoosreddy
Copy link
Contributor Author

Relates to: #4987

@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: test262 area: tests outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants