Skip to content

feat(experimentation): add a Snowflake warehouse provider - #9078

Open
Zaimwa9 wants to merge 11 commits into
mainfrom
feat/snowflake-warehouse-provider
Open

Zaimwa9 wants to merge 11 commits into
mainfrom
feat/snowflake-warehouse-provider

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Stacked on #9008; includes #9007's commits until that merges.

  • Snowflake connections take a private key as credentials and validate config (account identifier as ORGNAME-ACCOUNTNAME, unquoted identifiers stored upper-case).
  • Verify runs DESCRIBE TABLE on the events table plus a read that needs the warehouse, and maps Snowflake error codes to user-facing messages.
  • Event names, event stats, exposure buckets and results are read through the SQL API with the Snowflake dialect, so no Snowflake operation is unsupported any more; experimentation/snowflake/events.sql defines the events table.

How did you test this code?

Unit tests (100% coverage of warehouses/snowflake.py), plus an API smoke against a real Snowflake account (validation, eight error cases, full connection lifecycle) with reads compared to the PostgreSQL query-test data set.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 27, 2026 10:54am UTC
flagsmith-frontend-preview Ignored Ignored Preview Nov 27, 2026 10:54am UTC
flagsmith-frontend-staging Ignored Ignored Preview Nov 27, 2026 10:54am UTC

Request Review

@github-actions github-actions Bot added api Issue related to the REST API docs Documentation updates feature New feature or request and removed docs Documentation updates labels Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.94%. Comparing base (add5187) to head (8ec1f1a).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #9078    +/-   ##
========================================
  Coverage   98.93%   98.94%            
========================================
  Files        1716     1716            
  Lines       73150    73375   +225     
========================================
+ Hits        72373    72598   +225     
  Misses        777      777            

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Zaimwa9
Zaimwa9 marked this pull request as ready for review November 24, 2026 10:52
@Zaimwa9
Zaimwa9 requested review from a team as code owners November 24, 2026 10:52
@Zaimwa9
Zaimwa9 requested review from khvn26 and removed request for a team November 24, 2026 10:52
@github-actions github-actions Bot removed the feature New feature or request label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-9078 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-9078 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9078 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9078 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9078 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9078 Finished ✅ Results ✅

@github-actions github-actions Bot added feature New feature or request and removed docs Documentation updates labels Nov 24, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread experimentation/snowflake/events.sql Resolved
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #23882 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  58.3 seconds
commit  8ec1f1a
info  🔄 Run: #23882 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23882 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  46.3 seconds
commit  8ec1f1a
info  🔄 Run: #23882 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23882 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  34.9 seconds
commit  8ec1f1a
info  🔄 Run: #23882 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23882 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.6 seconds
commit  8ec1f1a
info  🔄 Run: #23882 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23880 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  36.4 seconds
commit  04af387
info  🔄 Run: #23880 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23880 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  34.5 seconds
commit  04af387
info  🔄 Run: #23880 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23880 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  8 passed

Details

stats  8 tests across 6 suites
duration  48.8 seconds
commit  04af387
info  🔄 Run: #23880 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23880 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  17.7 seconds
commit  04af387
info  🔄 Run: #23880 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23873 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 5 suites
duration  54.1 seconds
commit  3e33666
info  🔄 Run: #23873 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23873 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  6 passed

Details

stats  6 tests across 6 suites
duration  33.8 seconds
commit  3e33666
info  🔄 Run: #23873 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23874 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.4 seconds
commit  11cf805
info  🔄 Run: #23874 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23873 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  34.7 seconds
commit  3e33666
info  🔄 Run: #23873 (attempt 1)

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

@Zaimwa9
Zaimwa9 requested review from gagantrivedi and removed request for khvn26 November 24, 2026 11:03
@Zaimwa9
Zaimwa9 force-pushed the feat/snowflake-statement-client branch from c11c569 to ed2a0c3 Compare November 24, 2026 16:06
@Zaimwa9
Zaimwa9 force-pushed the feat/snowflake-warehouse-provider branch from 855b09d to b16d465 Compare November 24, 2026 16:06
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 24, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds a Snowflake warehouse provider with private-key auth, verification, and SQL reads; the unresolved multi-partition result bug and unverified schema-default mismatch need human acceptance, as do the security/data-handling tradeoffs of the new integration.

Turn on auto-fix | Re-trigger cubic

… into feat/snowflake-warehouse-provider

# Conflicts:
#	api/experimentation/warehouses/snowflake.py
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 27, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds a Snowflake warehouse provider with private-key auth and SQL reads of customer event data; unresolved multi-partition and schema-default issues plus the new integration's security/data-handling tradeoffs require human sign-off.

Turn on auto-fix | Re-trigger cubic

Base automatically changed from feat/snowflake-statement-client to main November 27, 2026 10:02
…use-provider

# Conflicts:
#	api/experimentation/warehouses/snowflake.py
#	api/tests/unit/experimentation/conftest.py
#	api/tests/unit/experimentation/warehouses/test_snowflake.py
@github-actions github-actions Bot added docs Documentation updates feature New feature or request and removed feature New feature or request docs Documentation updates labels Nov 27, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 11 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds a Snowflake warehouse provider with private-key auth and SQL reads of customer event data, while moving usage telemetry to a daily 24h push. Security/data-handling and unresolved Snowflake result/schema issues require human sign-off.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

3 active (outdated) deployments
Preview – flagsmith-frontend-preview — 04af3875 Deployed Nov 27, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — 04af3875 Deployed Nov 27, 2026 by vercel[bot]
Preview – docs — 04af3875 Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants