Build Logs
paulbutcher/scalamock • 12332952851
Errors
5
Warnings
48
Total Lines
662
1##################################
2Clonning https://github.com/paulbutcher/scalamock.git into repo using revision 6.0.0
3##################################
4Note: switching to '1f9ee41882bb4c6809f607c44999b12a1ab9313f'.
5
6You are in 'detached HEAD' state. You can look around, make experimental
7changes and commit them, and you can discard any commits you make in this
8state without impacting any branches by switching back to a branch.
9
10If you want to create a new branch to retain commits you create, you may
11do so (now or later) by using -c with the switch command. Example:
12
13 git switch -c <new-branch-name>
14
15Or undo this operation with:
16
17 git switch -
18
19Turn off this advice by setting config variable advice.detachedHead to false
20
21Migrating project using Scala 3.4.2
22----
23Preparing build for 3.4.2
24Scala binary version found: 3.4
25Implicitly using source version 3.4-migration
26Scala binary version found: 3.4
27Implicitly using source version 3.4-migration
28Would try to apply common scalacOption (best-effort, sbt/mill only):
29Append: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s
30Remove: -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
31----
32Starting build for 3.4.2
33Execute tests: false
34sbt project found:
35Try apply source patch:
36Path: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
37Pattern: m.simplePolymorphicMethod _
38Replacement: m.simplePolymorphicMethod[Int] _
39Starting compilation server
40Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.pom
41Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.pom
42Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.pom
43Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.pom
44Downloading https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.pom
45Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.pom
46Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.pom
47Downloaded https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.pom
48Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.jar
49Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.jar
50Downloading https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.jar
51Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.jar
52Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.jar
53Downloaded https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.jar
54Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.jar
55Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.jar
56Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.pom
57Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.pom
58Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.jar
59Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.jar
60Compiling project (Scala 3.4.2, JVM (11))
61Compiled project (Scala 3.4.2, JVM (11))
62Successfully applied pattern 'm.simplePolymorphicMethod _' in repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
63Try apply source patch:
64Path: shared/src/main/scala/org/scalamock/MockFactoryBase.scala
65Pattern: callLog foreach expectationContext.verify _
66Replacement: callLog.foreach(expectationContext.verify(_))
67Successfully applied pattern 'callLog foreach expectationContext.verify _' in repo/shared/src/main/scala/org/scalamock/MockFactoryBase.scala
68Try apply source patch:
69Path: shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
70Pattern: (m.oneParam _).expects(42)
71Replacement: (m.oneParam).expects(42)
72Successfully applied pattern '(m.oneParam _).expects(42)' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
73Try apply source patch:
74Path: shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
75Pattern: .oneParam _) shouldBe
76Replacement: .oneParam) shouldBe
77Successfully applied pattern '.oneParam _) shouldBe' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
78Try apply source patch:
79Path: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
80Pattern: val mockFun = mockFunction[String, Unit]("mockFun")
81Replacement: val mockFun = mockFunction[String, Unit](functionName("mockFun"))
82Successfully applied pattern 'val mockFun = mockFunction[String, Unit]("mockFun")' in repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
83No prepare script found for project paulbutcher/scalamock
84##################################
85Scala version: 3.4.2
86Targets: org.scalamock%scalamock
87Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "11" }, "sbt": { "commands": [ "mapScalacOptions -experimental" ], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [ "3.4.2" ], "sourcePatches": [ { "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala", "pattern": "m.simplePolymorphicMethod _", "replaceWith": "m.simplePolymorphicMethod[Int] _" }, { "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala", "pattern": "callLog foreach expectationContext.verify _", "replaceWith": "callLog.foreach(expectationContext.verify(_))" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala", "pattern": "(m.oneParam _).expects(42)", "replaceWith": "(m.oneParam).expects(42)" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala", "pattern": ".oneParam _) shouldBe", "replaceWith": ".oneParam) shouldBe" }, { "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala", "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")", "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))" } ] }
88##################################
89Using extra scalacOptions: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s
90Filtering out scalacOptions: -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
91[sbt_options] declare -a sbt_options=()
92[process_args] java_version = '11'
93[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20/rt.jar'
94# Executing command line:
95java
96-Dfile.encoding=UTF-8
97-Dcommunitybuild.scala=3.4.2
98-Dcommunitybuild.project.dependencies.add=
99-Xmx7G
100-Xms4G
101-Xss8M
102-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
103-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20
104-jar
105/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
106"setCrossScalaVersions 3.4.2"
107"++3.4.2 -v"
108"mapScalacOptions "-rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s" "-indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
109"set every credentials := Nil"
110"mapScalacOptions -experimental"
111moduleMappings
112"runBuild 3.4.2 """{
113 "projects": {
114 "exclude": [],
115 "overrides": {}
116 },
117 "java": {
118 "version": "11"
119 },
120 "sbt": {
121 "commands": [
122 "mapScalacOptions -experimental"
123 ],
124 "options": []
125 },
126 "mill": {
127 "options": []
128 },
129 "tests": "compile-only",
130 "migrationVersions": [
131 "3.4.2"
132 ],
133 "sourcePatches": [
134 {
135 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
136 "pattern": "m.simplePolymorphicMethod _",
137 "replaceWith": "m.simplePolymorphicMethod[Int] _"
138 },
139 {
140 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
141 "pattern": "callLog foreach expectationContext.verify _",
142 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
143 },
144 {
145 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
146 "pattern": "(m.oneParam _).expects(42)",
147 "replaceWith": "(m.oneParam).expects(42)"
148 },
149 {
150 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
151 "pattern": ".oneParam _) shouldBe",
152 "replaceWith": ".oneParam) shouldBe"
153 },
154 {
155 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
156 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
157 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
158 }
159 ]
160}""" org.scalamock%scalamock"
161
162[info] [launcher] getting org.scala-sbt sbt 1.9.8 (this may take some time)...
163[info] welcome to sbt 1.9.8 (Eclipse Adoptium Java 11.0.20)
164[info] loading settings for project repo-build from plugins.sbt ...
165[info] loading project definition from /build/repo/project
166[info] compiling 2 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
167[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.18. Compiling...
168[info] Compilation completed in 7.394s.
169[info] done compiling
170[info] loading settings for project repo from build.sbt,publishing.sbt ...
171[info] set current project to repo (in build file:/build/repo/)
172Execute setCrossScalaVersions: 3.4.2
173OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in scalamockJVM/crossScalaVersions
174OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in examples/crossScalaVersions
175OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in scalamockJS/crossScalaVersions
176[info] set current project to repo (in build file:/build/repo/)
177[info] Setting Scala version to 3.4.2 on 3 projects.
178[info] Switching Scala version on:
179[info] scalamockJS (2.12.19, 2.13.12, 3.4.2)
180[info] scalamockJVM (2.12.19, 2.13.12, 3.4.2)
181[info] examples (2.12.19, 2.13.12, 3.4.2)
182[info] Excluding projects:
183[info] * repo (2.12.18)
184[info] Reapplying settings...
185[info] set current project to repo (in build file:/build/repo/)
186Execute mapScalacOptions: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
187[info] Reapplying settings...
188[info] set current project to repo (in build file:/build/repo/)
189[info] Defining Global / credentials, credentials and 2 others.
190[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 19 others.
191[info] Run `last` for details.
192[info] Reapplying settings...
193[info] set current project to repo (in build file:/build/repo/)
194Execute mapScalacOptions: -experimental
195[info] Reapplying settings...
196[info] set current project to repo (in build file:/build/repo/)
197[success] Total time: 0 s, completed Dec 14, 2024, 10:52:52 PM
198Build config: {
199 "projects": {
200 "exclude": [],
201 "overrides": {}
202 },
203 "java": {
204 "version": "11"
205 },
206 "sbt": {
207 "commands": [
208 "mapScalacOptions -experimental"
209 ],
210 "options": []
211 },
212 "mill": {
213 "options": []
214 },
215 "tests": "compile-only",
216 "migrationVersions": [
217 "3.4.2"
218 ],
219 "sourcePatches": [
220 {
221 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
222 "pattern": "m.simplePolymorphicMethod _",
223 "replaceWith": "m.simplePolymorphicMethod[Int] _"
224 },
225 {
226 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
227 "pattern": "callLog foreach expectationContext.verify _",
228 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
229 },
230 {
231 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
232 "pattern": "(m.oneParam _).expects(42)",
233 "replaceWith": "(m.oneParam).expects(42)"
234 },
235 {
236 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
237 "pattern": ".oneParam _) shouldBe",
238 "replaceWith": ".oneParam) shouldBe"
239 },
240 {
241 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
242 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
243 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
244 }
245 ]
246}
247Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
248Starting build...
249Projects: Set(scalamockJVM)
250Starting build for ProjectRef(file:/build/repo/,scalamockJVM) (scalamock)...
251OpenCB::Exclude Scala3 specific scalacOption `-rewrite` in Scala 2.12.18 module Global
252OpenCB::Exclude Scala3 specific scalacOption `-source:3.4-migration` in Scala 2.12.18 module Global
253OpenCB::Exclude Scala3 specific scalacOption `-experimental` in Scala 2.12.18 module Global
254OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
255OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
256OpenCB::Would not apply setting `-source:3.4-migration`: Project has predefined source version: Some(-source:3.4-migration)
257Compile scalacOptions: List(-unchecked, -release:8, -source:3.4-migration, -rewrite, -Wconf:msg=can be rewritten automatically under:s, -experimental)
258[info] compiling 56 Scala sources to /build/repo/jvm/target/scala-3.4.2/classes ...
259[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:35:10
260[warn] 35 | return r
261[warn] | ^^^^^^^^
262[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
263[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:38:10
264[warn] 38 | return None
265[warn] | ^^^^^^^^^^^
266[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
267[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:58:10
268[warn] 58 | return true
269[warn] | ^^^^^^^^^^^
270[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
271[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:32:8
272[warn] 32 | return r
273[warn] | ^^^^^^^^
274[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
275[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:41:8
276[warn] 41 | return true
277[warn] | ^^^^^^^^^^^
278[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
279[info] [patched file /build/repo/shared/src/main/scala-3/org/scalamock/clazz/Utils.scala]
280[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/handlers/CallHandler.scala]
281[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/proxy/StubFunction.scala]
282[info] [patched file /build/repo/shared/src/main/scala-3/org/scalamock/proxy/ProxyMockFactory.scala]
283[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/scalatest/MixedMockFactory.scala]
284[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/context/MockContext.scala]
285[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/matchers/MockParameter.scala]
286[warn] there was 1 deprecation warning; re-run with -deprecation for details
287[warn] 6 warnings found
288[info] done compiling
289[info] compiling 7 Scala sources to /build/repo/jvm/target/scala-3.4.2/classes ...
290[info] done compiling
291[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.4.2/api...
292[warn] Flag -project set repeatedly
293[info] Scaladoc version 3.4.2 -- Copyright 2002-2024, LAMP/EPFL
294[info] Skipping unused scalacOptions: -Wconf, -source, -rewrite
295[info] Main Scala API documentation successful.
296[info] compiling 65 Scala sources and 5 Java sources to /build/repo/jvm/target/scala-3.4.2/test-classes ...
297[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/specs2/FixtureContextTest.scala]
298[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/OverloadedMethodsTest.scala]
299[info] [patched file /build/repo/shared/src/test/scala-3/com/paulbutcher/test/PathDependentParamSpec.scala]
300[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/SuiteScopeMockParallelTest.scala]
301[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/BasicTest.scala]
302[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala]
303[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/scalatest/ConcurrencyTest.scala]
304[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MethodsWithDefaultParamsTest.scala]
305[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/FixtureContextTest.scala]
306[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala]
307[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTestManyParams.scala]
308[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/IsolatedSpec.scala]
309[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/stub/StubTest.scala]
310[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMockNamingTest.scala]
311[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/ErrorReportingTest.scala]
312[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/ConcurrencyTest.scala]
313[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/matchers/MatchersTest.scala]
314[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/StackableSuitesTest.scala]
315[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/SuiteScopeMockParallelTest.scala]
316[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala]
317[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/matchers/ArgCaptureTest.scala]
318[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/SuiteScopePresetMockParallelTest.scala]
319[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/proxy/ProxyMockTest.scala]
320[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/specs2/BasicTest.scala]
321[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala]
322[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/SuiteScopePresetMockParallelTest.scala]
323[info] [patched file /build/repo/shared/src/test/scala-3/com/paulbutcher/test/Scala3Spec.scala]
324[info] done compiling
325[info] Wrote /build/repo/jvm/target/scala-3.4.2/scalamock_3-6.0.0.pom
326[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.4.2/api...
327[warn] Flag -project set repeatedly
328[info] Scaladoc version 3.4.2 -- Copyright 2002-2024, LAMP/EPFL
329[info] Skipping unused scalacOptions: -Wconf, -source, -rewrite
330[info] Main Scala API documentation successful.
331[info] :: delivering :: org.scalamock#scalamock_3;6.0.0 :: 6.0.0 :: release :: Sat Dec 14 22:53:29 CET 2024
332[info] delivering ivy file to /build/repo/jvm/target/scala-3.4.2/ivy-6.0.0.xml
333[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/poms/scalamock_3.pom
334[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/jars/scalamock_3.jar
335[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/srcs/scalamock_3-sources.jar
336[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/docs/scalamock_3-javadoc.jar
337[info] published ivy to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/ivys/ivy.xml
338[info] compiling 27 Scala sources to /build/repo/jvm/target/scala-3.4.2/test-classes ...
339[info] done compiling
340
341************************
342Build summary:
343[{
344 "module": "scalamock",
345 "compile": {"status": "ok", "tookMs": 12751, "warnings": 5, "errors": 0, "sourceVersion": "3.4-migration"},
346 "doc": {"status": "ok", "tookMs": 1700, "files": 0, "totalSizeKb": 0},
347 "test-compile": {"status": "ok", "tookMs": 19858, "warnings": 0, "errors": 0, "sourceVersion": "3.4-migration"},
348 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
349 "publish": {"status": "ok", "tookMs": 383}
350}]
351************************
352[success] Total time: 48 s, completed Dec 14, 2024, 10:53:40 PM
353Checking patch shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala...
354error: while searching for:
355 }
356
357 it("can have expectations checked at the end of root suite") {
358 val mockFun = mockFunction[String, Unit](functionName("mockFun"))
359 mockFun expects "bottom-level"
360 val caught = intercept[TestFailedException] {
361 verifyExpectations()
362
363error: patch failed: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala:51
364Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala...
365Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala...
366Checking patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala...
367Checking patch jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala...
368error: while searching for:
369
370 it should "mock a Polymorhpic Java interface" in { // test for issue #24
371 val m = mock[PolymorphicJavaInterface]
372 (m.simplePolymorphicMethod[Int] _).expects("foo").returning(44)
373 assertResult(44) { m.simplePolymorphicMethod[Int]("foo") }
374 }
375
376
377error: patch failed: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala:64
378Checking patch build.sbt...
379Applying patch shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala with 1 reject...
380Rejected hunk #1.
381Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala cleanly.
382Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala cleanly.
383Applied patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala cleanly.
384Applying patch jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala with 1 reject...
385Rejected hunk #1.
386Applied patch build.sbt cleanly.
387Commit migration rewrites
388Switched to a new branch 'opencb/migrate-3.4.2'
389[opencb/migrate-3.4.2 bdd80bc] Apply Scala compiler rewrites for 3.4.2
390 34 files changed, 209 insertions(+), 209 deletions(-)
391----
392Preparing build for 3.6.3-RC1
393Scala binary version found: 3.6
394Implicitly using source version 3.6-migration
395Scala binary version found: 3.6
396Implicitly using source version 3.6-migration
397Would try to apply common scalacOption (best-effort, sbt/mill only):
398Append: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
399Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
400----
401Starting build for 3.6.3-RC1
402Execute tests: false
403sbt project found:
404Try apply source patch:
405Path: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
406Pattern: m.simplePolymorphicMethod _
407Replacement: m.simplePolymorphicMethod[Int] _
408Failed to apply pattern 'm.simplePolymorphicMethod _' in repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
409Try apply source patch:
410Path: shared/src/main/scala/org/scalamock/MockFactoryBase.scala
411Pattern: callLog foreach expectationContext.verify _
412Replacement: callLog.foreach(expectationContext.verify(_))
413Successfully applied pattern 'callLog foreach expectationContext.verify _' in repo/shared/src/main/scala/org/scalamock/MockFactoryBase.scala
414Try apply source patch:
415Path: shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
416Pattern: (m.oneParam _).expects(42)
417Replacement: (m.oneParam).expects(42)
418Successfully applied pattern '(m.oneParam _).expects(42)' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
419Try apply source patch:
420Path: shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
421Pattern: .oneParam _) shouldBe
422Replacement: .oneParam) shouldBe
423Successfully applied pattern '.oneParam _) shouldBe' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
424Try apply source patch:
425Path: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
426Pattern: val mockFun = mockFunction[String, Unit]("mockFun")
427Replacement: val mockFun = mockFunction[String, Unit](functionName("mockFun"))
428Failed to apply pattern 'val mockFun = mockFunction[String, Unit]("mockFun")' in repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
429No prepare script found for project paulbutcher/scalamock
430##################################
431Scala version: 3.6.3-RC1
432Targets: org.scalamock%scalamock
433Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "11" }, "sbt": { "commands": [ "mapScalacOptions -experimental" ], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [ "3.4.2" ], "sourcePatches": [ { "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala", "pattern": "m.simplePolymorphicMethod _", "replaceWith": "m.simplePolymorphicMethod[Int] _" }, { "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala", "pattern": "callLog foreach expectationContext.verify _", "replaceWith": "callLog.foreach(expectationContext.verify(_))" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala", "pattern": "(m.oneParam _).expects(42)", "replaceWith": "(m.oneParam).expects(42)" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala", "pattern": ".oneParam _) shouldBe", "replaceWith": ".oneParam) shouldBe" }, { "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala", "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")", "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))" } ] }
434##################################
435Using extra scalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
436Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
437[sbt_options] declare -a sbt_options=()
438[process_args] java_version = '11'
439[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20/rt.jar'
440# Executing command line:
441java
442-Dfile.encoding=UTF-8
443-Dcommunitybuild.scala=3.6.3-RC1
444-Dcommunitybuild.project.dependencies.add=
445-Xmx7G
446-Xms4G
447-Xss8M
448-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
449-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20
450-jar
451/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
452"setCrossScalaVersions 3.6.3-RC1"
453"++3.6.3-RC1 -v"
454"mapScalacOptions ",-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
455"set every credentials := Nil"
456"mapScalacOptions -experimental"
457moduleMappings
458"runBuild 3.6.3-RC1 """{
459 "projects": {
460 "exclude": [],
461 "overrides": {}
462 },
463 "java": {
464 "version": "11"
465 },
466 "sbt": {
467 "commands": [
468 "mapScalacOptions -experimental"
469 ],
470 "options": []
471 },
472 "mill": {
473 "options": []
474 },
475 "tests": "compile-only",
476 "migrationVersions": [
477 "3.4.2"
478 ],
479 "sourcePatches": [
480 {
481 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
482 "pattern": "m.simplePolymorphicMethod _",
483 "replaceWith": "m.simplePolymorphicMethod[Int] _"
484 },
485 {
486 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
487 "pattern": "callLog foreach expectationContext.verify _",
488 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
489 },
490 {
491 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
492 "pattern": "(m.oneParam _).expects(42)",
493 "replaceWith": "(m.oneParam).expects(42)"
494 },
495 {
496 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
497 "pattern": ".oneParam _) shouldBe",
498 "replaceWith": ".oneParam) shouldBe"
499 },
500 {
501 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
502 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
503 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
504 }
505 ]
506}""" org.scalamock%scalamock"
507
508[info] welcome to sbt 1.9.8 (Eclipse Adoptium Java 11.0.20)
509[info] loading settings for project repo-build from plugins.sbt ...
510[info] loading project definition from /build/repo/project
511[info] loading settings for project repo from build.sbt,publishing.sbt ...
512[info] set current project to repo (in build file:/build/repo/)
513Execute setCrossScalaVersions: 3.6.3-RC1
514OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1 in examples/crossScalaVersions
515OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1 in scalamockJS/crossScalaVersions
516OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1 in scalamockJVM/crossScalaVersions
517[info] set current project to repo (in build file:/build/repo/)
518[info] Setting Scala version to 3.6.3-RC1 on 3 projects.
519[info] Switching Scala version on:
520[info] scalamockJS (2.12.19, 2.13.12, 3.6.3-RC1)
521[info] scalamockJVM (2.12.19, 2.13.12, 3.6.3-RC1)
522[info] examples (2.12.19, 2.13.12, 3.6.3-RC1)
523[info] Excluding projects:
524[info] * repo (2.12.18)
525[info] Reapplying settings...
526[info] set current project to repo (in build file:/build/repo/)
527Execute mapScalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
528[info] Reapplying settings...
529[info] set current project to repo (in build file:/build/repo/)
530[info] Defining Global / credentials, credentials and 2 others.
531[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 19 others.
532[info] Run `last` for details.
533[info] Reapplying settings...
534[info] set current project to repo (in build file:/build/repo/)
535Execute mapScalacOptions: -experimental
536[info] Reapplying settings...
537[info] set current project to repo (in build file:/build/repo/)
538[success] Total time: 0 s, completed Dec 14, 2024, 10:53:54 PM
539Build config: {
540 "projects": {
541 "exclude": [],
542 "overrides": {}
543 },
544 "java": {
545 "version": "11"
546 },
547 "sbt": {
548 "commands": [
549 "mapScalacOptions -experimental"
550 ],
551 "options": []
552 },
553 "mill": {
554 "options": []
555 },
556 "tests": "compile-only",
557 "migrationVersions": [
558 "3.4.2"
559 ],
560 "sourcePatches": [
561 {
562 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
563 "pattern": "m.simplePolymorphicMethod _",
564 "replaceWith": "m.simplePolymorphicMethod[Int] _"
565 },
566 {
567 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
568 "pattern": "callLog foreach expectationContext.verify _",
569 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
570 },
571 {
572 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
573 "pattern": "(m.oneParam _).expects(42)",
574 "replaceWith": "(m.oneParam).expects(42)"
575 },
576 {
577 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
578 "pattern": ".oneParam _) shouldBe",
579 "replaceWith": ".oneParam) shouldBe"
580 },
581 {
582 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
583 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
584 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
585 }
586 ]
587}
588Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
589Starting build...
590Projects: Set(scalamockJVM)
591Starting build for ProjectRef(file:/build/repo/,scalamockJVM) (scalamock)...
592OpenCB::Exclude Scala3 specific scalacOption `-source:3.6-migration` in Scala 2.12.18 module Global
593OpenCB::Exclude Scala3 specific scalacOption `-experimental` in Scala 2.12.18 module Global
594OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
595OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
596OpenCB::Would not apply setting `-source:3.6-migration`: Project has predefined source version: Some(-source:3.6-migration)
597Compile scalacOptions: List(-unchecked, -release:8, -source:3.6-migration, -Wconf:msg=can be rewritten automatically under:s, -experimental)
598[info] compiling 56 Scala sources to /build/repo/jvm/target/scala-3.6.3-RC1/classes ...
599[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:35:10
600[warn] 35 | return r
601[warn] | ^^^^^^^^
602[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
603[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:38:10
604[warn] 38 | return None
605[warn] | ^^^^^^^^^^^
606[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
607[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:58:10
608[warn] 58 | return true
609[warn] | ^^^^^^^^^^^
610[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
611[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:32:8
612[warn] 32 | return r
613[warn] | ^^^^^^^^
614[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
615[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:41:8
616[warn] 41 | return true
617[warn] | ^^^^^^^^^^^
618[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
619[warn] there was 1 deprecation warning; re-run with -deprecation for details
620[warn] 6 warnings found
621[info] done compiling
622[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.3-RC1/api...
623[warn] Flag -project set repeatedly
624[info] Scaladoc version 3.6.3-RC1 -- Copyright 2002-2024, LAMP/EPFL
625[info] Skipping unused scalacOptions: -Wconf, -source
626[info] Main Scala API documentation successful.
627[info] compiling 65 Scala sources and 5 Java sources to /build/repo/jvm/target/scala-3.6.3-RC1/test-classes ...
628[info] done compiling
629[info] Wrote /build/repo/jvm/target/scala-3.6.3-RC1/scalamock_3-6.1.0-SNAPSHOT.pom
630[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.3-RC1/api...
631[warn] Flag -project set repeatedly
632[info] Scaladoc version 3.6.3-RC1 -- Copyright 2002-2024, LAMP/EPFL
633[info] Skipping unused scalacOptions: -Wconf, -source
634[info] Main Scala API documentation successful.
635[info] :: delivering :: org.scalamock#scalamock_3;6.1.0-SNAPSHOT :: 6.1.0-SNAPSHOT :: integration :: Sat Dec 14 22:54:30 CET 2024
636[info] delivering ivy file to /build/repo/jvm/target/scala-3.6.3-RC1/ivy-6.1.0-SNAPSHOT.xml
637[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/poms/scalamock_3.pom
638[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/jars/scalamock_3.jar
639[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/srcs/scalamock_3-sources.jar
640[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/docs/scalamock_3-javadoc.jar
641[info] published ivy to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/ivys/ivy.xml
642
643************************
644Build summary:
645[{
646 "module": "scalamock",
647 "compile": {"status": "ok", "tookMs": 12487, "warnings": 5, "errors": 0, "sourceVersion": "3.6-migration"},
648 "doc": {"status": "ok", "tookMs": 160, "files": 0, "totalSizeKb": 0},
649 "test-compile": {"status": "ok", "tookMs": 18755, "warnings": 0, "errors": 0, "sourceVersion": "3.6-migration"},
650 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
651 "publish": {"status": "ok", "tookMs": 458}
652}]
653************************
654[success] Total time: 36 s, completed Dec 14, 2024, 10:54:30 PM
655Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala...
656Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala...
657Checking patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala...
658Checking patch build.sbt...
659Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala cleanly.
660Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala cleanly.
661Applied patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala cleanly.
662Applied patch build.sbt cleanly.