Skip to content

test: verify transparent alias incremental build safety (#4572)#14101

Merged
rgrinberg merged 1 commit intoocaml:mainfrom
robinbb:robinbb-issue-4572-safety-tests
Apr 10, 2026
Merged

test: verify transparent alias incremental build safety (#4572)#14101
rgrinberg merged 1 commit intoocaml:mainfrom
robinbb:robinbb-issue-4572-safety-tests

Conversation

@robinbb
Copy link
Copy Markdown
Contributor

@robinbb robinbb commented Apr 9, 2026

Summary

  • Add test verifying incremental builds succeed when a module re-exports
    a library via a transparent alias (module M = Mylib) and the library's
    interface changes.

Safety test ensuring per-module dependency filtering (issue #4572) does
not break incremental builds for re-export/alias scenarios.

Ref: #4572

Test plan

  • dune runtest test/blackbox-tests/test-cases/per-module-lib-deps passes

@robinbb robinbb force-pushed the robinbb-issue-4572-safety-tests branch from dbcdf0a to 2da8a3c Compare April 9, 2026 02:48
@robinbb robinbb changed the title test: verify incremental build safety for per-module filtering (#4572) test: verify transparent alias incremental build safety (#4572) Apr 9, 2026
@robinbb robinbb marked this pull request as draft April 9, 2026 03:23
@robinbb robinbb force-pushed the robinbb-issue-4572-safety-tests branch from 2da8a3c to 47d7d81 Compare April 9, 2026 04:03
@robinbb robinbb marked this pull request as ready for review April 9, 2026 04:41
Add baseline test verifying that incremental builds succeed when a module
re-exports a library via a transparent alias (module M = Mylib) and the
library's interface changes. Regression reported by @Alizter.

Signed-off-by: Robin Bate Boerop <me@robinbb.com>
@robinbb robinbb force-pushed the robinbb-issue-4572-safety-tests branch from 47d7d81 to 6135bc9 Compare April 10, 2026 15:17
@robinbb
Copy link
Copy Markdown
Contributor Author

robinbb commented Apr 10, 2026

I have applied your advice on this PR to others, also, @rgrinberg. Thank you. Back to you.

@rgrinberg rgrinberg merged commit 7711a49 into ocaml:main Apr 10, 2026
30 checks passed
@robinbb robinbb deleted the robinbb-issue-4572-safety-tests branch April 10, 2026 16:21
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