File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,17 @@ class Pickler extends Phase {
86
86
pickled
87
87
}(using ExecutionContext .global)
88
88
def force (): Array [Byte ] = Await .result(pickledF, Duration .Inf )
89
- if ctx.settings.YtestPickler .value then force()
89
+
90
+ // Turn off parallelism because it leads to non-deterministic CI failures:
91
+ // - https://github.com/lampepfl/dotty/runs/1029579877?check_suite_focus=true#step:10:967
92
+ // - https://github.com/lampepfl/dotty/runs/1027582846?check_suite_focus=true#step:10:564
93
+ //
94
+ // Turning off parallelism in -Ytest-pickler and Interactive mode seems to
95
+ // work around the problem but I would prefer to not enable this at all
96
+ // until the root cause of the issue is understood since it might manifest
97
+ // itself in other situations too.
98
+ force()
99
+
90
100
unit.pickled += (cls -> force)
91
101
}
92
102
}
You can’t perform that action at this time.
0 commit comments