Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: exhibit a bug when promoting directories #11213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

panglesd
Copy link

@panglesd panglesd commented Dec 16, 2024

This shows a reproduction for issue #11214!

@@ -0,0 +1,43 @@
Tests for promoting directory targets
Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally we try to avoid cram test folders with multiple files. Can you rename this file into deep-subdir.t and inline the dune and dune-project?

Otherwise the test looks good to me!

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! And sorry for the delay: I missed the notification...

I now see that @ElectreAAS has incorporated this PR into #11226, with your suggestion and along with a fix (thanks a lot!). Should I close this one then?

Copy link
Collaborator

Choose a reason for hiding this comment

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

As you want, I incorporated your test because I wanted to be sure I wasn't making any existing bug worse, but that doesn't mean you have to close this PR
If you can apply Marek's suggestion we can merge this and I'll modify #11226 accordingly

Copy link
Author

Choose a reason for hiding this comment

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

Done. (And signed the commits.)

Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

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

The tests needs to be made reproducible but otherwise looks good :-)

P.S.: Yes, I agree with @ElectreAAS. It's generally nice to merge repro cases first to show that PR that fixes it solves the issue.


$ dune build deep_copied --verbose
Shared cache: enabled-except-user-rules
Shared cache location: /home/panglesd/.cache/dune/db
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would the non --verbose run be enough? Otherwise you need to figure out paths and things that might change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants