Skip to content

fix(warehouse): intermittent failures in bigquery integration test partition listing - #6862

Merged
atzoum merged 2 commits into
masterfrom
fix/bigquery-flaky-partitions-test
Apr 9, 2026
Merged

atzoum merged 2 commits into
masterfrom
fix/bigquery-flaky-partitions-test

Conversation

@atzoum

@atzoum atzoum commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes two intermittent failures in the BigQuery integration test caused by transient rudder_staging_users_* tables:

  1. listPartitions: The query against INFORMATION_SCHEMA.PARTITIONS included staging tables. When a staging table has a NULL partition_id, the type assertion row[1].(string) returns false, causing require.True to fail. Fixed by adding WHERE table_name NOT LIKE 'rudder_staging_%' to the query.

  2. list (used by listTables): Iterates all tables and calls Metadata() on each. When a staging table is dropped by concurrent cleanup between listing and the Metadata() call, a 404 error fails the test. Fixed by skipping tables that return 404 during metadata fetch.

Both are consistent with how the production FetchSchema (bigquery.go:967) handles staging tables.

Linear Ticket

N/A

Security

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

@atzoum atzoum changed the title fix(warehouse): filter staging tables in BigQuery integration test partition listing fix(warehouse): intermittent failures in bigquery integration test partition listing Apr 9, 2026
…rtition listing

The listPartitions query fetches all rows from INFORMATION_SCHEMA.PARTITIONS
without filtering staging tables. When a rudder_staging_users_* table has a
NULL partition_id, the type assertion row[1].(string) returns false, causing
require.True to fail intermittently.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum force-pushed the fix/bigquery-flaky-partitions-test branch from ef59b82 to 20b96a8 Compare April 9, 2026 12:51
@atzoum
atzoum requested a review from achettyiitr April 9, 2026 12:51
The list function iterates all tables and fetches metadata for each.
When a rudder_staging_users_* table is dropped by concurrent cleanup
between listing and the Metadata() call, a 404 error causes the test
to fail. Skip tables that return 404 during metadata fetch.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@atzoum
atzoum merged commit f0bdc52 into master Apr 9, 2026
70 checks passed
@atzoum
atzoum deleted the fix/bigquery-flaky-partitions-test branch April 9, 2026 13:25
@codecov

codecov Bot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.65%. Comparing base (8526e45) to head (1d3240a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6862      +/-   ##
==========================================
- Coverage   80.06%   79.65%   -0.42%     
==========================================
  Files         565      565              
  Lines       63308    63308              
==========================================
- Hits        50685    50425     -260     
- Misses       9640     9900     +260     
  Partials     2983     2983              

☔ 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.

itsmihir pushed a commit that referenced this pull request Apr 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.73.0-rc.1](v1.72.0...v1.73.0-rc.1)
(2026-04-13)


### Bug Fixes

