Skip to content

test: building module artifact targets under (include_subdirs qualified) - #14497

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-vvpmnkqnlvyq
May 18, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-vvpmnkqnlvyq

Conversation

@Alizter

@Alizter Alizter commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Cram test reproducing the crash described in #14496.

The test captures the current (crashing) output across all five module artifact pforms (%{cmi:...}, %{cmo:...}, %{cmx:...}, %{cmt:...}, %{cmti:...}); the file will need to be updated when the underlying bug is fixed.

Cram test reproducing an internal-error crash in Artifacts_obj.make
when a stanza uses (include_subdirs qualified) and two qualified
subdirectories define modules with the same leaf name. Covers all
five module artifact pforms: %{cmi:...}, %{cmo:...}, %{cmx:...},
%{cmt:...}, %{cmti:...}.

A normal build of the same stanza succeeds. When this is fixed, the
test will need to be updated to capture the correct (non-crashing)
output.

Signed-off-by: Ali Caglayan <[email protected]>

@ElectreAAS ElectreAAS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from my small comment, this is a nice reproduction test :)


$ cat > dune <<EOF
> (include_subdirs qualified)
> (library (name main) (modes byte native))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point of (modes byte native)?
It seems to work the same without

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the default, but if that ever changes (unlikely) we wouldn't affect this test. I'm using artifacts from both compilation modes so I'm just being explicit about the rules I want setup.

@Alizter
Alizter merged commit 78067f4 into ocaml:main May 18, 2026
29 checks passed
@Alizter
Alizter deleted the push-vvpmnkqnlvyq branch May 18, 2026 17:13
Alizter added a commit that referenced this pull request May 29, 2026
@Alizter Alizter added this to the 3.24.0 milestone Jul 8, 2026
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