Skip to content

fix: require fallback for deleted assets missing from HEAD - #35

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/deleted-asset-safety
Oct 22, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/deleted-asset-safety

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Summary

Require full validation when a deleted asset is absent from the HEAD dependency graph.

Asset changes previously entered processAssetChange and 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 typecheck
  • npm run build
  • npm run audit:boundary
  • node --import tsx --test --test-concurrency=1 $(find tests -name '*.test.ts' | sort) — 337/337 passed
  • git diff --check

The 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.

@adityankale190895

Copy link
Copy Markdown
Member

Hi @FredApps, we're relicensing DiffCI Core from AGPL-3.0-only to MIT and need your consent for this contribution. Details and the one-line consent reply are in #43. Thank you!

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.

2 participants