diff --git a/Dockerfile.packaging b/Dockerfile.packaging index 1f3812b85..41ac23eb5 100644 --- a/Dockerfile.packaging +++ b/Dockerfile.packaging @@ -1,4 +1,4 @@ -FROM golang:1.23-bullseye +FROM golang:1.25.9-bookworm RUN apt-get update RUN apt-get install -y ruby ruby-dev rubygems build-essential diff --git a/Dockerfile.test b/Dockerfile.test index b4e95d98b..562308d8e 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -1,4 +1,4 @@ -FROM golang:1.23-bullseye +FROM golang:1.25.9-bookworm LABEL maintainer="github@github.com" RUN apt-get update @@ -8,4 +8,4 @@ RUN rm -rf /var/lib/apt/lists/* COPY . /go/src/github.com/github/gh-ost WORKDIR /go/src/github.com/github/gh-ost -CMD ["script/test"] +CMD ["script/test", "-short=1"] diff --git a/go.mod b/go.mod index 0cca873cf..ae6138d7a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/github/gh-ost -go 1.23.0 +go 1.25.9 require ( github.com/go-ini/ini v1.67.0 diff --git a/go/logic/applier_test.go b/go/logic/applier_test.go index 5104a07c1..6d7ba42f4 100644 --- a/go/logic/applier_test.go +++ b/go/logic/applier_test.go @@ -1543,5 +1543,8 @@ func (suite *ApplierTestSuite) TestMultipleDMLEventsInBatch() { } func TestApplier(t *testing.T) { + if testing.Short() { + t.Skip("skipping applier test suite in short mode") + } suite.Run(t, new(ApplierTestSuite)) } diff --git a/go/logic/migrator_test.go b/go/logic/migrator_test.go index 0b05d58a3..7a1bcb48f 100644 --- a/go/logic/migrator_test.go +++ b/go/logic/migrator_test.go @@ -1095,6 +1095,9 @@ func (suite *MigratorTestSuite) TestRevert() { } func TestMigrator(t *testing.T) { + if testing.Short() { + t.Skip("skipping migrator test suite in short mode") + } suite.Run(t, new(MigratorTestSuite)) } diff --git a/go/logic/streamer_test.go b/go/logic/streamer_test.go index c1b5c5a9b..d27f3c7a2 100644 --- a/go/logic/streamer_test.go +++ b/go/logic/streamer_test.go @@ -258,5 +258,8 @@ func (suite *EventsStreamerTestSuite) TestStreamEventsAutomaticallyReconnects() } func TestEventsStreamer(t *testing.T) { + if testing.Short() { + t.Skip("skipping events streamer test suite in short mode") + } suite.Run(t, new(EventsStreamerTestSuite)) } diff --git a/script/ensure-go-installed b/script/ensure-go-installed index 3ed35c058..917f7a433 100755 --- a/script/ensure-go-installed +++ b/script/ensure-go-installed @@ -1,13 +1,13 @@ #!/bin/bash -PREFERRED_GO_VERSION=go1.23.0 +PREFERRED_GO_VERSION=go1.25.9 SUPPORTED_GO_VERSIONS='go1.2[012345]' GO_PKG_DARWIN=${PREFERRED_GO_VERSION}.darwin-amd64.pkg -GO_PKG_DARWIN_SHA=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +GO_PKG_DARWIN_SHA=2254498b78a9bf81188e9daca5573df68ca04e5a67cbd508461b3f37506cef83 GO_PKG_LINUX=${PREFERRED_GO_VERSION}.linux-amd64.tar.gz -GO_PKG_LINUX_SHA=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +GO_PKG_LINUX_SHA=00859d7bd6defe8bf84d9db9e57b9a4467b2887c18cd93ae7460e713db774bc1 export ROOTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd $ROOTDIR @@ -35,7 +35,7 @@ if [ -z "$(which go)" ] || [ -z "$(go version | grep "$SUPPORTED_GO_VERSIONS")" curl -L -O https://dl.google.com/go/$GO_PKG_DARWIN shasum -a256 $GO_PKG_DARWIN | grep $GO_PKG_DARWIN_SHA xar -xf $GO_PKG_DARWIN - cpio -i