Build Logs

guardian/hmac-headers • 3.8.0-RC3:2025-12-04

Errors

6

Warnings

0

Total Lines

171

1##################################
2Clonning https://github.com/guardian/hmac-headers.git into /build/repo using revision v2.0.1
3##################################
4Note: switching to '3443ebdb5b8c9cebd9569ee6fe81d8f47f652e75'.
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
21----
22Preparing build for 3.8.0-RC3
23Scala binary version found: 3.8
24Implicitly using source version 3.8
25Scala binary version found: 3.8
26Implicitly using source version 3.8
27Would try to apply common scalacOption (best-effort, sbt/mill only):
28Append: ,REQUIRE:-source:3.8
29Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
30----
31Starting build for 3.8.0-RC3
32Execute tests: true
33sbt project found:
34Sbt version 1.10.5 is not supported, minimal supported version is 1.11.5
35Enforcing usage of sbt in version 1.11.5
36No prepare script found for project guardian/hmac-headers
37##################################
38Scala version: 3.8.0-RC3
39Targets: com.gu%hmac-headers
40Project projectConfig: {"tests":null}
41##################################
42Using extra scalacOptions: ,REQUIRE:-source:3.8
43Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
44[sbt_options] declare -a sbt_options=()
45[process_args] java_version = '17'
46[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8/rt.jar'
47# Executing command line:
48java
49-Dfile.encoding=UTF-8
50-Dcommunitybuild.scala=3.8.0-RC3
51-Dcommunitybuild.project.dependencies.add=
52-Xmx7G
53-Xms4G
54-Xss8M
55-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
56-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_17_0_8
57-jar
58/root/.sdkman/candidates/sbt/1.11.5/bin/sbt-launch.jar
59"setCrossScalaVersions 3.8.0-RC3"
60"++3.8.0-RC3 -v"
61"mapScalacOptions ",REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e""
62"set every credentials := Nil"
63"excludeLibraryDependency com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}"
64"removeScalacOptionsStartingWith -P:wartremover"
65
66moduleMappings
67"runBuild 3.8.0-RC3 """{"tests":null}""" com.gu%hmac-headers"
68
69[info] welcome to sbt 1.11.5 (Eclipse Adoptium Java 17.0.8)
70[info] loading settings for project repo-build from akka.sbt, plugins.sbt...
71[info] loading project definition from /build/repo/project
72[info] compiling 2 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
73[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.20. Compiling...
74[info] Compilation completed in 8.245s.
75[info] done compiling
76[info] loading settings for project repo from build.sbt, version.sbt...
77[info] set current project to hmac-headers (in build file:/build/repo/)
78Execute setCrossScalaVersions: 3.8.0-RC3
79OpenCB::Changing crossVersion 3.3.4 -> 3.8.0-RC3 in repo/crossScalaVersions
80[info] set current project to hmac-headers (in build file:/build/repo/)
81[info] Setting Scala version to 3.8.0-RC3 on 1 projects.
82[info] Switching Scala version on:
83[info] * repo (2.12.20, 2.13.15, 3.8.0-RC3)
84[info] Excluding projects:
85[info] Reapplying settings...
86[info] set current project to hmac-headers (in build file:/build/repo/)
87Execute mapScalacOptions: ,REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
88[info] Reapplying settings...
89[info] set current project to hmac-headers (in build file:/build/repo/)
90[info] Defining Global / credentials, credentials
91[info] The new values will be used by allCredentials, credentials and 2 others.
92[info] Run `last` for details.
93[info] Reapplying settings...
94[info] set current project to hmac-headers (in build file:/build/repo/)
95Execute excludeLibraryDependency: com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}
96[info] Reapplying settings...
97OpenCB::Failed to reapply settings in excludeLibraryDependency: Reference to undefined setting:
98
99 Global / allExcludeDependencies from Global / allExcludeDependencies (CommunityBuildPlugin.scala:331)
100 Did you mean allExcludeDependencies ?
101 , retry without global scopes
102[info] Reapplying settings...
103[info] set current project to hmac-headers (in build file:/build/repo/)
104Execute removeScalacOptionsStartingWith: -P:wartremover
105[info] Reapplying settings...
106[info] set current project to hmac-headers (in build file:/build/repo/)
107[success] Total time: 0 s, completed Dec 4, 2025, 3:17:00 PM
108Build config: {"tests":null}
109Parsed config: Failure(sjsonnew.DeserializationException: Expected String as JString, but got JNull)
110Starting build...
111Projects: Set(repo)
112Starting build for ProjectRef(file:/build/repo/,repo) (hmac-headers)... [0/1]
113OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
114Compile scalacOptions: --java-output-version:17, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
115[info] compiling 1 Scala source to /build/repo/target/scala-3.8.0-RC3/classes ...
116[info] done compiling
117[info] compiling 1 Scala source to /build/repo/target/scala-3.8.0-RC3/test-classes ...
118[info] done compiling
119[info] HMACHeadersTest:
120[info] HMACHeaders
121[info] when createHMACHeaderValues
122[info] - should create a Date and Authorization token based on a URI and a secret *** FAILED ***
123[info] "Tue, 15 Nov 1994 0[7]:12:00 GMT" was not equal to "Tue, 15 Nov 1994 0[8]:12:00 GMT" (HMACHeadersTest.scala:47)
124[info] Analysis:
125[info] "Tue, 15 Nov 1994 0[7]:12:00 GMT" -> "Tue, 15 Nov 1994 0[8]:12:00 GMT"
126[info] when createHMACHeaderValues
127[info] - should return true if the HMAC and the date are valid *** FAILED ***
128[info] false was not true (HMACHeadersTest.scala:55)
129[info] CreateHMACHeader
130[info] when createHMACHeaderValuesWithSecret
131[info] - should create a Date and Authorization token based on a URI and a secret *** FAILED ***
132[info] "Tue, 15 Nov 1994 0[7]:12:00 GMT" was not equal to "Tue, 15 Nov 1994 0[8]:12:00 GMT" (HMACHeadersTest.scala:64)
133[info] Analysis:
134[info] "Tue, 15 Nov 1994 0[7]:12:00 GMT" -> "Tue, 15 Nov 1994 0[8]:12:00 GMT"
135[info] ValidateHMACHeader
136[info] when validateHMACHeadersWithSecret
137[info] - should return true if the HMAC and the date are valid *** FAILED ***
138[info] false was not true (HMACHeadersTest.scala:74)
139[info] - should return false if the HMAC is invalid
140[info] - should return false if the date is invalid
141[info] - should raise an exception if the Date header is in the wrong format
142[info] - should raise an exception if the HMAC header is in the wrong format
143[info] when isHMACValid
144[info] - should return true if the two hmac signatures match *** FAILED ***
145[info] false was not true (HMACHeadersTest.scala:100)
146[info] - should return false if the two dates do not match
147[info] - should return false if the two URIs do not match
148[info] - should return false if the two secrets do not match
149[info] when isDateValid
150[info] - should return true if the date is within the expected time frame
151[info] - should return false if the date is outside the expected time frame
152[info] - should return false if the date is in the future
153
154************************
155Build summary:
156[{
157 "module": "hmac-headers",
158 "compile": {"status": "ok", "tookMs": 6761, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
159 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
160 "test-compile": {"status": "ok", "tookMs": 2693, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
161 "test": {"status": "failed", "tookMs": 655, "passed": 10, "failed": 5, "ignored": 0, "skipped": 0, "total": 15, "byFramework": [{"framework": "unknown", "stats": {"passed": 10, "failed": 5, "ignored": 0, "skipped": 0, "total": 15}}]},
162 "publish": {"status": "skipped", "tookMs": 0},
163 "metadata": {
164 "crossScalaVersions": ["2.12.20", "2.13.15", "3.3.4"]
165}
166}]
167************************
168[error] Scala3CommunityBuild$ProjectBuildFailureException: 1 module(s) finished with failures: hmac-headers
169[error] (Global / runBuild) Scala3CommunityBuild$ProjectBuildFailureException: 1 module(s) finished with failures: hmac-headers
170[error] Total time: 23 s, completed Dec 4, 2025, 3:17:23 PM
171[0JBuild failed, not retrying.