Skip to content

test(pkg): check extra-source rebuilds by package target - #17129

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:pkg-extra-source-order-test
Nov 21, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:pkg-extra-source-order-test

Conversation

@Alizter

@Alizter Alizter commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Match cache misses against the exact package target rather than looking for a digest in its path. This distinguishes the effect of reordering extra sources from editing their contents.

Refs #16292.

@Alizter Alizter added test-suite package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands no changelog labels Nov 20, 2026
Use the resolved package target to compare paths and filter cache misses
when declarations are reordered. Keep the content-change control.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the pkg-extra-source-order-test branch from a112ba6 to a34fa20 Compare November 21, 2026 15:51
@Alizter

Alizter commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

Package digests are to be removed, so this updates the test to avoid testing those directly.

@Alizter
Alizter marked this pull request as ready for review November 21, 2026 16:06
@Alizter
Alizter merged commit ee49756 into ocaml:main Nov 21, 2026
18 checks passed
@Alizter
Alizter deleted the pkg-extra-source-order-test branch November 21, 2026 16:06
@Alizter Alizter added this to the 3.26.0 milestone Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog package management Dune's package management — `(pkg)` stanza, lockdirs, `dune pkg` commands test-suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant