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 to SCIP snapshots #556

Merged
merged 5 commits into from
Apr 20, 2023
Merged

Move to SCIP snapshots #556

merged 5 commits into from
Apr 20, 2023

Conversation

olafurpg
Copy link
Member

Previously, this repo used SemanticDB and LSIF snapshot tests.
This commit replaces both of those with SCIP snapshot tests.
The LSIF snapshot tests are no longer needed since the SCIP snapshot
format captures the relevant details we tried to assert against with the
LSIF snapshot tests. The SemanticDB tests are not needed since they look
almost identical to SCIP snapshot excluding the extra details SCIP
encodes (cross-repo package information and symbol relationships).

Test plan

See updated SCIP snapshot tests.

Previously, the `LibrarySnapshotGenerator` was not working correctly
making it impossible to update the snapshots with `snapshots/run`. This
commit fixes the issue and updates the snapshots to reflect several
versions of scip-java updates.
@olafurpg olafurpg requested a review from keynmol April 19, 2023 18:38
// NOTE: At the moment, due to limitations of the SCIP to LSIF conversion,
// only global symbols in an index are allowed to use is_definition.
// The relationship may not get recorded if either symbol is local.
bool is_definition = 5;
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't strictly needed for this PR but it will be needed in the next PR and having it here allows ScipPrinters to support it off the bat.

@olafurpg olafurpg force-pushed the olafurpg/scip-snapshots branch from f907b23 to 614ee50 Compare April 19, 2023 18:49
Previously, this repo used SemanticDB and LSIF snapshot tests.
This commit replaces both of those with SCIP snapshot tests.
The LSIF snapshot tests are no longer needed since the SCIP snapshot
format captures the relevant details we tried to assert against with the
LSIF snapshot tests. The SemanticDB tests are not needed since they look
almost identical to SCIP snapshot excluding the extra details SCIP
encodes (cross-repo package information and symbol relationships).
@olafurpg olafurpg force-pushed the olafurpg/scip-snapshots branch from 614ee50 to 927cd0a Compare April 19, 2023 18:54
@olafurpg olafurpg enabled auto-merge April 20, 2023 07:09
@olafurpg olafurpg merged commit dbb7d6a into main Apr 20, 2023
@olafurpg olafurpg deleted the olafurpg/scip-snapshots branch April 20, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants