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

Move test262 tests upstream #1853

Merged
merged 2 commits into from
Oct 4, 2021
Merged

Move test262 tests upstream #1853

merged 2 commits into from
Oct 4, 2021

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Sep 29, 2021

As discussed in tc39/test262#3002, this moves the test262 tests upstream, where they will continue to be developed. Includes changes to our package.json and CI setup to run the test262 tests using a git submodule, instead of an in-tree checkout, so that we can pull in updates from test262 when we are ready for them.

These are being moved to tc39/test262.
@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #1853 (2080971) into main (d3de474) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1853      +/-   ##
==========================================
+ Coverage   94.76%   94.78%   +0.01%     
==========================================
  Files          19       19              
  Lines       10969    10969              
  Branches     1712     1712              
==========================================
+ Hits        10395    10397       +2     
+ Misses        559      557       -2     
  Partials       15       15              
Flag Coverage Δ
test262 81.23% <ø> (-0.17%) ⬇️
tests 89.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/calendar.mjs 94.39% <0.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3de474...2080971. Read the comment docs.

@ptomato ptomato added the no-spec-text PR can be ignored by implementors label Sep 29, 2021
@ptomato ptomato marked this pull request as draft September 29, 2021 22:53
@ptomato
Copy link
Collaborator Author

ptomato commented Sep 29, 2021

Marked as draft, because I will need to update the submodule when the test262 pull request is merged.

ptomato added a commit to js-temporal/temporal-polyfill that referenced this pull request Sep 29, 2021
The Temporal test262 tests are being removed from tc39/proposal-temporal
(see tc39/proposal-temporal#1853 ) and moved
to tc39/test262 where they will continue to be developed. Run them from a
git submodule so we can pull in new upstream versions when we are ready
for them.

Instead of cloning tc39/proposal-temporal to run the tests, we copy the
relevant parts of its test262 CI script. The files expected-failures.txt,
parseResults.js, and preprocessor.test262.cjs are copied from there as
well.
Instead of an in-tree checkout use a git submodule of test262 so we can
pin the tests to a particular commit and pull in updates when we are
ready for them.

Requires some changes in various paths.

The tests that were currently marked as expected to fail were not added
to upstream test262 yet, so they are removed from expected-failures.txt.
@ptomato ptomato marked this pull request as ready for review October 1, 2021 18:59
@ptomato
Copy link
Collaborator Author

ptomato commented Oct 1, 2021

The tests now live in tc39/test262, so this is ready for review.

ptomato added a commit to js-temporal/temporal-polyfill that referenced this pull request Oct 1, 2021
The Temporal test262 tests are being removed from tc39/proposal-temporal
(see tc39/proposal-temporal#1853 ) and moved
to tc39/test262 where they will continue to be developed. Run them from a
git submodule so we can pull in new upstream versions when we are ready
for them.

Instead of cloning tc39/proposal-temporal to run the tests, we copy the
relevant parts of its test262 CI script. The files expected-failures.txt,
parseResults.js, and preprocessor.test262.cjs are copied from there as
well.
ptomato added a commit to js-temporal/temporal-polyfill that referenced this pull request Oct 1, 2021
The Temporal test262 tests are being removed from tc39/proposal-temporal
(see tc39/proposal-temporal#1853 ) and moved
to tc39/test262 where they will continue to be developed. Run them from a
git submodule so we can pull in new upstream versions when we are ready
for them.

Instead of cloning tc39/proposal-temporal to run the tests, we copy the
relevant parts of its test262 CI script. The files expected-failures.txt,
parseResults.js, and preprocessor.test262.cjs are copied from there as
well.
@Ms2ger Ms2ger merged commit 1cde28d into main Oct 4, 2021
@Ms2ger Ms2ger deleted the move-test262 branch October 4, 2021 10:05
ptomato added a commit to js-temporal/temporal-polyfill that referenced this pull request Oct 5, 2021
The Temporal test262 tests are being removed from tc39/proposal-temporal
(see tc39/proposal-temporal#1853 ) and moved
to tc39/test262 where they will continue to be developed. Run them from a
git submodule so we can pull in new upstream versions when we are ready
for them.

Instead of cloning tc39/proposal-temporal to run the tests, we copy the
relevant parts of its test262 CI script. The files expected-failures.txt,
parseResults.js, and preprocessor.test262.cjs are copied from there as
well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-spec-text PR can be ignored by implementors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants