Skip to content

fix: remove source labels in repo query stats - #6483

Merged
achettyiitr merged 2 commits into
release/1.62.xfrom
fix.remove-source-labels-wh-query-stats
Nov 5, 2025
Merged

achettyiitr merged 2 commits into
release/1.62.xfrom
fix.remove-source-labels-wh-query-stats

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Nov 5, 2025 •

Copy link
Copy Markdown
Member

🔒 Scanned for secrets using gitleaks 8.28.0

Description

  • Remove sourceId labels from warehouse repo query stats.

Linear Ticket

  • Resolves INT-4323

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Note

Removes sourceId labels from warehouse repo query stats and downgrades a snowpipe streaming polling log line to debug.

  • Warehouse Repo (stats tags):
    • Drop sourceId from TimerStat tags across repos: load.go (Insert, DistinctTableName), schema.go (Insert, GetNamespace), source.go (Insert), staging.go (Insert, Pending, CountPendingForSource), staging_snapshot.go (Insert, GetLatest), table_upload.go (GetByJobRunTaskRun), upload.go (LastCreatedAt, GetLatestUploadInfo, RetryFailedBatches, GetSyncLatencies).
    • Update tests in warehouse/internal/repo/repo_test.go to align with removed sourceId tags.
  • Snowpipe Streaming:
    • Change polling log for in-progress flushing from Infon to Debugn in snowpipestreaming.go.

Written by Cursor Bugbot for commit 4bdd695. This will update automatically on new commits. Configure here.

🔒 Scanned for secrets using gitleaks 8.28.0
@achettyiitr
achettyiitr force-pushed the fix.remove-source-labels-wh-query-stats branch from c50c37c to 388b4b2 Compare November 5, 2025 10:36
Comment thread warehouse/internal/repo/staging.go Resolved
@codecov

codecov Bot commented Nov 5, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.23%. Comparing base (aa8438c) to head (4bdd695).
⚠️ Report is 1 commits behind head on release/1.62.x.

Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.62.x    #6483      +/-   ##
==================================================
- Coverage           79.29%   79.23%   -0.06%     
==================================================
  Files                 529      529              
  Lines               59350    59333      -17     
==================================================
- Hits                47060    47011      -49     
- Misses               9479     9503      +24     
- Partials             2811     2819       +8     

☔ View full report in Codecov by Sentry.
📢 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.

🔒 Scanned for secrets using gitleaks 8.28.0
@achettyiitr
achettyiitr merged commit cced7ae into release/1.62.x Nov 5, 2025
@achettyiitr
achettyiitr deleted the fix.remove-source-labels-wh-query-stats branch November 5, 2025 11:52
achettyiitr pushed a commit that referenced this pull request Nov 6, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.2](v1.62.1...v1.62.2)
(2025-11-05)


### Bug Fixes

* remove source labels in repo query stats
([#6483](#6483))
([cced7ae](cced7ae))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
achettyiitr added a commit that referenced this pull request Nov 6, 2025
# Description

Syncing patch release v1.62.2 to main branch

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

BEGIN_COMMIT_OVERRIDE
fix: max procs defaults (#6473)
fix: remove source labels in repo query stats (#6483)
END_COMMIT_OVERRIDE

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Removes `sourceId` labels from warehouse repo query stats and lowers a
Snowpipe polling log to debug.
> 
> - **Warehouse Repo Stats**:
> - Remove `sourceId` label from `TimerStat` tags across `load.go`,
`schema.go`, `source.go`, `staging.go`, `staging_snapshot.go`,
`table_upload.go`, and `upload.go` (tests updated accordingly in
`repo_test.go`).
> - **Snowpipe Streaming**:
> - Lower polling message log level from info to debug in
`router/batchrouter/asyncdestinationmanager/snowpipestreaming/snowpipestreaming.go`.
> - **Changelog**:
> - Add `v1.62.2` with bug fix entry for removing source labels in repo
query stats.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
211910e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Francesco Casula <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
This was referenced Nov 11, 2025
itsmihir pushed a commit that referenced this pull request Nov 11, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.63.0-rc.1](v1.62.0...v1.63.0-rc.1)
(2025-11-11)


### Features

* **router:** dynamic sizing of worker job buffers
([#6463](#6463))
([5b2e519](5b2e519))


### Bug Fixes

* max procs defaults
([#6473](#6473))
([48f9cfd](48f9cfd))
* max procs defaults
([#6473](#6473))
([3d2026c](3d2026c))
* pending batch router jobs for disabled destinations are not being
aborted
([#6477](#6477))
([8effa78](8effa78))
* remove source labels in repo query stats
([#6483](#6483))
([48f9cfd](48f9cfd))
* use type field from payload to check if event is blocked
([#6487](#6487))
([5ba053f](5ba053f))


### Miscellaneous

* apply security best practices from step security
([#6462](#6462))
([a860128](a860128))
* emit filtered metrics from all non-ut stages and clean up diff metrics
([#6485](#6485))
([399c4c6](399c4c6))
* refactor processor to move archival in a preprocess stage
([#6470](#6470))
([8634c3f](8634c3f))
* remove oauth status toggling
([#6492](#6492))
([45e5dba](45e5dba))
* sync release v1.62.0 to main branch
([#6472](#6472))
([65db4ee](65db4ee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
itsmihir pushed a commit that referenced this pull request Nov 12, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.63.0](v1.62.0...v1.63.0)
(2025-11-11)


### Features

* **router:** dynamic sizing of worker job buffers
([#6463](#6463))
([5b2e519](5b2e519))


### Bug Fixes

* max procs defaults
([#6473](#6473))
([48f9cfd](48f9cfd))
* max procs defaults
([#6473](#6473))
([3d2026c](3d2026c))
* pending batch router jobs for disabled destinations are not being
aborted
([#6477](#6477))
([8effa78](8effa78))
* remove source labels in repo query stats
([#6483](#6483))
([48f9cfd](48f9cfd))
* use type field from payload to check if event is blocked
([#6487](#6487))
([5ba053f](5ba053f))


### Miscellaneous

* apply security best practices from step security
([#6462](#6462))
([a860128](a860128))
* emit filtered metrics from all non-ut stages and clean up diff metrics
([#6485](#6485))
([399c4c6](399c4c6))
* refactor processor to move archival in a preprocess stage
([#6470](#6470))
([8634c3f](8634c3f))
* remove oauth status toggling
([#6492](#6492))
([45e5dba](45e5dba))
* sync release v1.62.0 to main branch
([#6472](#6472))
([65db4ee](65db4ee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

3 participants