Skip to content

TestFixedAddressTranslator index out of range #8294

@jpds

Description

@jpds

Actual Behavior

The tests for 1.28.1 fail with this index out of range error (edit: also verified that this happens on master with Go 1.25.0):

$ nix-build -A temporal
this derivation will be built:
  /nix/store/6m05da84v48da31w1rrny70mxkrlcwyp-temporal-1.28.1.drv
these 3 paths will be fetched (74.82 MiB download, 530.78 MiB unpacked):
  /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6
  /nix/store/504v301gh8iaz29cih9y0xkcgbbnp3w3-source
  /nix/store/hcdf04mgvypa9b598rncy4h4k6wz9cal-temporal-1.28.1-go-modules
copying path '/nix/store/504v301gh8iaz29cih9y0xkcgbbnp3w3-source' from 'https://cache.nixos.org'...
copying path '/nix/store/hcdf04mgvypa9b598rncy4h4k6wz9cal-temporal-1.28.1-go-modules' from 'https://cache.nixos.org'...
copying path '/nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6' from 'https://cache.nixos.org'...
building '/nix/store/6m05da84v48da31w1rrny70mxkrlcwyp-temporal-1.28.1.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/504v301gh8iaz29cih9y0xkcgbbnp3w3-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Running phase: buildPhase
Building subPackage ./api/adminservice/v1
...
Building subPackage ./tools/tests
buildPhase completed in 3 minutes 36 seconds
Running phase: checkPhase
ok      go.temporal.io/server/chasm     0.042s
ok      go.temporal.io/server/client/history    0.935s
?       go.temporal.io/server/client/history/historytest        [no test files]
ok      go.temporal.io/server/client/matching   0.009s
ok      go.temporal.io/server/cmd/tools/genrpcserverinterceptors        0.007s
ok      go.temporal.io/server/common    0.015s
ok      go.temporal.io/server/common/aggregate  0.003s [no tests to run]
ok      go.temporal.io/server/common/api        0.007s
ok      go.temporal.io/server/common/archiver   0.057s
ok      go.temporal.io/server/common/archiver/filestore 0.027s
ok      go.temporal.io/server/common/archiver/gcloud    0.035s
ok      go.temporal.io/server/common/archiver/gcloud/connector  0.031s
ok      go.temporal.io/server/common/archiver/s3store   0.037s
ok      go.temporal.io/server/common/auth       0.047s
ok      go.temporal.io/server/common/authorization      2.802s
ok      go.temporal.io/server/common/backoff    2.397s
ok      go.temporal.io/server/common/cache      0.033s
ok      go.temporal.io/server/common/checksum   0.013s
ok      go.temporal.io/server/common/circuitbreaker     0.013s
ok      go.temporal.io/server/common/clock      0.010s
ok      go.temporal.io/server/common/clock/hybrid_logical_clock 0.004s
ok      go.temporal.io/server/common/cluster    0.013s
ok      go.temporal.io/server/common/codec      0.009s
ok      go.temporal.io/server/common/codec/gob  0.004s
ok      go.temporal.io/server/common/collection 0.352s
ok      go.temporal.io/server/common/config     0.024s
ok      go.temporal.io/server/common/deadlock   0.026s
ok      go.temporal.io/server/common/definition 0.005s
ok      go.temporal.io/server/common/dynamicconfig      0.060s
ok      go.temporal.io/server/common/effect     0.003s
ok      go.temporal.io/server/common/failure    0.005s
ok      go.temporal.io/server/common/finalizer  0.115s
ok      go.temporal.io/server/common/future     0.026s
ok      go.temporal.io/server/common/goro       0.017s
ok      go.temporal.io/server/common/headers    0.008s
ok      go.temporal.io/server/common/locks      1.447s
ok      go.temporal.io/server/common/log        0.009s
ok      go.temporal.io/server/common/log/tag    0.005s
ok      go.temporal.io/server/common/masker     0.004s
ok      go.temporal.io/server/common/membership 0.011s
ok      go.temporal.io/server/common/membership/ringpop 28.143s
ok      go.temporal.io/server/common/metrics    0.228s
ok      go.temporal.io/server/common/metrics/metricstest        0.011s
ok      go.temporal.io/server/common/metrics/tally/statsd       0.004s
ok      go.temporal.io/server/common/namespace  0.011s
ok      go.temporal.io/server/common/namespace/nsmanager        0.012s
ok      go.temporal.io/server/common/namespace/nsregistry       2.028s
ok      go.temporal.io/server/common/namespace/nsreplication    0.018s
ok      go.temporal.io/server/common/nexus      0.221s
ok      go.temporal.io/server/common/number     0.004s
ok      go.temporal.io/server/common/payload    0.006s
ok      go.temporal.io/server/common/payloads   0.006s
ok      go.temporal.io/server/common/persistence        0.165s
ok      go.temporal.io/server/common/persistence/cassandra      0.022s
ok      go.temporal.io/server/common/persistence/client 6.029s
ok      go.temporal.io/server/common/persistence/faultinjection 0.021s
ok      go.temporal.io/server/common/persistence/nosql/nosqlplugin/cassandra/gocql      0.021s
--- FAIL: TestSessionTestSuite (0.00s)
    --- FAIL: TestSessionTestSuite/TestFixedAddressTranslator (0.00s)
        panic.go:115: test panicked: runtime error: index out of range [0] with length 0
            goroutine 12 [running]:
            runtime/debug.Stack()
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/runtime/debug/stack.go:26 +0x5e
            github.com/stretchr/testify/suite.failOnPanic(0xc000655880, {0x12dfe60, 0xc00014e438})
                /build/source/vendor/github.com/stretchr/testify/suite/suite.go:89 +0x37
            github.com/stretchr/testify/suite.Run.func1.1()
                /build/source/vendor/github.com/stretchr/testify/suite/suite.go:188 +0x299
            panic({0x12dfe60?, 0xc00014e438?})
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/runtime/panic.go:792 +0x132
            go.temporal.io/server/common/persistence/nosql/nosqlplugin/cassandra/translator.(*fixedTranslatorPluginTestSuite).TestFixedAddressTranslator(0xc0007a41e0)
                /build/source/common/persistence/nosql/nosqlplugin/cassandra/translator/fixed_address_translator_test.go:55 +0x3e5
            reflect.Value.call({0xc00061b940?, 0xc000622d50?, 0x7fffb113c6a8?}, {0x13c0088, 0x4}, {0xc000634f28, 0x1, 0x11848a0?})
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/reflect/value.go:584 +0xca6
            reflect.Value.Call({0xc00061b940?, 0xc000622d50?, 0x1def560?}, {0xc000634f28?, 0xf?, 0x0?})
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/reflect/value.go:368 +0xb9
            github.com/stretchr/testify/suite.Run.func1(0xc000655880)
                /build/source/vendor/github.com/stretchr/testify/suite/suite.go:202 +0x476
            testing.tRunner(0xc000655880, 0xc0005b6120)
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/testing/testing.go:1792 +0xf4
            created by testing.(*T).Run in goroutine 11
                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/testing/testing.go:1851 +0x413
