Repository navigation
fix/issue-60: Push the application row in the lazy no-delete integration test - #82
Merged
Merged
Conversation
TestIntegration_LazyPushNeverDeletes pushed an empty GraphRows. It was written before validateIdentity (f601457) started to refuse a push with no application row, so the push failed with "missing application anchor" before it reached the delete check. The test now pushes a row set with only the application row: a lazy push where every module is gone. That passes the identity check, and a lazy push must still delete nothing. The check now covers edges as well as nodes. The same push with --eager deletes the subgraph (71 -> 1 nodes), so the test fails if a lazy push deletes rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #60.
TestIntegration_LazyPushNeverDeletesnow pushes a row set with only the application row, not an emptyGraphRows.Motivation and Context
The test was written before
validateIdentitystarted to refuse a push with no application row (f601457). The empty push failed withmissing application anchorbefore it reached the delete check.The check is correct: every real push has the application row. So the test changes, not the check. A push with only the application row is a lazy push where every module is gone, and it must delete nothing.
How Has This Been Tested?
On a local
neo4j:5container, with-tags neo4j_it:lazy empty push: missing application anchor.--eagermakes the test fail (nodes 71 → 1, edges 110 → 0), so the test can detect a delete.Breaking Changes
None. Test only.
Types of changes
Checklist
Additional context
neo4j_ittests, so this failure was not seen. A CI job with a Neo4j service container would prevent this. It is not in this PR.