question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@DoNotParallelize not working when used in composed annotation

See original GitHub issue

Which version of Kotest are you using 4.6.0

This is from a Kotest+Spring use-case but the issue is more general I think.

Given a composed annotation such as

@DoNotParallelize
@Tag(Slow, Spring)
@MockBeans(classes = [MyService::class])
annotation class MySpringKotest

I would expect two specs annotated with @MySpringKotest to be run sequentially. Instead they run in parallel.

Btw, it’s important to run Spring tests that use @MockBeans sequentially, because otherwise the configuration of mocks inside the tests are quick to cause race conditions 😞

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sksamuelcommented, Jul 12, 2021

4.6.1 has been released.

On Mon, 7 Jun 2021 at 05:11, Niklas Lochschmidt @.***> wrote:

Do you happen to have an ETA for 4.6.1?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kotest/kotest/issues/2269#issuecomment-855798900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVSGW2ECDXBL7EMTCYM2DTRSLO3ANCNFSM45H2SHVQ .

2reactions
sksamuelcommented, May 24, 2021

I’ll include this in 4.6.1 as well as 5.0

On Sat, 22 May 2021 at 16:11, Niklas Lochschmidt @.***> wrote:

Nice! Thanks a lot!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kotest/kotest/issues/2269#issuecomment-846464074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVSGURKEAJW6IRSS5S7YTTPAMYFANCNFSM45H2SHVQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure SpecFlow to work with [DoNotParallelize ...
So the annotation you need to use in .feature file is " @mstest:donotparallelize ". If you want to make a scenario not run...
Read more >
Man page for pgen.1 - SUIF Compiler
Pgen reads annotations (created by previous passes) from the SUIF code that tell it where ... Do not parallelize loops with reductions over...
Read more >
C H A P T E R 10 - Parallelization
This chapter presents an overview of multiprocessor parallelization and describes the capabilities of Fortran 95 on SPARC multiprocessor platforms.
Read more >
Composing Finite State Transducers on GPUs - ACL Anthology
NLP do not parallelize in a straightforward way ... techniques used on previous work (such as com- ... the composed transducer has a...
Read more >
Parallel Algorithms - CMU School of Computer Science
In order to solve a problem efficiently on a parallel machine, ... the parallelism in an algorithm can be exploited by using multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found