Repository navigation
fix: require fallback for deleted assets missing from HEAD - #35
Merged
Merged
Conversation
Member
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.
Summary
Require full validation when a deleted asset is absent from the HEAD dependency graph.
Asset changes previously entered
processAssetChangeand returned on a missing node before reaching the existing deleted-source safety check. A deleted JSON/CSS/text dependency could therefore yield SAFE_TO_PROPOSE with no selected tests, even when a remaining source still imported it.The new guard uses the existing DELETED_FILE_UNKNOWABLE_GRAPH fallback reason. Supplied graphs that retain the asset and its dependency evidence keep their previous selective behavior.
Validation
Three real synthetic repository regressions (JSON, CSS and TXT) fail against the baseline and pass after the fix. A positive regression verifies dependent-test selection when the supplied graph still contains the deleted asset.
Validated on Node v24.19.0, Linux, from baseline
9d575cef7b1dd118300cd6298c9f85a8c1a44ad8:npm run typechecknpm run buildnpm run audit:boundarynode --import tsx --test --test-concurrency=1 $(find tests -name '*.test.ts' | sort)— 337/337 passedgit diff --checkThe unmodified baseline passes 333/333 tests serially. Its default parallel test run lost suite processes in this environment, so full validation used the serial runner. Windows and Node 22 remain for CI.
Scope
This covers deleted assets missing from the supplied graph. Renamed old asset paths and unmodeled modified runtime assets remain separate limitations. It does not change graph construction or cache serialization.