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

feat(transformer_conformance): test ScopeTree and SymbolTable for correctness after transformation #4581

Conversation

Dunqing
Copy link
Member

@Dunqing Dunqing commented Jul 31, 2024

part of #4549

This test verifies that the correct symbols and scopes were added/changed during the transformation. From the snapshots, most of them are incorrect currently

Copy link

graphite-app bot commented Jul 31, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@github-actions github-actions bot added the A-transformer Area - Transformer / Transpiler label Jul 31, 2024
@Dunqing Dunqing changed the title feat(transformer_conformance): test ScopeTree and SymbolTable after transformation feat(transformer_conformance): test ScopeTree and SymbolTable after transformation Jul 31, 2024
@Dunqing Dunqing force-pushed the 07-31-feat_transformer_conformance_test_scopetree_and_symboltable_after_transformation branch from 887cb9a to a6e9cca Compare July 31, 2024 05:19
@Dunqing Dunqing changed the title feat(transformer_conformance): test ScopeTree and SymbolTable after transformation feat(transformer_conformance): test ScopeTree and SymbolTable for correctness after transformation Jul 31, 2024
Copy link

codspeed-hq bot commented Jul 31, 2024

CodSpeed Performance Report

Merging #4581 will not alter performance

Comparing 07-31-feat_transformer_conformance_test_scopetree_and_symboltable_after_transformation (3a6e4d9) with main (c69ada4)

Summary

✅ 32 untouched benchmarks

@DonIsaac
Copy link
Contributor

Also related: #4454

@overlookmotel
Copy link
Contributor

overlookmotel commented Aug 2, 2024

Great to have the beginnings of test infra for this.

I'm not surprised that TS tests are failing because I didn't complete the work of setting scopes correctly in those transforms, but I would have hoped more of the React/JSX ones would pass.

@Dunqing are you working on fixing, or shall I?

@Dunqing
Copy link
Member Author

Dunqing commented Aug 4, 2024

@Dunqing are you working on fixing, or shall I?

Yes, I am working on this! Should we merge this first? and then fix failed tests in follow-up PRs?

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 4, 2024 — with Graphite App
Copy link

graphite-app bot commented Aug 4, 2024

Merge activity

… correctness after transformation (#4581)

part of #4549

This test verifies that the correct symbols and scopes were added/changed during the transformation. From the snapshots, most of them are incorrect currently
@Boshen Boshen force-pushed the 07-31-feat_transformer_conformance_test_scopetree_and_symboltable_after_transformation branch from a6e9cca to 3a6e4d9 Compare August 4, 2024 11:45
@graphite-app graphite-app bot merged commit 3a6e4d9 into main Aug 4, 2024
25 checks passed
@graphite-app graphite-app bot deleted the 07-31-feat_transformer_conformance_test_scopetree_and_symboltable_after_transformation branch August 4, 2024 11:48
@overlookmotel
Copy link
Contributor

overlookmotel commented Aug 4, 2024

@Dunqing OK great. Please can you ping me if/when you get to the JSX ones? I thought I'd got them at least mostly right, so I'd be interested to know where I went wrong.

overlookmotel pushed a commit that referenced this pull request Aug 5, 2024
…ve a `reference_id` (#4658)

part of #4581. Looks we had to pass `TraverseCtx` to the `ModuleImports`
Dunqing added a commit that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-transformer Area - Transformer / Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants