Build Logs
playframework/cachecontrol • 3.8.0-RC3:2025-12-04
Errors
1
Warnings
19
Total Lines
371
1##################################
2Clonning https://github.com/playframework/cachecontrol.git into /build/repo using revision 3.1.0-M2
3##################################
4Note: switching to '2ab6ebc807ce67a0ea86f0aa2fa1536e875e921a'.
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
21Would override fixed Scala version: 3.3.5
22----
23Preparing build for 3.8.0-RC3
24Scala binary version found: 3.8
25Implicitly using source version 3.8
26Scala binary version found: 3.8
27Implicitly using source version 3.8
28Would try to apply common scalacOption (best-effort, sbt/mill only):
29Append: ,REQUIRE:-source:3.8
30Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
31
32Try apply source patch:
33Path: project/Dependencies.scala
34Pattern: val Scala3 = "3.3.5"
35Replacement: val Scala3 = "3.8.0-RC3"
36Starting compilation server
37Compiling project (Scala 3.7.3, JVM (17))
38Compiled project (Scala 3.7.3, JVM (17))
39Successfully applied pattern 'val Scala3 = "3.3.5"' in project/Dependencies.scala
40----
41Starting build for 3.8.0-RC3
42Execute tests: true
43sbt project found:
44Sbt version 1.10.11 is not supported, minimal supported version is 1.11.5
45Enforcing usage of sbt in version 1.11.5
46No prepare script found for project playframework/cachecontrol
47##################################
48Scala version: 3.8.0-RC3
49Targets: org.playframework%cachecontrol
50Project projectConfig: {"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"project/Dependencies.scala","pattern":"val Scala3 = \"3.3.5\"","replaceWith":"val Scala3 = \"<SCALA_VERSION>\""}]}
51##################################
52Using extra scalacOptions: ,REQUIRE:-source:3.8
53Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
54[sbt_options] declare -a sbt_options=()
55[process_args] java_version = '17'
56[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8/rt.jar'
57# Executing command line:
58java
59-Dfile.encoding=UTF-8
60-Dcommunitybuild.scala=3.8.0-RC3
61-Dcommunitybuild.project.dependencies.add=
62-Xmx7G
63-Xms4G
64-Xss8M
65-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
66-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8
67-jar
68/root/.sdkman/candidates/sbt/1.11.5/bin/sbt-launch.jar
69"setCrossScalaVersions 3.8.0-RC3"
70"++3.8.0-RC3 -v"
71"mapScalacOptions ",REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e""
72"set every credentials := Nil"
73"excludeLibraryDependency com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}"
74"removeScalacOptionsStartingWith -P:wartremover"
75
76moduleMappings
77"runBuild 3.8.0-RC3 """{"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"project/Dependencies.scala","pattern":"val Scala3 = \"3.3.5\"","replaceWith":"val Scala3 = \"<SCALA_VERSION>\""}]}""" org.playframework%cachecontrol"
78
79[info] welcome to sbt 1.11.5 (Eclipse Adoptium Java 17.0.8)
80[info] loading settings for project repo-build from akka.sbt, plugins.sbt...
81[info] loading project definition from /build/repo/project
82[info] compiling 4 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
83[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.20. Compiling...
84[info] Compilation completed in 8.91s.
85[info] done compiling
86[info] loading settings for project cachecontrol from build.sbt, common.sbt...
87[info] set current project to cachecontrol (in build file:/build/repo/)
88Execute setCrossScalaVersions: 3.8.0-RC3
89OpenCB::Changing crossVersion 3.8.0-RC3 -> 3.8.0-RC3 in cachecontrol/crossScalaVersions
90[info] set current project to cachecontrol (in build file:/build/repo/)
91[info] Setting Scala version to 3.8.0-RC3 on 1 projects.
92[info] Switching Scala version on:
93[info] * cachecontrol (2.12.20, 2.13.16, 3.8.0-RC3)
94[info] Excluding projects:
95[info] Reapplying settings...
96[info] set current project to cachecontrol (in build file:/build/repo/)
97Execute mapScalacOptions: ,REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
98[info] Reapplying settings...
99[info] set current project to cachecontrol (in build file:/build/repo/)
100[info] Defining Global / credentials, credentials
101[info] The new values will be used by Compile / scalafmtOnly, Global / pgpSelectPassphrase and 7 others.
102[info] Run `last` for details.
103[info] Reapplying settings...
104[info] set current project to cachecontrol (in build file:/build/repo/)
105Execute excludeLibraryDependency: com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}
106[info] Reapplying settings...
107OpenCB::Failed to reapply settings in excludeLibraryDependency: Reference to undefined setting:
108
109 Global / allExcludeDependencies from Global / allExcludeDependencies (CommunityBuildPlugin.scala:331)
110 Did you mean allExcludeDependencies ?
111 , retry without global scopes
112[info] Reapplying settings...
113[info] set current project to cachecontrol (in build file:/build/repo/)
114Execute removeScalacOptionsStartingWith: -P:wartremover
115[info] Reapplying settings...
116[info] set current project to cachecontrol (in build file:/build/repo/)
117[success] Total time: 0 s, completed Dec 4, 2025, 3:50:04 PM
118Build config: {"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"project/Dependencies.scala","pattern":"val Scala3 = \"3.3.5\"","replaceWith":"val Scala3 = \"<SCALA_VERSION>\""}]}
119Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),Full,List()))
120Starting build...
121Projects: Set(cachecontrol)
122Starting build for ProjectRef(file:/build/repo/,cachecontrol) (cachecontrol)... [0/1]
123OpenCB::Exclude Scala3 specific scalacOption `REQUIRE:-source:3.8` in Scala 2.12.20 module Global
124OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
125OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
126Compile scalacOptions: -release, 17, -encoding, utf8, -unchecked, -Xlint, -Ywarn-unused:imports, -Xlint:nullary-unit, -Ywarn-dead-code, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
127[info] compiling 19 Scala sources to /build/repo/target/scala-3.8.0-RC3/classes ...
128[warn] Option -Xlint is deprecated: Use -Wshadow to enable shadowing lints. Scheduled for removal.
129[warn] bad option '-Ywarn-unused:imports' was ignored
130[warn] Option -Xlint is deprecated: Use -Wshadow to enable shadowing lints. Scheduled for removal.
131[warn] bad option '-Ywarn-dead-code' was ignored
132[warn] -- Warning: /build/repo/src/main/scala/org/playframework/cachecontrol/VaryParser.scala:15:54
133[warn] 15 | val headerNames = fieldValue.split(",\\s*").map(HeaderName)
134[warn] | ^^^^^^^^^^
135[warn] |The method `apply` is inserted. The auto insertion will be deprecated, please write `org.playframework.cachecontrol.HeaderName.apply` explicitly.
136[warn] -- [E121] Pattern Match Warning: /build/repo/src/main/scala/org/playframework/cachecontrol/CacheDirectiveParserCompat.scala:11:11
137[warn] 11 | case _ =>
138[warn] | ^
139[warn] |Unreachable case except for null (if this is intentional, consider writing case null => instead).
140[warn] there were 2 deprecation warnings; re-run with -deprecation for details
141[warn] 7 warnings found
142[info] done compiling
143[info] compiling 13 Scala sources to /build/repo/target/scala-3.8.0-RC3/test-classes ...
144[warn] Option -Xlint is deprecated: Use -Wshadow to enable shadowing lints. Scheduled for removal.
145[warn] bad option '-Ywarn-unused:imports' was ignored
146[warn] Option -Xlint is deprecated: Use -Wshadow to enable shadowing lints. Scheduled for removal.
147[warn] bad option '-Ywarn-dead-code' was ignored
148[warn] four warnings found
149[info] done compiling
150SLF4J(W): A number (3) of logging calls during the initialization phase have been intercepted and are
151SLF4J(W): now being replayed. These are subject to the filtering rules of the underlying logging system.
152SLF4J(W): See also https://www.slf4j.org/codes.html#replay
153[info] SecondaryKeyCalculatorSpec:
154[info] Secondary Calculators
155[info] - should be None with no Vary header
156[info] - should return the wildcard itself with a Vary header of *
157[info] - should be Some with the request's Accept-Encoding value with a Vary header of Accept-Encoding
158[info] ResponseCachingCalculatorSpec:
159[info] isCacheable
160[info] when with non cacheable method
161[info] - should return DoNotCacheResponse
162[info] when with ineligible response code
163[info] - should return DoNotCacheResponse
164[info] when with Authorized Header in request
165[info] - should return DoNotCacheResponse if a shared cache
166[info] - should return DoCacheResponse if a shared cache and explicitly allowed
167[info] - should return DoCacheResponse if a private cache
168[info] when with no-store request directive
169[info] - should return DoNotCacheResponse
170[info] when with no-store response directive
171[info] - should return DoNotCacheResponse
172[info] when with no-cache response directive
173[info] - should return DoCacheResponse
174[info] - should return DoCacheResponse when qualified
175[info] when with private response directive
176[info] - should return DoCacheResponse when cache is private
177[info] - should return DoNotCacheResponse when cache is shared
178[info] - should return DoCacheResponse with no stripped headers when qualified and cache is private
179[info] - should return DoCacheResponse with stripped headers when qualified and cache is shared
180[info] when with qualified private and qualified no-cache response directives
181[info] - should return DoCache with only no-cache stripped headers when private
182[info] - should return DoCache with both stripped headers when shared cache
183[info] when with Expires header in response
184[info] - should return DoCacheResponse
185[info] when with max-age response directive
186[info] - should return DoCacheResponse
187[info] when with s-maxage response directive
188[info] - should return DoCacheResponse in a shared cache
189[info] - should have no effect in a private cache
190[info] - should overrides max-age directive (pending)
191[info] when with a containsCachableExtension
192[info] - should return DoCacheResponse
193[info] when with an unrecognized cache extension
194[info] - should return DoCacheResponse and be ignored
195[info] when with a status code that is not cacheable by default
196[info] - should return DoNotCacheResponse
197[info] when with a public directive
198[info] - should return DoCacheResponse even when not cacheable by default
199[info] CacheDefaultsSpec:
200[info] isCacheableMethod
201[info] - should return true for GET
202[info] - should return true for HEAD
203[info] - should return false for POST
204[info] CurrentAgeCalculatorSpec:
205[info] calculateAgeValue
206[info] - should calculate age from Age header
207[info] - should calculate age as 0 if Age header is missing
208[info] calculateDateValue
209[info] - should calculate age from Date header
210[info] - should throw exception if Date header is missing
211[info] calculateAge
212[info] - should work with a Date header
213[info] - should work with a Date header and a response delay
214[info] - should work with an Age header
215[info] - should work with an Age header and a response delay of two seconds
216[info] FreshnessCalculatorSpec:
217[info] calculateFreshnessLifetime
218[info] - should return stale on conflicting information
219[info] - should use the Expires headers
220[info] - should use the max-age directive
221[info] - should use the max-age directive over the expires header
222[info] - should use s-maxage directive
223[info] - should use the s-maxage directive over the expires header if shared
224[info] - should use the s-maxage directive over the max-age header if shared
225[info] - should ignore the s-maxage header if private
226[info] - should use a heuristic if defined
227[info] - should return stale if there is no heuristic
228[info] WarningParserSpec:
229[info] - Parse a warning spec correctly with a date
230[info] - Parse a warning spec correctly
231[info] - Parse a warning spec correctly with uri-host
232[info] StripHeaderCalculatorSpec:
233[info] stripHeaders
234[info] - should contain no-cache results
235[info] - should contain private results
236[info] - should contain no results when cache is private
237[info] ResponseSelectionCalculatorSpec:
238[info] serveResponse
239[info] when matching URI and no nominated headers
240[info] - should return SelectedResponse
241[info] when the effective request URI does not match the stored response URI
242[info] - should return ForwardToOrigin
243[info] when the request method associated with the stored response does not allow it to be used
244[info] - should return ForwardToOrigin
245[info] when the selecting header fields do not match
246[info] - should return ForwardToOrigin if no presenting header by that name
247[info] - should return ForwardToOrigin if a presenting header has the wrong value
248[info] - should return ForwardToOrigin if only some of the presenting headers match
249[info] when matching headers are found
250[info] - should return SelectedResponse
251[info] - should return SelectedResponse with the most recent stored response if multiple responses
252[info] when no response is found
253[info] - should return ForwardToOrigin
254[info] - should return GatewayTimeout if request specifies only-if-cached
255[info] HttpDateSpec:
256[info] - parse a date in IMF-fixdate format
257[info] - parse a date in RFC 850 format
258[info] - parse a date that is > 50 years in the future correctly (pending)
259[info] - parse a date in asctime format
260[info] - format a date in IMF format
261[info] VaryParserSpec:
262[info] Vary parser
263[info] - should parse * correctly
264[info] - should parse a list of header names correctly
265[info] ResponseServingCalculatorSpec:
266[info] serviceResponse
267[info] when no-cache request directive
268[info] - should return Validate
269[info] when no-cache pragma
270[info] - should return Validate
271[info] when no-store request directive
272[info] - should return ServeFresh when fresh
273[info] - should return Validate when stale
274[info] when max-stale request directive
275[info] - should return ServeFresh when fresh
276[info] - should return ServeStale when stale but there is max-age with no delta
277[info] - should return ServeStale when stale but within range
278[info] - should return Validate when stale outside of max-age
279[info] when max-age request directive
280[info] - should return Validate when max-age=0
281[info] - should return ServeFresh when in range
282[info] - should return Validate when not in range
283[info] when min-fresh request directive
284[info] - should return ServeFresh when in range
285[info] - should return Validate when out of range
286[info] - should return Validate when in range but combined with max-age
287[info] when stale-if-error request directive
288[info] - should return Validate with stale-if-error = true when in range
289[info] - should return Validate with stale-if-error = false when out of range
290[info] when no-cache response directive
291[info] - should always return Validate, even when fresh
292[info] when no-store response directive
293[info] - should return ServeFresh when fresh
294[info] - should return Validate when stale
295[info] when must-revalidate response directive
296[info] - should return ServeFresh when fresh
297[info] - should return ValidateOrTimeout when stale
298[info] when max-age response directive
299[info] - should return ServeFresh when fresh
300[info] - should return Validate when stale
301[info] - should return Validate when max-age=0
302[info] when s-maxage response directive
303[info] when private cache
304[info] - should return ServeFresh when fresh (s-maxage is ignored)
305[info] - should return Validate when stale (s-maxage is ignored)
306[info] when shared cache
307[info] - should return ServeFresh when fresh, overriding max-age
308[info] - should return ValidateOrTimeout when stale
309[info] - should return ValidateOrTimeout when s-maxage=0
310[info] when proxy-revalidate response directive
311[info] - should return ServeFresh when fresh
312[info] - should return ValidateOrTimeout when stale
313[info] - should return Validate when stale and private cache
314[info] when stale-while-revalidate response directive
315[info] - should return ServeFresh when fresh
316[info] - should return ServeStaleAndValidate when stale but in range
317[info] - should return Validate when stale
318[info] - should return Validate when stale and combined with stale-if-error
319[info] when stale-if-error response directive
320[info] - should return ServeFresh when fresh
321[info] - should return Validate with stale-if-error=true when stale but in range
322[info] - should return Validate with stale-if-error=false when not in range
323[info] CacheDirectiveParserSpec:
324[info] CacheDirectiveParser
325[info] - should parse a cache directive in upper case
326[info] - should parse a cache directive in a quoted string
327[info] - should parse max-age successfully
328[info] - should parse max-age successfully with a value of 0
329[info] - should parse max-stale successfully
330[info] - should parse min-fresh successfully
331[info] - should parse no-cache successfully
332[info] - should parse no-cache with arguments successfully
333[info] - should parse no-store successfully
334[info] - should parse no-transform successfully
335[info] - should parse only-if-cached successfully
336[info] - should parse must-revalidate successfully
337[info] - should parse public successfully
338[info] - should parse private successfully
339[info] - should parse private with values successfully
340[info] - should parse proxy-revalidate successfully
341[info] - should parse s-maxage successfully
342[info] - should parse custom cache directive successfully
343[info] - should parse private,max-age=0,no-cache successfully
344[info] - should parse duplicated private,private successfully
345[info] - should parse headers and join them successfully
346[info] - should parse complicated headers and join them with duplicates
347[info] - should parse random input as cache directives
348
349************************
350Build summary:
351[{
352 "module": "cachecontrol",
353 "compile": {"status": "ok", "tookMs": 10712, "warnings": 2, "errors": 0, "sourceVersion": "3.8"},
354 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
355 "test-compile": {"status": "ok", "tookMs": 7402, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
356 "test": {"status": "ok", "tookMs": 854, "passed": 131, "failed": 0, "ignored": 0, "skipped": 0, "total": 131, "byFramework": [{"framework": "unknown", "stats": {"passed": 131, "failed": 0, "ignored": 0, "skipped": 0, "total": 131}}]},
357 "publish": {"status": "skipped", "tookMs": 0},
358 "metadata": {
359 "crossScalaVersions": ["2.12.20", "2.13.16", "3.3.5"]
360}
361}]
362************************
363[success] Total time: 31 s, completed Dec 4, 2025, 3:50:34 PM
364[0JChecking patch project/plugins.sbt...
365Checking patch project/build.properties...
366Checking patch project/Dependencies.scala...
367Checking patch build.sbt...
368Applied patch project/plugins.sbt cleanly.
369Applied patch project/build.properties cleanly.
370Applied patch project/Dependencies.scala cleanly.
371Applied patch build.sbt cleanly.