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

chore(semantic): copy tests from typescript-eslint’s scope-manager #3990

Conversation

Dunqing
Copy link
Member

@Dunqing Dunqing commented Jul 1, 2024

close: #2947

These fixtures were copied from https://github.com/typescript-eslint/typescript-eslint/tree/a5b652da1ebb09ecbca8f4b032bf05ebc0e03dc9/packages/scope-manager/tests/fixtures. We used them to test out semantic ScopeTree and SymbolTable

Copy link

graphite-app bot commented Jul 1, 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-semantic Area - Semantic label Jul 1, 2024
@Dunqing Dunqing force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch 2 times, most recently from 1ec7652 to 3b78811 Compare July 1, 2024 07:28
Copy link

codspeed-hq bot commented Jul 1, 2024

CodSpeed Performance Report

Merging #3990 will not alter performance

Comparing 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager (48724a0) with main (1f8968a)

Summary

✅ 32 untouched benchmarks

@Dunqing Dunqing force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch 5 times, most recently from 1310c54 to 4debcf3 Compare July 1, 2024 10:05
@Dunqing
Copy link
Member Author

Dunqing commented Jul 1, 2024

It's kind of weird that the fields in my local and CI's snap are in a different order. So, I had to tweak the order of the different fields in push_str to make CI pass.

@Dunqing Dunqing force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch from 4debcf3 to 2fd55b0 Compare July 9, 2024 07:02
@overlookmotel
Copy link
Contributor

overlookmotel commented Jul 9, 2024

This would be a pain in the short term, but maybe save us time overall by avoiding having to check all these snapshots by hand:

Could we parse the snapshots from typescript-eslint repo (example) and check them against our own scopes tree? The format is not the same, but it's mostly the same info.

@Dunqing Dunqing force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch from 2fd55b0 to 608bc9d Compare July 16, 2024 07:57
@Dunqing Dunqing changed the base branch from main to 07-15-fix_semantic_resolve_references_to_the_incorrect_symbol July 16, 2024 07:57
@Dunqing
Copy link
Member Author

Dunqing commented Jul 17, 2024

Could we parse the snapshots from typescript-eslint repo (example) and check them against our own scopes tree? The format is not the same, but it's mostly the same info.

I gave it a try, it’s hard to parse to JSON

@Dunqing Dunqing force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch from 608bc9d to b2724db Compare July 17, 2024 02:28
@Dunqing Dunqing marked this pull request as ready for review July 17, 2024 02:33
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jul 17, 2024 — with Graphite App
Copy link

graphite-app bot commented Jul 17, 2024

Merge activity

@Boshen Boshen force-pushed the 07-15-fix_semantic_resolve_references_to_the_incorrect_symbol branch from 620468a to 1108f2a Compare July 17, 2024 02:51
@Boshen Boshen force-pushed the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch from b2724db to 48724a0 Compare July 17, 2024 02:52
@Boshen Boshen changed the base branch from 07-15-fix_semantic_resolve_references_to_the_incorrect_symbol to main July 17, 2024 02:56
@graphite-app graphite-app bot merged commit 48724a0 into main Jul 17, 2024
25 checks passed
@graphite-app graphite-app bot deleted the 07-01-chore_semantic_copy_tests_from_typescript-eslint_s_scope-manager branch July 17, 2024 02:57
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-semantic Area - Semantic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Robust testing for scope analysis
3 participants