Repository navigation
test: building module artifact targets under (include_subdirs qualified) - #14497
Merged
Merged
Conversation
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]>
This was referenced May 11, 2026
ElectreAAS
self-requested a review
May 12, 2026 12:23
ElectreAAS
approved these changes
May 18, 2026
ElectreAAS
left a comment
Collaborator
There was a problem hiding this comment.
Aside from my small comment, this is a nice reproduction test :)
|
|
||
| $ cat > dune <<EOF | ||
| > (include_subdirs qualified) | ||
| > (library (name main) (modes byte native)) |
Collaborator
There was a problem hiding this comment.
What is the point of (modes byte native)?
It seems to work the same without
Collaborator
Author
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.