Skip to content

Commit 75c7671

Browse files
authored
Run concurrency tests as part of CI build (#5498)
While we added concurrency tests, they were not being run as part of the build. In order to ensure concurrency issues aren't introduced by a change we didn't expect to affect that, we should regularly run the concurrency test suite. The `default` mode took too long on CI, but `quick` seems to be reasonably quick. If a concurrency issue is harder to reproduce, running the tests with a more stressed mode may be necessary.
1 parent 45df021 commit 75c7671

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ jobs:
7878
steps:
7979
- gradlew-build
8080

81+
concurrency-tests:
82+
executor: circle-jdk-executor
83+
steps:
84+
- gradlew-build:
85+
command: jcstress
86+
8187
docker-tests:
8288
executor: machine-executor
8389
steps:
@@ -101,12 +107,14 @@ workflows:
101107
- build
102108
- build-jdk11
103109
- build-jdk17
110+
- concurrency-tests
104111
- docker-tests
105112
- deploy:
106113
requires:
107114
- build
108115
- build-jdk11
109116
- build-jdk17
117+
- concurrency-tests
110118
- docker-tests
111119
filters:
112120
branches:
@@ -133,6 +141,12 @@ workflows:
133141
ignore: /.*/
134142
tags:
135143
only: /^v\d+\.\d+\.\d+(-(RC|M)\d+)?$/
144+
- concurrency-tests:
145+
filters:
146+
branches:
147+
ignore: /.*/
148+
tags:
149+
only: /^v\d+\.\d+\.\d+(-(RC|M)\d+)?$/
136150
- docker-tests:
137151
filters:
138152
branches:
@@ -144,6 +158,7 @@ workflows:
144158
- build
145159
- build-jdk11
146160
- build-jdk17
161+
- concurrency-tests
147162
- docker-tests
148163
filters:
149164
tags:

concurrency-tests/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ dependencies {
1313
jcstress {
1414
libs.jcstressCore
1515

16+
// This affects how long and thorough testing will be
17+
// In order of increasing stress: sanity, quick, default, tough, stress
18+
mode = 'quick'
1619
verbose = true
1720
}

0 commit comments

Comments
 (0)