Skip to content

chore: sync release v1.92.1 to main branch - #7544

Merged
achettyiitr merged 2 commits into
masterfrom
sync-release-fe33709ab44daa4345c1f1a3a4a07cbf1d251972
Oct 28, 2026
Merged

achettyiitr merged 2 commits into
masterfrom
sync-release-fe33709ab44daa4345c1f1a3a4a07cbf1d251972

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

Description

Syncing patch release v1.92.1 to main branch

↓↓ Please review and edit commit overrides before merging ↓↓

BEGIN_COMMIT_OVERRIDE
fix(warehouse): migrate snowflake to gosnowflake v2.3.0 (#7542)
END_COMMIT_OVERRIDE

rudder-devbox Bot and others added 2 commits October 28, 2026 16:26
# Description
Base this Snowflake driver migration directly on `release/1.92.x`. This
branch contains only the migration and the `sqlconnect-go v1.36.0`
release bump.

Replace rudder-server's direct v1 driver error assertion with
`snowflakequery.Describe` in the same change as the sqlconnect-go bump.
Keep the existing `42601` and nil-error outcomes. Remove the direct
gosnowflake v1 import and requirement.

Keep `exclude github.com/snowflakedb/gosnowflake v1.6.19`:
`golang-migrate v4.20.1` declares that old driver for its unused
Snowflake adapter. Without the exclusion, `go list -m all` selects
v1.6.19 alongside `/v2`; with it, the graph contains only gosnowflake/v2
v2.3.0.

## Linear Ticket
[INT-7456](https://linear.app/rudderstack/issue/INT-7456)

## Validation
- `make fmt` passed; the diff against `release/1.92.x` contains only
`go.mod`, `go.sum`, and `warehouse/integrations/snowflake/snowflake.go`.
- `SLOW=0 go test -count=1 ./warehouse/integrations/snowflake` passed
(`ok .../snowflake 0.127s`); live integration skipped.
- `go build -p 1 ./...`, `go vet -p 1 ./...`, `go mod tidy -diff`, and
`git diff --check` passed.
- `go list -m all` shows `sqlconnect-go v1.36.0` and only
`github.com/snowflakedb/gosnowflake/v2 v2.3.0`.
- `make lint`: golangci-lint reported 0 issues, but the target failed at
gitleaks on 197 findings in the release branch's existing history. A
gitleaks scan of the two migration commits found no leaks.

## Remaining validation
- The credentialed Snowflake integration run requires `SLOW=1` and
`SNOWFLAKE_INTEGRATION_TEST_CREDENTIALS`; live duplicate-column behavior
remains unverified here.
- Smoke-test the production runtime image and rescan built images
against the customer advisories after merge.

---------

Co-authored-by: tech-infra-rudderstack <[email protected]>
🤖 I have created a release *beep* *boop*
---


##
[1.92.1](v1.92.0...v1.92.1)
(2026-10-28)


### Bug Fixes

* **warehouse:** migrate snowflake to gosnowflake v2.3.0
([#7542](#7542))
([7d33b66](7d33b66))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 10:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The switch to snowflakequery.Describe lacks credential-free regression tests confirming duplicate-column suppression without ignoring other errors.

1 open issue
What changed in this PR

Syncs patch release v1.92.1 to main, bringing the Snowflake driver migration from #7542 into the warehouse integration.

Changes:

  • Upgrades sqlconnect-go to v1.36.0 and adopts gosnowflake/v2 v2.3.0.
  • Replaces the direct driver error assertion with snowflakequery.Describe, retaining the SQLSTATE 42601 and nil-error outcomes.
  • Records the release and excludes the legacy driver version required by golang-migrate’s unused Snowflake adapter.
File Description
warehouse/​integrations/​snowflake/​snowflake.go Uses the driver-independent Snowflake error classifier.
go.sum Updates checksums for the migrated dependencies.
go.mod Updates dependencies and excludes the legacy Snowflake driver version.
CHANGELOG.md Adds the v1.92.1 release entry.

Review effort: Balanced

if err != nil {
// TODO: throw error if column already exists but of different type
if e, ok := errors.AsType[*snowflake.SnowflakeError](err); ok && e.SQLState == "42601" {
if details, ok := snowflakequery.Describe(err); ok && details.SQLState == "42601" {
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.27%. Comparing base (4bf0ddc) to head (fe33709).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
warehouse/integrations/snowflake/snowflake.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7544      +/-   ##
==========================================
+ Coverage   85.24%   85.27%   +0.02%     
==========================================
  Files         631      631              
  Lines       63010    63063      +53     
==========================================
+ Hits        53713    53776      +63     
+ Misses       9294     9284      -10     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achettyiitr
achettyiitr merged commit cc09426 into master Oct 28, 2026
138 checks passed
@achettyiitr
achettyiitr deleted the sync-release-fe33709ab44daa4345c1f1a3a4a07cbf1d251972 branch October 28, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants