Skip to content

Commit 69692ac

Browse files
authored
chore: bump rudder-transformer to v1.126.2 (#6774)
🔒 Scanned for secrets using gitleaks 8.30.0 # Description Bumping rudder-transformer version to get the new version of test scenarios. ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
1 parent 74125a6 commit 69692ac

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

backend-config/account_association.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (c *ConfigT) enrichDestinationWithAccounts(dest *DestinationT) {
9191
obskit.DestinationType(dest.DestinationDefinition.Name),
9292
)
9393
if !dest.Enabled {
94-
accountAssociationLogger.Infon("Skipping disabled destination from associating account")
94+
accountAssociationLogger.Debugn("Skipping disabled destination from associating account")
9595
return
9696
}
9797
// Check and set the delivery account if specified in the destination config

gateway/webhook/integration_test.go

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,25 @@ import (
4545
"github.com/rudderlabs/rudder-server/testhelper/backendconfigtest"
4646
)
4747

48+
func transformerModuleVersion(t *testing.T) string {
49+
t.Helper()
50+
goMod, err := os.ReadFile("../../go.mod")
51+
require.NoError(t, err, "failed to read go.mod")
52+
for line := range strings.SplitSeq(string(goMod), "\n") {
53+
line = strings.TrimSpace(line)
54+
if strings.HasPrefix(line, "github.com/rudderlabs/rudder-transformer/go ") {
55+
// version is like "v1.126.2-beta", strip "v" prefix and any pre-release suffix
56+
v := strings.TrimPrefix(strings.Fields(line)[1], "v")
57+
if i := strings.Index(v, "-"); i != -1 {
58+
v = v[:i]
59+
}
60+
return v
61+
}
62+
}
63+
t.Fatal("github.com/rudderlabs/rudder-transformer/go not found in go.mod")
64+
return ""
65+
}
66+
4867
func TestIntegrationWebhook(t *testing.T) {
4968
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT)
5069
ctx, cancel := context.WithTimeout(ctx, 3*time.Minute)
@@ -68,7 +87,7 @@ func TestIntegrationWebhook(t *testing.T) {
6887
})
6988

7089
g.Go(func() (err error) {
71-
transformerContainer, err = transformertest.Setup(pool, t)
90+
transformerContainer, err = transformertest.Setup(pool, t, transformertest.WithDockerImageTag(transformerModuleVersion(t)))
7291
if err != nil {
7392
return fmt.Errorf("starting transformer: %w", err)
7493
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ require (
8989
github.com/rudderlabs/rudder-go-kit v0.74.0
9090
github.com/rudderlabs/rudder-observability-kit v0.0.6
9191
github.com/rudderlabs/rudder-schemas v0.10.0
92-
github.com/rudderlabs/rudder-transformer/go v1.122.0
92+
github.com/rudderlabs/rudder-transformer/go v1.126.2-beta
9393
github.com/rudderlabs/sql-tunnels v0.1.7
9494
github.com/rudderlabs/sqlconnect-go v1.20.3
9595
github.com/samber/lo v1.52.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,8 @@ github.com/rudderlabs/rudder-observability-kit v0.0.6 h1:xIA/1Sp38B542EYzxR7qUfN
12111211
github.com/rudderlabs/rudder-observability-kit v0.0.6/go.mod h1:nR3GvY7HvuBaBqOKFfzLP9uYZu7OpzMqW2eeT2ikXtU=
12121212
github.com/rudderlabs/rudder-schemas v0.10.0 h1:OzhmoV3wIyZG4cH7RtixYEF23VwWaxyIGPKiVZ0XCT0=
12131213
github.com/rudderlabs/rudder-schemas v0.10.0/go.mod h1:mb7XxrdYj6iqz5GNbhv4cvmGjMGYgirpQnfm7WPXmyE=
1214-
github.com/rudderlabs/rudder-transformer/go v1.122.0 h1:XmCKiSbhj5SMRPPQzyXnx6RnP2FjPnZ4ARXGR4ByrPk=
1215-
github.com/rudderlabs/rudder-transformer/go v1.122.0/go.mod h1:3NGitPz4pYRRZ6Xt09S+8hb0tHK/9pZcKJ3OgOTaSmE=
1214+
github.com/rudderlabs/rudder-transformer/go v1.126.2-beta h1:HIu5s0RUFGNyQS5Z2tPIWyegkajFgPCTzOfK91gqt4Y=
1215+
github.com/rudderlabs/rudder-transformer/go v1.126.2-beta/go.mod h1:3NGitPz4pYRRZ6Xt09S+8hb0tHK/9pZcKJ3OgOTaSmE=
12161216
github.com/rudderlabs/sonnet v1.0.2 h1:nPfmDKD9gUwT571Dwtcsx0VIglSchvyNjuRLju4Xs3s=
12171217
github.com/rudderlabs/sonnet v1.0.2/go.mod h1:tjQmKEGAo/xwmhw9AwLkazP5b5m8VpUvWNzPSx4ve0g=
12181218
github.com/rudderlabs/sql-tunnels v0.1.7 h1:wDCRl6zY4M5gfWazf7XkSTGQS3yjBzUiUgEMBIfHNDA=

0 commit comments

Comments
 (0)