Skip to content

test: verify library file deps in compilation rules and sandboxed builds (#4572)#14100

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

test: verify library file deps in compilation rules and sandboxed builds (#4572)#14100
rgrinberg merged 1 commit intoocaml:mainfrom
robinbb:robinbb-issue-4572-test-deps

Conversation

@robinbb
Copy link
Copy Markdown
Contributor

@robinbb robinbb commented Apr 8, 2026

Summary

  • Add baseline tests documenting existing behavior before the refactor that moves Hidden_deps from Includes to per-module in build_cm
  • lib-deps-preserved.t: every non-alias module declares glob deps on its library dependencies' .cmi files
  • sandbox-lib-deps.t: sandboxed package builds have dependency libraries' .cmi files available when a library depends on another library

These tests pass on main today and establish a baseline for the refactor in #14030.

Ref: #4572

@robinbb robinbb force-pushed the robinbb-issue-4572-test-deps branch from 31c2ce6 to 526fba8 Compare April 8, 2026 23:32
@robinbb robinbb changed the title test: verify library file deps and menhir sandbox behavior (#4572) test: verify library file deps in compilation rules and sandboxed builds (#4572) Apr 8, 2026
@robinbb
Copy link
Copy Markdown
Contributor Author

robinbb commented Apr 10, 2026

Back to you, @rgrinberg

…lds (ocaml#4572)

Add baseline tests documenting existing behavior:

- lib-deps-preserved: every non-alias module declares glob deps on its
  library dependencies' .cmi files
- sandbox-lib-deps: sandboxed package builds have dependency libraries'
  .cmi files available when a library depends on another library

Signed-off-by: Robin Bate Boerop <me@robinbb.com>
@robinbb robinbb force-pushed the robinbb-issue-4572-test-deps branch from d5c784f to 6ca78ff Compare April 10, 2026 15:22
@rgrinberg rgrinberg merged commit 165b4d4 into ocaml:main Apr 10, 2026
30 checks passed
@robinbb robinbb deleted the robinbb-issue-4572-test-deps 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