* blacklist uts by transformation id
([#6832](#6832))
([a78fa93](a78fa93))
* **warehouse:** intermittent failures in bigquery integration test
partition listing
([#6862](#6862))
([f0bdc52](f0bdc52))
* **warehouse:** intermittent failures in bigquery integration test
schema verification
([#6858](#6858))
([8244315](8244315))


### Miscellaneous

* add dependabot cooldown
([#6842](#6842))
([8a96763](8a96763))
* apply security best practices from step security
([#6746](#6746))
([ec4390d](ec4390d))
* change release to 1.73.0
([370bbdb](370bbdb))
* **deps:** bump actions/checkout from 4.3.0 to 6.0.2
([#6848](#6848))
([f393a5f](f393a5f))
* **deps:** bump actions/create-github-app-token from 2.1.4 to 3.0.0
([#6845](#6845))
([7b5bd0f](7b5bd0f))
* **deps:** bump actions/download-artifact from 4.3.0 to 8.0.1
([#6849](#6849))
([3d0c5f5](3d0c5f5))
* **deps:** bump actions/setup-go from 5.5.0 to 6.4.0
([#6831](#6831))
([f4d7c78](f4d7c78))
* **deps:** bump actions/stale from 9.1.0 to 10.2.0
([#6805](#6805))
([fe697e3](fe697e3))
* **deps:** bump actions/upload-artifact from 4.6.2 to 7.0.0
([#6847](#6847))
([8cc34b8](8cc34b8))
* **deps:** bump codecov/codecov-action from 5.5.1 to 6.0.0
([#6830](#6830))
([667d363](667d363))
* **deps:** bump docker/login-action from 3.4.0 to 4.0.0
([#6808](#6808))
([fdd16b5](fdd16b5))
* **deps:** bump docker/metadata-action from 5.9.0 to 6.0.0
([#6851](#6851))
([766203b](766203b))
* **deps:** bump docker/setup-buildx-action from 3.11.1 to 4.0.0
([#6806](#6806))
([1ac9e51](1ac9e51))
* **deps:** bump github.com/evanphx/json-patch from 0.5.2 to
5.9.11+incompatible
([#6853](#6853))
([8526e45](8526e45))
* **deps:** bump go dependencies
([#6816](#6816))
([5630ae4](5630ae4))
* **deps:** bump slackapi/slack-github-action from 1.26.0 to 3.0.1
([#6846](#6846))
([b16d1f7](b16d1f7))
* **deps:** bump the go-deps group across 1 directory with 8 updates
([#6859](#6859))
([29c7c59](29c7c59))
* dispatch release events to operator/devops after image builds complete
([#6827](#6827))
([c9c0dde](c9c0dde))
* remove rsources_failed_keys migration and unused code
([#6837](#6837))
([9460873](9460873))
* **router:** kafka destination performance improvement
([#6836](#6836))
([90cbb45](90cbb45))
* sync release v1.72.0 to main branch
([#6829](#6829))
([cd13f36](cd13f36))
* update openfaas-flask ecr repo
([#6828](#6828))
([3aa2485](3aa2485))

---
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>
itsmihir pushed a commit that referenced this pull request Apr 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.73.0](v1.72.0...v1.73.0)
(2026-04-13)


### Bug Fixes

* blacklist uts by transformation id
([#6832](#6832))
([a78fa93](a78fa93))
* **warehouse:** intermittent failures in bigquery integration test
partition listing
([#6862](#6862))
([f0bdc52](f0bdc52))
* **warehouse:** intermittent failures in bigquery integration test
schema verification
([#6858](#6858))
([8244315](8244315))


### Miscellaneous

* add dependabot cooldown
([#6842](#6842))
([8a96763](8a96763))
* apply security best practices from step security
([#6746](#6746))
([ec4390d](ec4390d))
* change release to 1.73.0
([370bbdb](370bbdb))
* **deps:** bump actions/checkout from 4.3.0 to 6.0.2
([#6848](#6848))
([f393a5f](f393a5f))
* **deps:** bump actions/create-github-app-token from 2.1.4 to 3.0.0
([#6845](#6845))
([7b5bd0f](7b5bd0f))
* **deps:** bump actions/download-artifact from 4.3.0 to 8.0.1
([#6849](#6849))
([3d0c5f5](3d0c5f5))
* **deps:** bump actions/setup-go from 5.5.0 to 6.4.0
([#6831](#6831))
([f4d7c78](f4d7c78))
* **deps:** bump actions/stale from 9.1.0 to 10.2.0
([#6805](#6805))
([fe697e3](fe697e3))
* **deps:** bump actions/upload-artifact from 4.6.2 to 7.0.0
([#6847](#6847))
([8cc34b8](8cc34b8))
* **deps:** bump codecov/codecov-action from 5.5.1 to 6.0.0
([#6830](#6830))
([667d363](667d363))
* **deps:** bump docker/login-action from 3.4.0 to 4.0.0
([#6808](#6808))
([fdd16b5](fdd16b5))
* **deps:** bump docker/metadata-action from 5.9.0 to 6.0.0
([#6851](#6851))
([766203b](766203b))
* **deps:** bump docker/setup-buildx-action from 3.11.1 to 4.0.0
([#6806](#6806))
([1ac9e51](1ac9e51))
* **deps:** bump github.com/evanphx/json-patch from 0.5.2 to
5.9.11+incompatible
([#6853](#6853))
([8526e45](8526e45))
* **deps:** bump go dependencies
([#6816](#6816))
([5630ae4](5630ae4))
* **deps:** bump slackapi/slack-github-action from 1.26.0 to 3.0.1
([#6846](#6846))
([b16d1f7](b16d1f7))
* **deps:** bump the go-deps group across 1 directory with 8 updates
([#6859](#6859))
([29c7c59](29c7c59))
* dispatch release events to operator/devops after image builds complete
([#6827](#6827))
([c9c0dde](c9c0dde))
* remove rsources_failed_keys migration and unused code
([#6837](#6837))
([9460873](9460873))
* **router:** kafka destination performance improvement
([#6836](#6836))
([90cbb45](90cbb45))
* sync release v1.72.0 to main branch
([#6829](#6829))
([cd13f36](cd13f36))
* update openfaas-flask ecr repo
([#6828](#6828))
([3aa2485](3aa2485))

---
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>
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