FAIL
FAIL    go.temporal.io/server/common/persistence/nosql/nosqlplugin/cassandra/translator 0.020s
FAIL
error: builder for '/nix/store/6m05da84v48da31w1rrny70mxkrlcwyp-temporal-1.28.1.drv' failed with exit code 1;
       last 25 log lines:
       >         panic.go:115: test panicked: runtime error: index out of range [0] with length 0
       >             goroutine 12 [running]:
       >             runtime/debug.Stack()
       >                   /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/runtime/debug/stack.go:26 +0x5e
       >             github.com/stretchr/testify/suite.failOnPanic(0xc000655880, {0x12dfe60, 0xc00014e438})
       >                   /build/source/vendor/github.com/stretchr/testify/suite/suite.go:89 +0x37
       >             github.com/stretchr/testify/suite.Run.func1.1()
       >                    /build/source/vendor/github.com/stretchr/testify/suite/suite.go:188 +0x299
       >             panic({0x12dfe60?, 0xc00014e438?})
       >               /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/runtime/panic.go:792 +0x132
       >             go.temporal.io/server/common/persistence/nosql/nosqlplugin/cassandra/translator.(*fixedTranslatorPluginTestSuite).TestFixedAddressTranslator(0xc0007a41e0)
       >                   /build/source/common/persistence/nosql/nosqlplugin/cassandra/translator/fixed_address_translator_test.go:55 +0x3e5
       >             reflect.Value.call({0xc00061b940?, 0xc000622d50?, 0x7fffb113c6a8?}, {0x13c0088, 0x4}, {0xc000634f28, 0x1, 0x11848a0?})
       >                   /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/reflect/value.go:584 +0xca6
       >             reflect.Value.Call({0xc00061b940?, 0xc000622d50?, 0x1def560?}, {0xc000634f28?, 0xf?, 0x0?})
       >                  /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/reflect/value.go:368 +0xb9
       >             github.com/stretchr/testify/suite.Run.func1(0xc000655880)
       >                     /build/source/vendor/github.com/stretchr/testify/suite/suite.go:202 +0x476
       >             testing.tRunner(0xc000655880, 0xc0005b6120)
       >              /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/testing/testing.go:1792 +0xf4
       >             created by testing.(*T).Run in goroutine 11
       >                /nix/store/g026m2zmhiah7izdmmvgsq847z2sh1h1-go-1.24.6/share/go/src/testing/testing.go:1851 +0x413
       > FAIL
       > FAIL     go.temporal.io/server/common/persistence/nosql/nosqlplugin/cassandra/translator 0.020s
       > FAIL
       For full logs, run:
         nix log /nix/store/6m05da84v48da31w1rrny70mxkrlcwyp-temporal-1.28.1.drv

Specifications

  • Version: 1.28.1
  • Platform: NixOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions