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

Fix inline_tests action when partition list is empty #8849

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

hhugo
Copy link
Collaborator

@hhugo hhugo commented Oct 5, 2023

fix #8848

This is a 3 lines fix if your ignore white space

|> Action.diff ~optional:true fn)
|> Action.concurrent
in
Action.Full.make ~sandbox @@ Action.progn [ run_tests; diffs ]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't have to be in this PR, but wouldn't it make more sense to concurrently run and diff rather than concurrently run and then concurrently diff? At the moment, all the diffs have to wait for all the tests to run.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is nothing allowing us to know what diff to perform after a given run

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh yes of course.

Copy link
Collaborator

@Alizter Alizter left a comment

Choose a reason for hiding this comment

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

Fix looks good to me. Of course, we wouldn't need it if Action.Full.make was smart enough to avoid sandboxing if an action doesn't need it rather than complaining.

@rgrinberg
Copy link
Member

Thanks. a CHANGES entry would be appropriate

@hhugo
Copy link
Collaborator Author

hhugo commented Oct 5, 2023

a CHANGES entry would be appropriate

done

@rgrinberg
Copy link
Member

DCO please :)

@rgrinberg rgrinberg merged commit 12fa2fc into ocaml:main Oct 5, 2023
20 checks passed
@hhugo hhugo deleted the fix-inline-para-empty branch October 5, 2023 19:31
@emillon emillon mentioned this pull request Oct 2, 2023
7 tasks
emillon added a commit that referenced this pull request Oct 9, 2023
* Parallel inline_tests: expose bug with empty partition list

Signed-off-by: Hugo Heuzard <[email protected]>

* Parallel inline_tests: Fix when partition list is empty

Signed-off-by: Hugo Heuzard <[email protected]>

---------

Signed-off-by: Hugo Heuzard <[email protected]>
Co-authored-by: Hugo Heuzard <[email protected]>
emillon added a commit to emillon/opam-repository that referenced this pull request Oct 9, 2023
CHANGES:

- Fix `dune rpc` commands on Windows (ocaml/dune#8806, fixes ocaml/dune#8799, @nojb)

- Fix `inline_tests` when the partition list is empty (ocaml/dune#8849, fixes ocaml/dune#8848, @hhugo)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

- Fix `dune rpc` commands on Windows (ocaml/dune#8806, fixes ocaml/dune#8799, @nojb)

- Fix `inline_tests` when the partition list is empty (ocaml/dune#8849, fixes ocaml/dune#8848, @hhugo)
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.

Inline_tests with empty partition
3 participants