Build Logs

nationalarchives/dr2-dynamo-formatters • 3.8.0-RC4:2025-12-22

Errors

5

Warnings

0

Total Lines

234

1##################################
2Clonning https://github.com/nationalarchives/dr2-dynamo-formatters.git into /build/repo using revision v0.0.16
3##################################
4Note: switching to 'fc59b5568c00a96b51c21c063647ab1449163d37'.
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.3
22----
23Preparing build for 3.8.0-RC4
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: build.sbt
34Pattern: val scala3Version = "3.3.3"
35Replacement: val scala3Version = "3.8.0-RC4"
36Starting compilation server
37Compiling project (Scala 3.7.3, JVM (17))
38Compiled project (Scala 3.7.3, JVM (17))
39Successfully applied pattern 'val scala3Version = "3.3.3"' in build.sbt
40----
41Starting build for 3.8.0-RC4
42Execute tests: true
43sbt project found:
44Sbt version 1.9.6 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 nationalarchives/dr2-dynamo-formatters
47##################################
48Scala version: 3.8.0-RC4
49Targets: uk.gov.nationalarchives%dynamo-formatters
50Project projectConfig: {"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"build.sbt","pattern":"val scala3Version = \"3.3.3\"","replaceWith":"val scala3Version = \"<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-RC4
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-RC4"
70"++3.8.0-RC4 -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-RC4 """{"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"build.sbt","pattern":"val scala3Version = \"3.3.3\"","replaceWith":"val scala3Version = \"<SCALA_VERSION>\""}]}""" uk.gov.nationalarchives%dynamo-formatters"
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 3 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.735s.
85[info] done compiling
86[info] loading settings for project root from build.sbt, version.sbt...
87[info] set current project to dynamo-formatters (in build file:/build/repo/)
88Execute setCrossScalaVersions: 3.8.0-RC4
89OpenCB::Changing crossVersion 3.8.0-RC4 -> 3.8.0-RC4 in root/crossScalaVersions
90OpenCB::Limitting incorrect crossVersions List(2.12.20) -> List(3.8.0-RC4) in root/crossScalaVersions
91[info] set current project to dynamo-formatters (in build file:/build/repo/)
92[info] Setting Scala version to 3.8.0-RC4 on 1 projects.
93[info] Switching Scala version on:
94[info] * root (3.8.0-RC4)
95[info] Excluding projects:
96[info] Reapplying settings...
97[info] set current project to dynamo-formatters (in build file:/build/repo/)
98Execute mapScalacOptions: ,REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
99[info] Reapplying settings...
100[info] set current project to dynamo-formatters (in build file:/build/repo/)
101[info] Defining Global / credentials, credentials
102[info] The new values will be used by Compile / scalafmtOnly, Global / pgpSelectPassphrase and 7 others.
103[info] Run `last` for details.
104[info] Reapplying settings...
105[info] set current project to dynamo-formatters (in build file:/build/repo/)
106Execute excludeLibraryDependency: com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}
107[info] Reapplying settings...
108OpenCB::Failed to reapply settings in excludeLibraryDependency: Reference to undefined setting:
109
110 Global / allExcludeDependencies from Global / allExcludeDependencies (CommunityBuildPlugin.scala:331)
111 Did you mean allExcludeDependencies ?
112 , retry without global scopes
113[info] Reapplying settings...
114[info] set current project to dynamo-formatters (in build file:/build/repo/)
115Execute removeScalacOptionsStartingWith: -P:wartremover
116[info] Reapplying settings...
117[info] set current project to dynamo-formatters (in build file:/build/repo/)
118[success] Total time: 0 s, completed Dec 22, 2025, 7:27:00 PM
119Build config: {"projects":{"exclude":[],"overrides":{}},"java":{},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[{"path":"build.sbt","pattern":"val scala3Version = \"3.3.3\"","replaceWith":"val scala3Version = \"<SCALA_VERSION>\""}]}
120Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),Full,List()))
121Starting build...
122Projects: Set(root)
123Starting build for ProjectRef(file:/build/repo/,root) (dynamo-formatters)... [0/1]
124OpenCB::Exclude Scala3 specific scalacOption `REQUIRE:-source:3.8` in Scala 2.12.20 module Global
125OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
126OpenCB::Filter out '-Werror', matches setting pattern '^-?-Werror'
127Compile scalacOptions: -Wunused:imports, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
128[info] compiling 3 Scala sources to /build/repo/target/scala-3.8.0-RC4/classes ...
129[info] done compiling
130[info] compiling 1 Scala source to /build/repo/target/scala-3.8.0-RC4/test-classes ...
131[info] done compiling
132[info] DynamoFormattersTest:
133[info] dynamoTableFormat read
134[info] - should return an error 'id': missing for row type ArchiveFolder
135[info] dynamoTableFormat read
136[info] - should return an error 'batchId': missing for row type ArchiveFolder
137[info] dynamoTableFormat read
138[info] - should return an error 'name': missing for row type ArchiveFolder
139[info] dynamoTableFormat read
140[info] - should return an error 'type': missing for row type ArchiveFolder
141[info] dynamoTableFormat read
142[info] - should return an error 'batchId': missing, 'name': missing, 'type': missing for row type ArchiveFolder
143[info] dynamoTableFormat read
144[info] - should return an error 'transferCompleteDatetime': missing for row type Asset
145[info] dynamoTableFormat read
146[info] - should return an error 'fileSize': not of type: 'Number' was 'DynString(1)' for row type File
147[info] dynamoTableFormat read
148[info] - should return an error 'representationSuffix': not of type: 'Number' was 'DynString(1)' for row type File
149[info] dynamoTableFormat read
150[info] - should return an error 'fileSize': could not be converted to desired type: java.lang.RuntimeException: Cannot parse NaN for field fileSize into long for row type File
151[info] dynamoTableFormat read
152[info] - should return an error 'sortOrder': not of type: 'Number' was 'DynString(1)' for row type File
153[info] dynamoTableFormat read
154[info] - should return an error 'sortOrder': could not be converted to desired type: java.lang.RuntimeException: Cannot parse NaN for field sortOrder into int for row type File
155[info] dynamoTableFormat read
156[info] - should return an error 'batchId': missing, 'id': missing, 'name': missing, 'sortOrder': missing, 'fileSize': missing, 'checksum_sha256': missing, 'fileExtension': missing, 'type': missing, 'representationType': missing, 'representationSuffix': missing for row type File
157[info] dynamoTableFormat read
158[info] - should return an error 'representationType': could not be converted to desired type: java.lang.Exception: Representation type Invalid not found for row type File
159[info] dynamoTableFormat read
160[info] - should return an error 'originalFiles': missing for row type Asset
161[info] dynamoTableFormat read
162[info] - should return an error 'originalMetadataFiles': could not be converted to desired type: java.lang.RuntimeException: Cannot parse notAUuid for field originalMetadataFiles into class java.util.UUID for row type Asset
163[info] dynamoTableFormat read
164[info] - should return an error 'transferCompleteDatetime': could not be converted to desired type: java.lang.RuntimeException: Cannot parse notAConvertibleString for field transferCompleteDatetime into class java.time.OffsetDateTime for row type Asset
165[info] dynamoTableFormat read
166[info] - should return an error 'batchId': missing, 'id': missing, 'fileSize': not of type: 'Number' was 'DynString(1)' for row type File
167[info] allArchiveFolderFieldsPopulated
168[info] - should contain all of the fields in DynamoTable
169[info] allContentFolderFieldsPopulated
170[info] - should contain all of the fields in DynamoTable
171[info] allAssetFieldsPopulated
172[info] - should contain all of the fields in DynamoTable
173[info] allFileFieldsPopulated
174[info] - should contain all of the fields in DynamoTable
175[info] assetTableFormat read
176[info] - should return true for ingested_PS if the value is true and false otherwise
177[info] assetTableFormat read
178[info] - should return a valid object when all asset fields are populated
179[info] fileTableFormat read
180[info] - should return true for ingested_PS if the value is true and false otherwise
181[info] fileTableFormat read
182[info] - should return a valid object when all file fields are populated
183[info] fileTableFormat write
184[info] - should write all mandatory fields and ignore any optional ones
185[info] archiveFolderTableFormat read
186[info] - should return a valid object when all folder fields are populated
187[info] archiveFolderTableFormat write
188[info] - should write all mandatory fields and ignore any optional ones
189[info] assetTableFormat write
190[info] - should write all mandatory fields and ignore any optional ones
191[info] contentFolderTableFormat read
192[info] - should return a valid object when all folder fields are populated
193[info] contentFolderTableFormat write
194[info] - should write all mandatory fields and ignore any optional ones
195[info] filesTablePkFormat read
196[info] - should read the correct fields
197[info] filesTablePkFormat read
198[info] - should error if the field is missing
199[info] filesTablePkFormat write
200[info] - should write the correct fields
201[info] ingestLockTableFormat read
202[info] - should read the correct fields
203[info] ingestLockTableFormat read
204[info] - should error if the field is missing
205[info] ingestLockTableFormat write
206[info] - should write the correct fields
207[info] lockTablePkFormat read
208[info] - should read the correct fields
209[info] lockTablePkFormat read
210[info] - should error if the field is missing
211[info] lockTablePkFormat write
212[info] - should write the correct fields
213
214************************
215Build summary:
216[{
217 "module": "dynamo-formatters",
218 "compile": {"status": "ok", "tookMs": 12734, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
219 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
220 "test-compile": {"status": "ok", "tookMs": 6408, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
221 "test": {"status": "ok", "tookMs": 1621, "passed": 40, "failed": 0, "ignored": 0, "skipped": 0, "total": 40, "byFramework": [{"framework": "unknown", "stats": {"passed": 40, "failed": 0, "ignored": 0, "skipped": 0, "total": 40}}]},
222 "publish": {"status": "skipped", "tookMs": 0},
223 "metadata": {
224 "crossScalaVersions": ["2.12.20", "3.3.3"]
225}
226}]
227************************
228[success] Total time: 50 s, completed Dec 22, 2025, 7:27:50 PM
229[0JChecking patch project/plugins.sbt...
230Checking patch project/build.properties...
231Checking patch build.sbt...
232Applied patch project/plugins.sbt cleanly.
233Applied patch project/build.properties cleanly.
234Applied patch build.sbt cleanly.