Skip to content

Fix inline_tests action when partition list is empty#8849

Merged
rgrinberg merged 2 commits intoocaml:mainfrom
hhugo:fix-inline-para-empty
Oct 5, 2023
Merged

Fix inline_tests action when partition list is empty#8849
rgrinberg merged 2 commits intoocaml:mainfrom
hhugo:fix-inline-para-empty

Conversation

@hhugo
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Thanks. a CHANGES entry would be appropriate

@hhugo
Copy link
Copy Markdown
Collaborator Author

hhugo commented Oct 5, 2023

a CHANGES entry would be appropriate

done

@rgrinberg
Copy link
Copy Markdown
Member

DCO please :)

@hhugo hhugo force-pushed the fix-inline-para-empty branch from 86a8338 to 6cd402b Compare October 5, 2023 14:22
hhugo added 2 commits October 5, 2023 10:45
Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>
Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>
@rgrinberg rgrinberg force-pushed the fix-inline-para-empty branch from 6cd402b to 35d821c Compare October 5, 2023 16:45
@rgrinberg rgrinberg merged commit 12fa2fc into ocaml:main Oct 5, 2023
@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 <hugo.heuzard@gmail.com>

* Parallel inline_tests: Fix when partition list is empty

Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>

---------

Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com>
Co-authored-by: Hugo Heuzard <hugo.heuzard@gmail.com>
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