[HOLD] feat: Add go-runtime support for minimum FTL version to ftl.toml #3005
Annotations
4 errors
Test:
buildengine/build_go_test.go#L229
=== RUN TestBuildChecksMinFTLVersion
info:yetanother: Building module
debug:yetanother: Generating external modules
debug:yetanother: Extracting schema
debug:yetanother: Generating main module
debug:yetanother: Tidying go.mod files
trace:yetanother: exec: cd testdata/projects/yetanother/_ftl/go/main && go mod tidy
trace:yetanother: exec: cd testdata/projects/yetanother/_ftl/go/modules && go mod tidy
trace:yetanother: exec: cd testdata/projects/yetanother && go mod tidy
debug:yetanother: go: warning: "all" matched no packages
debug:yetanother: go: downloading github.com/alecthomas/assert/v2 v2.6.0
debug:yetanother: go: downloading modernc.org/sqlite v1.29.1
debug:yetanother: go: finding module for package github.com/TBD54566975/ftl/go-runtime/server
debug:yetanother: go: finding module for package github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1/ftlv1connect
debug:yetanother: go: finding module for package github.com/TBD54566975/ftl/common/plugin
debug:yetanother: go: downloading go.opentelemetry.io/otel/sdk v1.23.1
debug:yetanother: go: downloading go.opentelemetry.io/otel/sdk/metric v1.23.1
debug:yetanother: go: downloading github.com/TBD54566975/ftl v0.165.0
debug:yetanother: go: found github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1/ftlv1connect in github.com/TBD54566975/ftl v0.165.0
debug:yetanother: go: found github.com/TBD54566975/ftl/common/plugin in github.com/TBD54566975/ftl v0.165.0
debug:yetanother: go: found github.com/TBD54566975/ftl/go-runtime/server in github.com/TBD54566975/ftl v0.165.0
debug:yetanother: go: downloading github.com/alecthomas/assert/v2 v2.8.0
debug:yetanother: Compiling
trace:yetanother: exec: cd testdata/projects/yetanother/_ftl/go/main && go build -o ../../main .
info:yetanother: Building module
debug:yetanother: Generating external modules
debug:yetanother: Extracting schema
debug:yetanother: Generating main module
debug:yetanother: Tidying go.mod files
trace:yetanother: exec: cd testdata/projects/yetanother && go mod tidy
trace:yetanother: exec: cd testdata/projects/yetanother/_ftl/go/main && go mod tidy
trace:yetanother: exec: cd testdata/projects/yetanother/_ftl/go/modules && go mod tidy
debug:yetanother: go: warning: "all" matched no packages
debug:yetanother: go: downloading connectrpc.com/connect v1.15.0
debug:yetanother: go: downloading golang.org/x/net v0.21.0
debug:yetanother: go: downloading github.com/alecthomas/kong v0.8.1
debug:yetanother: go: downloading github.com/alecthomas/types v0.10.1
debug:yetanother: go: downloading google.golang.org/protobuf v1.32.0
debug:yetanother: go: downloading golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3
debug:yetanother: go: downloading golang.org/x/mod v0.15.0
debug:yetanother: go: downloading github.com/jackc/pgx/v5 v5.5.3
debug:yetanother: go: downloading go.opentelemetry.io/otel v1.23.1
debug:yetanother: go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.23.1
debug:yetanother: go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.23.1
debug:yetanother: go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.23.1
debug:yetanother: go: downloading golang.org/x/sys v0.17.0
debug:yetanother: go: downloading go.opentelemetry.io/otel/metric v1.23.1
debug:yetanother: go: downloading go.opentelemetry.io/otel/trace v1.23.1
debug:yetanother: go: downloading github.com/zalando/go-keyring v0.2.3
debug:yetanother: go: downloading github.com/swaggest/jsonschema-go v0.3.64
debug:yetanother: go: downloading golang.org/x/sync v0.6.0
debug:yetanother: go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917
debug:yetanother: go: downloading google.golang.org/grpc v1.61.0
debug:yetanother: go: downloading github.com/cenkalti/backoff/v4 v4.2.1
debug:yetanother: go: downloading golang.org/x/crypto v0.19.0
debug:yetanother: go: downloading github.com/golang/protobuf v1.5.3
debug:yetanother: go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917
debug:yetanother: go: downloading githu
|
Test:
buildengine/build_kotlin_test.go#L408
=== RUN TestKotlinExternalType
info:externalkotlin: Building module
debug:externalkotlin: Setting ftl.version in buildengine/testdata/projects/externalkotlin/pom.xml to 0.129.2
debug:externalkotlin: Generating external modules
debug:externalkotlin: Using build command 'mvn -B compile'
trace:externalkotlin: exec: cd buildengine/testdata/projects/externalkotlin && bash -c 'mvn -B compile'
debug:externalkotlin: [INFO] Scanning for projects...
debug:externalkotlin: [INFO]
debug:externalkotlin: [INFO] ----------------------------< ftl:external >----------------------------
debug:externalkotlin: [INFO] Building external 1.0-SNAPSHOT
debug:externalkotlin: [INFO] from pom.xml
debug:externalkotlin: [INFO] --------------------------------[ jar ]---------------------------------
debug:externalkotlin: [INFO]
debug:externalkotlin: [INFO] --- build-helper:3.5.0:add-source (default) @ external ---
debug:externalkotlin: [INFO] Source directory: buildengine/testdata/projects/externalkotlin/target/generated-sources/ftl added.
debug:externalkotlin: [INFO]
debug:externalkotlin: [INFO] --- resources:3.3.1:resources (default-resources) @ external ---
debug:externalkotlin: [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
debug:externalkotlin: [INFO] skip non existing resourceDirectory buildengine/testdata/projects/externalkotlin/src/main/resources
debug:externalkotlin: [INFO]
debug:externalkotlin: [INFO] --- compiler:3.11.0:compile (default-compile) @ external ---
debug:externalkotlin: [INFO] Nothing to compile - all classes are up to date
debug:externalkotlin: [INFO]
debug:externalkotlin: [INFO] --- kotlin:1.9.23:compile (compile) @ external ---
debug:externalkotlin: [WARNING] Source root doesn't exist: buildengine/testdata/projects/externalkotlin/src/main/java
debug:externalkotlin: [WARNING] Using experimental Kotlin incremental compilation
debug:externalkotlin: [INFO] Non-incremental compilation will be performed: NO_BUILD_HISTORY
debug:externalkotlin: [INFO] Kotlin compile iteration: buildengine/testdata/projects/externalkotlin/src/main/kotlin/ftl/externalkotlin/ExternalKotlin.kt
debug:externalkotlin: [INFO] Exit code: COMPILATION_ERROR
debug:externalkotlin: [ERROR] buildengine/testdata/projects/externalkotlin/src/main/kotlin/ftl/externalkotlin/ExternalKotlin.kt: (5, 22) Unresolved reference: Export
debug:externalkotlin: [ERROR] buildengine/testdata/projects/externalkotlin/src/main/kotlin/ftl/externalkotlin/ExternalKotlin.kt: (14, 2) Unresolved reference: Export
debug:externalkotlin: [INFO] Compiled 1 Kotlin files using incremental compiler
debug:externalkotlin: [INFO] ------------------------------------------------------------------------
debug:externalkotlin: [INFO] BUILD FAILURE
debug:externalkotlin: [INFO] ------------------------------------------------------------------------
debug:externalkotlin: [INFO] Total time: 4.060 s
debug:externalkotlin: [INFO] Finished at: 2024-04-10T18:03:38Z
debug:externalkotlin: [INFO] ------------------------------------------------------------------------
debug:externalkotlin: [ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.9.23:compile (compile) on project external: Compilation failure: Compilation failure:
debug:externalkotlin: [ERROR] buildengine/testdata/projects/externalkotlin/src/main/kotlin/ftl/externalkotlin/ExternalKotlin.kt:[5,22] Unresolved reference: Export
debug:externalkotlin: [ERROR] buildengine/testdata/projects/externalkotlin/src/main/kotlin/ftl/externalkotlin/ExternalKotlin.kt:[14,2] Unresolved reference: Export
debug:externalkotlin: [ERROR] -> [Help 1]
debug:externalkotlin: [ERROR]
debug:externalkotlin: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
debug:externalkotlin: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
debug:externalkotlin: [ERROR]
debug:externalkotlin: [ERROR] For more information about the errors and possible solutions, please read the following articles:
debug:externalkotlin: [ERROR] [Help 1] http://cwiki
|
Test:
buildengine/discover_test.go#L139
=== RUN TestDiscoverModules
buildengine/discover_test.go:139: Expected values to be equal:
Language: "go",
Realm: "home",
Module: "yetanother",
- MinFTLVersion: "1.2.3",
+ MinFTLVersion: "0.129.1",
Deploy: []string{
"main",
},
--- FAIL: TestDiscoverModules (0.00s)
|
Test
Process completed with exit code 1.
|
Loading