Skip to content

fix/issue-60: Push the application row in the lazy no-delete integration test - #82

Merged
rahlk merged 1 commit into
mainfrom
fix/issue-60-failing-integration-test
Nov 29, 2026
Merged

rahlk merged 1 commit into
mainfrom
fix/issue-60-failing-integration-test

Conversation

@rahlk

@rahlk rahlk commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #60.

TestIntegration_LazyPushNeverDeletes now pushes a row set with only the application row, not an empty GraphRows.

Motivation and Context

The test was written before validateIdentity started to refuse a push with no application row (f601457). The empty push failed with missing application anchor before 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:5 container, with -tags neo4j_it:

  • Before: lazy empty push: missing application anchor.
  • After: the test passes. All five integration tests pass.
  • The same push with --eager makes the test fail (nodes 71 → 1, edges 110 → 0), so the test can detect a delete.

Breaking Changes

None. Test only.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

  • The test now also checks the edge count.
  • CI does not run the neo4j_it tests, so this failure was not seen. A CI job with a Neo4j service container would prevent this. It is not in this PR.

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>
@rahlk rahlk added the Test label Nov 29, 2026
@rahlk rahlk self-assigned this Nov 29, 2026
@rahlk
rahlk merged commit a8d02ec into main Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestIntegration_LazyPushNeverDeletes fails: validateIdentity rejects an empty GraphRows

1 participant