8000 test(ast/estree): add typescript-eslint estree coverage by hi-ogawa · Pull Request #9774 · oxc-project/oxc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test(ast/estree): add typescript-eslint estree coverage #9774

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

Merged

Conversation

hi-ogawa
Copy link
Contributor
@hi-ogawa hi-ogawa commented Mar 14, 2025

Part of #9705
Requires oxc-project/acorn-test262#6

Current result Positive Passed: 32/10725 (0.30%) 😢

What I observed from a few diffs I looked at:

Copy link
Contributor Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the C-test Category - Testing. Code is missing test cases, or a PR is adding them label Mar 14, 2025
@hi-ogawa hi-ogawa force-pushed the 03-14-test_ast_estree_add_typescript-eslint_estree_coverage branch from 3913582 to d3fb376 Compare March 14, 2025 07:22
@hi-ogawa hi-ogawa marked this pull request as ready for review March 14, 2025 07:22
@hi-ogawa hi-ogawa force-pushed the 03-14-test_ast_estree_add_typescript-eslint_estree_coverage branch from d3fb376 to 882a31e Compare March 14, 2025 09:13
Copy link
Contributor
@overlookmotel overlookmotel left a comment

Choose a reason for hiding this comment

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

oxc-project/acorn-test262#6 is merged.

If you can update the submodules to point to latest acorn-estree commit, and re-run conformance, then I think this is good to merge (please feel free to merge yourself, I'm leaving "office" shortly).

I've responded to your points about mismatches here: #9705 (comment)

@hi-ogawa hi-ogawa added the 0-merge Merge with Graphite Merge Queue label Mar 14, 2025
Copy link
Contributor Author
hi-ogawa commented Mar 14, 2025

Merge activity

  • Mar 14, 5:25 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 14, 5:25 AM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 14, 5:32 AM EDT: A user merged this pull request with the Graphite merge queue.

Part of #9705
Requires oxc-project/acorn-test262#6

Current result `Positive Passed: 32/10725 (0.30%)` 😢

What I observed from a few diffs I looked at:
- typescript-eslint parser's field ordering is not a super set of acorn (maybe keys are ordered alphabetically)
  - example: `ClassDeclaration`
    - typescript-eslint https://ast-explorer.dev/#eNolyDEKgDAMBdCrlD/rBTyIOGQJJUOlpqUpgpTe3YjrG8jYcPLNFluqHQuqQ3+q/LCK5aSfR/eY2SwcYUxSp+I0SEMgSLx4l2apKGFzyNzFOoF0Yr7njiIU
      - abstract, body, declare, decorators, id, implements, superClass, superTypeArguments, typeParameters,
    - acorn https://ast-explorer.dev/#eNolyTEKwzAMRuGrmH/OCXKOUjpoEaqGFMcyllMIxnePQrbH9wYyVvz4zy5tqx0LagCLtRIt0ZLZPX3SmHSTBQ0qKRFUdn5r880KYQ3I3NU7YXm+29FEX2fVZ+/2PXI0lYl5ATuZJ1U=
      - id, superClass, body
- typescript-eslint parser uses `undefined` instead of `null` for optional ts-specific field
  - example: `ClassDeclaration.typeParameters`
    - https://ast-explorer.dev/#eNolyDEKgDAMBdCrlD/rBTyIOGQJJUOlpqUpgpTe3YjrG8jYcPLNFluqHQuqQ3+q/LCK5aSfR/eY2SwcYUxSp+I0SEMgSLx4l2apKGFzyNzFOoF0Yr7njiIU
    - spec https://github.com/typescript-eslint/typescript-eslint/blob/2224f12ff05b59c5a459291fe93fc8099221089d/packages/ast-spec/src/base/ClassBase.ts#L62
@graphite-app graphite-app bot force-pushed the 03-14-test_ast_estree_add_typescript-eslint_estree_coverage branch from 882a31e to ac36103 Compare March 14, 2025 09:26
@graphite-app graphite-app bot merged commit ac36103 into main Mar 14, 2025
15 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 14, 2025
@graphite-app graphite-app bot deleted the 03-14-test_ast_estree_add_typescript-eslint_estree_coverage branch March 14, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-test Category - Testing. Code is missing test cases, or a PR is adding them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0