Skip to content

fix: clean up database metadata #2691

fix: clean up database metadata

fix: clean up database metadata #2691

Triggered via pull request March 20, 2024 23:05
Status Failure
Total duration 2m 42s
Artifacts

ci.yml

on: pull_request
Matrix: Integration Tests / integration
Waiting for pending jobs
Auto Version  /  Conventional Commits Auto-version
Auto Version / Conventional Commits Auto-version
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Proto Breaking Change Check: backend/protos/xyz/block/ftl/v1/schema/schema.proto#L141
Field "2" on message "MetadataDatabases" changed type from "xyz.block.ftl.v1.schema.Database" to "xyz.block.ftl.v1.schema.Ref".
Proto Breaking Change Check
Process completed with exit code 100.
Test Go: backend/schema/schema_test.go#L149
=== RUN TestVisit backend/schema/schema_test.go:149: Expected values to be equal: Module Config String + Secret + String + Database Data Field Optional @@ -21,13 +24,13 @@ String Field Time - Secret - String Verb Ref Ref MetadataCalls Ref + MetadataDatabases + Ref Verb Ref Ref --- FAIL: TestVisit (0.00s)
Test Go: go-runtime/compile/schema_test.go#L119
=== RUN TestExtractModuleSchema debug: info:two: Building module debug: info:one: Building module go-runtime/compile/schema_test.go:119: Expected values to be equal: module one { config configValue one.Config - data Config { - field String - } + secret secretValue String - data Nested { - } - - data Req { - int Int - int64 Int - float Float - string String - slice [String] - map {String: String} - nested one.Nested - optional one.Nested? - time Time - user two.User +alias json "u" - bytes Bytes - enumRef two.TwoEnum - } - - data Resp { - } - - data SinkReq { - } - - data SourceResp { - } - enum Color(String) { Red("Red") Blue("Blue") @@ -61,8 +31,37 @@ Two(2) } - secret secretValue String + data Config { + field String + } + data Nested { + } + + data Req { + int Int + int64 Int + float Float + string String + slice [String] + map {String: String} + nested one.Nested + optional one.Nested? + time Time + user two.User +alias json "u" + bytes Bytes + enumRef two.TwoEnum + } + + data Resp { + } + + data SinkReq { + } + + data SourceResp { + } + verb nothing(Unit) Unit verb sink(one.SinkReq) Unit --- FAIL: TestExtractModuleSchema (7.19s)
Test Go: go-runtime/compile/schema_test.go#L153
=== RUN TestExtractModuleSchemaTwo go-runtime/compile/schema_test.go:153: Expected values to be equal: module two { +enum TwoEnum(String) { +Red("Red") +Blue("Blue") +Green("Green") +} + data Payload<T> { body T } @@ -11,12 +17,6 @@ user two.User } -enum TwoEnum(String) { -Red("Red") -Blue("Blue") -Green("Green") -} - verb callsTwo(two.Payload<String>) two.Payload<String> +calls two.two --- FAIL: TestExtractModuleSchemaTwo (0.34s)
Test Go
Process completed with exit code 1.