Skip to content

CASSGO-80 Update example and test code for 2.0 #990

CASSGO-80 Update example and test code for 2.0

CASSGO-80 Update example and test code for 2.0 #990

Triggered via pull request July 1, 2025 20:25
Status Failure
Total duration 1m 22s
Artifacts

main.yml

on: pull_request
Matrix: Unit tests
Matrix: Integration Tests with auth
Matrix: Integration Tests
Fit to window
Zoom out
Zoom in

Annotations

17 errors
Unit tests (1.23)
Process completed with exit code 2.
Unit tests (1.23): example_vector_test.go#L169
session.Query("SELECT id, item_name, embedding FROM example.vectors WHERE id = ?", 1).ScanContext undefined (type *gocql.Query has no field or method ScanContext) (typecheck)
Unit tests (1.23): example_structured_logging_test.go#L148
undefined: gocqlzerolog.Wrap
Unit tests (1.23): example_structured_logging_test.go#L139
baseLogger.With().Str undefined (type *zap.Logger has no field or method Str)
Unit tests (1.23): example_structured_logging_test.go#L134
baseLogger.With().Str undefined (type *zap.Logger has no field or method Str)
Unit tests (1.23): example_structured_logging_test.go#L125
cannot use zerolog.New(os.Stdout).Level(zerolog.InfoLevel).With().Timestamp().Str("service", "gocql-app").Logger() (value of type zerolog.Logger) as *zap.Logger value in assignment
Unit tests (1.23): example_structured_logging_test.go#L125
no new variables on left side of :=
Unit tests (1.23): example_structured_logging_test.go#L23
"fmt" imported and not used
Unit tests (1.22)
The operation was canceled.
Unit tests (1.22): example_vector_test.go#L169
session.Query("SELECT id, item_name, embedding FROM example.vectors WHERE id = ?", 1).ScanContext undefined (type *gocql.Query has no field or method ScanContext) (typecheck)
Unit tests (1.22): example_structured_logging_test.go#L148
undefined: gocqlzerolog.Wrap
Unit tests (1.22): example_structured_logging_test.go#L139
baseLogger.With().Str undefined (type *zap.Logger has no field or method Str)
Unit tests (1.22): example_structured_logging_test.go#L134
baseLogger.With().Str undefined (type *zap.Logger has no field or method Str)
Unit tests (1.22): example_structured_logging_test.go#L125
cannot use zerolog.New(os.Stdout).Level(zerolog.InfoLevel).With().Timestamp().Str("service", "gocql-app").Logger() (value of type zerolog.Logger) as *zap.Logger value in assignment
Unit tests (1.22): example_structured_logging_test.go#L125
no new variables on left side of :=
Unit tests (1.22): example_structured_logging_test.go#L23
"fmt" imported and not used
Unit tests (1.22)
The strategy configuration was canceled because "build._1_23" failed