Skip to content

feat(warehouse): add Microsoft Fabric destination - #7441

Merged
shekhar-rudder merged 27 commits into
masterfrom
harness/INT-7234-feat-warehouse-add-microsoft-fa-12daea3a
Oct 9, 2026
Merged

shekhar-rudder merged 27 commits into
masterfrom
harness/INT-7234-feat-warehouse-add-microsoft-fa-12daea3a

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Description

Implement Microsoft Fabric Warehouse as a new MICROSOFT_FABRIC event-stream destination.

  • Register Fabric across warehouse configuration, manager factories, batch routing, Parquet generation, transformer types, and reserved-keyword handling.
  • Add Entra service-principal SQL authentication and the required Fabric REST bootstrap with successful-result caching.
  • Add a server-local OneLake file manager with upload, download, delete, paginated listing, path validation, and storage-scoped authentication.
  • Add Fabric SQL schema management, Parquet COPY INTO, append-safe direct loads, staging-table merge loads, and latest-traits users behavior.
  • Route validation, cleanup, slave upload, downloader, and gRPC object-storage paths through a destination-aware file-manager resolver.
  • Add focused unit, resolver, encoding, validation, registration, authentication, and SQL behavior tests, plus warehouse CI matrix registration.

Linear Ticket

RUD-3169

Security

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

Credential-bearing errors avoid tokens, secrets, authorization headers, connection strings, complete SQL payloads, and unredacted OneLake locations. OneLake paths reject traversal and locations outside the configured Lakehouse.

Validation

  • make fmt — passed
  • make build — passed
  • Focused unit tests for Fabric, OneLake, resolver, encoding, utilities, configuration, API, router, downloader, validation, slave compilation, and embedded transformer packages — passed
  • go test -race -count 1 ./warehouse/integrations/microsoft-fabric/... ./warehouse/internal/filemanagerresolver — passed
  • go mod tidy -diff — passed with no diff
  • go run .github/tools/matrixchecker/main.go — passed
  • git diff --check — passed
  • make lint — golangci-lint reported 0 issues; actionlint passed
  • Inner verification command go test -count=1 ./warehouse/integrations/microsoft-fabric ./warehouse/integrations/config ./warehouse/internal/filemanagerresolver ./warehouse/encoding ./warehouse/validations ./warehouse/utils ./warehouse/router ./warehouse/api ./warehouse/slave ./warehouse/internal/service/loadfiles/downloader exited 1: Fabric/config/resolver/encoding/utils/router/API/downloader packages passed; validations and slave hit environmental S3 setup failures. Runtime integration status: skipped because rudder-server is SHA-pinned and not source-verifiable in the local stack.

⚠️ Known Issues

  • make lint ultimately fails in gitleaks after reporting 38 findings already present in the baseline repository scan; this change does not introduce credentials.
  • The inner verifier's combined targeted Go command exited 1 in warehouse/validations and warehouse/slave because the environment could not initialize custom S3 Root CAs and had no downloader storage bucket configured; Fabric-specific and resolver packages passed.
  • Live Fabric tenant verification remains mandatory for OneLake CRUD, end-to-end loading, schema evolution, append/merge/users behavior, and especially the release-blocking Parquet column-name/COPY INTO column-list Part F scenarios.
  • OneLake download options currently fall back to complete-object downloads because go-kit's DownloadOption state is package-private.

⚠️ Auto-review unresolved

Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.

  • high: Long table names generate non-unique Fabric staging table names — warehouse/integrations/microsoft-fabric/microsoft_fabric.go:386 — not auto-fixed (iteration budget exhausted)
  • high: Microsoft Fabric is enabled without the required beta rollout gate — warehouse/utils/utils.go:134 — not auto-fixed (iteration budget exhausted)
  • medium: Fabric loads always report zero inserted or updated rows — warehouse/integrations/microsoft-fabric/microsoft_fabric.go:486 — not auto-fixed (iteration budget exhausted)
  • medium: OneLake ListFilesWithPrefix uses non-standard prefix semantics and double-prefixes shared callers — warehouse/integrations/microsoft-fabric/onelake/onelake.go:383 — not auto-fixed (iteration budget exhausted)
  • medium: Fabric COPY slow-query logging exposes raw OneLake URLs — warehouse/integrations/microsoft-fabric/microsoft_fabric.go:358 — not auto-fixed (iteration budget exhausted)
  • medium: OneLake absolute-URL parsing can fail to round-trip escaped object keys — warehouse/integrations/microsoft-fabric/onelake/onelake.go:400 — not auto-fixed (iteration budget exhausted)
  • medium: Users-table load emits invalid SQL when there are no trait columns — warehouse/integrations/microsoft-fabric/microsoft_fabric.go:524 — not auto-fixed (iteration budget exhausted)
  • low: Dead forceStaging parameter makes Fabric load control flow misleading — warehouse/integrations/microsoft-fabric/microsoft_fabric.go:450 — not auto-fixed (iteration budget exhausted)

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

The lint job failed on two unparam findings: (*MicrosoftFabric).loadTable had an unused forceStaging argument at microsoft_fabric.go:450, and newWorker had an optional resolver parameter that every caller omitted at worker.go:94.

I removed both dead parameters, kept the worker on filemanagerresolver.Default, and preserved resolver injection where it is actually used by newJobRun. The exact CI linter (golangci-lint v2.13.2) now reports 0 issues; Fabric tests pass, and the slave package compiles (its full tests remain blocked by the pre-existing local S3 Root CA/bucket setup).

Pushed commit: a0c1414

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

The ARM64 Docker build failed before compilation during go mod download: fetching github.com/grpc-ecosystem/grpc-gateway/[email protected] from proxy.golang.org ended with stream error: stream ID 3823; INTERNAL_ERROR; received from peer, causing buildx to exit 1.

This is a transient external dependency-download failure, not a repository build error, so no source change is appropriate. The branch is clean and already advanced to the newer pushed commit a0c1414bb83b07b20a31fccc6c75a8748b1c75ac, which triggers a fresh build run naturally.

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

The enterprise ARM64 build failed before compilation in go mod download: fetching github.com/aws/aws-sdk-go-v2/service/[email protected] from proxy.golang.org ended with stream error: stream ID 3809; INTERNAL_ERROR; received from peer, and buildx exited 1.

This is a transient runner/proxy transport failure. The preceding ARM64 failure showed the same HTTP/2 reset on a different dependency (grpc-gateway/v2), which rules out a specific bad module or source error. The branch is clean and synchronized at a0c1414bb83b07b20a31fccc6c75a8748b1c75ac; no repository change can correctly fix this infrastructure failure.

@rudder-devbox

rudder-devbox Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

The MSSQL warehouse-integration job failed before tests started: go mod download could not fetch github.com/google/[email protected]+incompatible from proxy.golang.org because the HTTP/2 stream ended with INTERNAL_ERROR. The All job then failed solely because it aggregates the failed warehouse-integration result; all other required test groups were successful.

This is the same transient runner/proxy transport failure already seen on two different modules in the ARM64 builds, not a test or source-code failure. The branch is clean and synchronized at a0c1414bb83b07b20a31fccc6c75a8748b1c75ac; no repository change is appropriate.

@rudder-devbox

rudder-devbox Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 5, 2026 10:19
@rudder-devbox

rudder-devbox Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

The only substantive failure was the live BigQuery subtest TestBQStreamAllEvents/schema_modified_after_stream_writer_creation_(table_deleted). After it intentionally deleted tracks, BigQuery repeatedly returned NotFound for .../tables/tracks/streams/_default; only 15 of the expected 20 batch-router jobs succeeded, so the 200-second require.Eventually timed out at bqstreamallevents_test.go:1126. The All job failed only as an aggregate consequence.

This is an unrelated live-service recovery flake: commit c2b7dc4e694a13468c5aa4e07bd49eeb7d786d0e changes only Microsoft Fabric and OneLake implementation/tests, while the failing BigQuery path is unchanged. The branch is clean and synchronized, and changing Fabric code or weakening this integration assertion would not correctly address the external BigQuery stream-availability failure.

- filemanagerresolver.New now wraps a filemanager.Factory and keys on the
  ONELAKE provider alone, so the existing fileManagerFactory fields default
  to it; drops the destType-keyed Resolver type, its option types, nil
  fallbacks and the variadic newJobRun parameter.
- loadTable returns its staging table for the caller to drop instead of a
  keepStaging flag; copyInto uses f.db directly; LoadUserTables builds its
  result through one helper.
- OneLake managers share one Entra credential per service principal, so
  each upload no longer mints a fresh token; azcore.TokenCredential
  replaces the private tokenCredential interfaces.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.56546% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.98%. Comparing base (1040511) to head (61b4144).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
.../integrations/microsoft-fabric/microsoft_fabric.go 83.11% 51 Missing ⚠️
warehouse/integrations/testhelper/verify.go 68.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7441      +/-   ##
==========================================
+ Coverage   84.52%   84.98%   +0.46%     
==========================================
  Files         623      624       +1     
  Lines       62014    62396     +382     
==========================================
+ Hits        52415    53029     +614     
+ Misses       9596     9364     -232     
  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.

@rudder-devbox

rudder-devbox Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 5, 2026 13:14
@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 5, 2026 13:27
@rudder-devbox

rudder-devbox Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

shekhar-rudder and others added 4 commits October 7, 2026 15:39
- share the Lakehouse location check between onelake and the Fabric
  COPY INTO guard instead of keeping two diverging copies
- drop the unused onelake logger, the hand-rolled WriterAt adapter
  (io.NewOffsetWriter), repeated object-name normalisation and
  unreachable host checks; fold the upload status checks into one helper
- use a shared HTTP client with more idle connections per host for
  OneLake instead of http.DefaultClient
- remove the unreachable ObjectStorageMap entry, alias the Fabric
  reserved keywords like the other derived destinations, and drop
  redundant interface assertions
- tidy sorted-key building and test assertions

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- parse OneLake settings once for New and ValidateLocation
- drain response bodies via httputil.CloseResponse so the shared
  client can reuse connections, and route Delete through exec
- unexport hostFromConfig, now package-internal
- note why Fabric bypasses RudderStack storage in ObjectStorageType

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…3a' of https://github.com/rudderlabs/rudder-server into harness/INT-7234-feat-warehouse-add-microsoft-fa-12daea3a

# Conflicts:
#	warehouse/integrations/microsoft-fabric/microsoft_fabric.go
@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 8, 2026 12:32
@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

The logs showed that serialization was not the fix: even with parallelLoads: 1, Fabric rejected latest-users staging with error 65000 (This query was rejected due to current capacity constraints), leaving users at 0/4 until the integration test timed out. The root cause was LoadUserTables issuing one correlated SELECT TOP 1 subquery per trait.

I replaced that query with a single windowed pass using FIRST_VALUE(...) IGNORE NULLS, added a focused regression test, and restored the normal load concurrency. The focused Fabric and warehouse-config test packages pass, and the remote branch contains the fix.

388b6ca

@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

The live-test log showed upload 2 running with parallelLoads: 8 and being marked exported, but TestIntegration/Events_flow/store_full_event still observed 0 of 4 identify rows for ten minutes. The direct Fabric load-table suite passed, isolating the failure to concurrent event-flow pressure on the shared capacity-constrained tenant rather than the load SQL itself.

I restored serialization only for the live Fabric event-flow test (MAX_PARALLEL_LOADS=1) while leaving the production default and its configuration coverage unchanged. The Microsoft Fabric and warehouse-config package tests pass, and the fix is pushed.

6599dc9

@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 8, 2026 13:47
@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@rudder-devbox
rudder-devbox Bot requested a review from shekhar-rudder October 8, 2026 14:21
@rudder-devbox

rudder-devbox Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

The Fabric failure was a test-contract mismatch: the live schema had 21 product_track columns versus 22 expected because custom track tables do not receive rudder_event. I corrected the full-event schema and JSON checks to exclude only product_track; ordinary event-count coverage still includes it. Focused Fabric, test-helper, and ClickHouse package tests pass.

The other two failures were unrelated transients in this run: ClickHouse processed a four-row upload twice (actual 8, expected 4), and the warehouse unit job was rejected by Docker's 44000/minute request limiter before go-kit cleanup dereferenced the absent resource. Neither points to this Fabric change, and the pushed source correction has triggered fresh CI.

61b4144

@shekhar-rudder
shekhar-rudder merged commit 74940c2 into master Oct 9, 2026
74 checks passed
@shekhar-rudder
shekhar-rudder deleted the harness/INT-7234-feat-warehouse-add-microsoft-fa-12daea3a branch October 9, 2026 05:46
This was referenced Oct 12, 2026
mihir20 pushed a commit that referenced this pull request Oct 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.90.0-rc.1](v1.89.0...v1.90.0-rc.1)
(2026-10-12)


### Features

* **processor:** add source_out reporting metric
([#7435](#7435))
([909fba9](909fba9))
* **processor:** allow disabling event schemas v2 per source
([#7429](#7429))
([a8c12b2](a8c12b2))
* **processor:** report dest_transformer diff rows for multiplexing
destination transformations
([#7446](#7446))
([cd95c32](cd95c32))
* **processor:** report dest_transformer succeeded for destinations
without a destination transformation
([#7445](#7445))
([21f7e41](21f7e41))
* **processor:** report user_transformer succeeded for destinations
without a user transformation
([#7440](#7440))
([f424257](f424257))
* **router:** mask live events destination credentials
([#7460](#7460))
([5fa5fe2](5fa5fe2))
* **warehouse:** add Microsoft Fabric destination
([#7441](#7441))
([74940c2](74940c2))


### Bug Fixes

* **batchrouter:** do not abort warehouse jobs on a zero failure
timestamp
([#7426](#7426))
([506f6d5](506f6d5))
* **batchrouter:** recover snowpipe streaming channels for tables
dropped externally
([#7434](#7434))
([93cd81d](93cd81d))
* **destination:** encode Lytics bulk upload URL values
([#7433](#7433))
([08e6937](08e6937))
* **destination:** retry bqstream transport failures
([#7464](#7464))
([cd3dc3e](cd3dc3e))
* **warehouse:** cap deltalake validation schema describes
([#7444](#7444))
([d119779](d119779))
* **warehouse:** keep snowflake copy credentials out of logs
([#7442](#7442))
([f91747b](f91747b))
* **warehouse:** set explicit lineSep for deltalake csv copy
([#7455](#7455))
([cc22d18](cc22d18))


### Miscellaneous

* migrate self-hosted arm64 docker build runners to gha-runner-scale-set
([#7425](#7425))
([5cdffde](5cdffde))
* **processor:** retire the destination-filter reorder, dedup and
gw_ingested reporting flags
([#7450](#7450))
([1040511](1040511))
* pull openapi-generator through the ECR pull-through cache
([#7449](#7449))
([6e9f920](6e9f920))

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


##
[1.90.0](v1.89.0...v1.90.0)
(2026-10-12)


### Features

* **processor:** add source_out reporting metric
([#7435](#7435))
([909fba9](909fba9))
* **processor:** allow disabling event schemas v2 per source
([#7429](#7429))
([a8c12b2](a8c12b2))
* **processor:** report dest_transformer diff rows for multiplexing
destination transformations
([#7446](#7446))
([cd95c32](cd95c32))
* **processor:** report dest_transformer succeeded for destinations
without a destination transformation
([#7445](#7445))
([21f7e41](21f7e41))
* **processor:** report user_transformer succeeded for destinations
without a user transformation
([#7440](#7440))
([f424257](f424257))
* **router:** mask live events destination credentials
([#7460](#7460))
([5fa5fe2](5fa5fe2))
* **warehouse:** add Microsoft Fabric destination
([#7441](#7441))
([74940c2](74940c2))


### Bug Fixes

* **batchrouter:** do not abort warehouse jobs on a zero failure
timestamp
([#7426](#7426))
([506f6d5](506f6d5))
* **batchrouter:** recover snowpipe streaming channels for tables
dropped externally
([#7434](#7434))
([93cd81d](93cd81d))
* **destination:** encode Lytics bulk upload URL values
([#7433](#7433))
([08e6937](08e6937))
* **destination:** retry bqstream transport failures
([#7464](#7464))
([cd3dc3e](cd3dc3e))
* **warehouse:** cap deltalake validation schema describes
([#7444](#7444))
([d119779](d119779))
* **warehouse:** keep snowflake copy credentials out of logs
([#7442](#7442))
([f91747b](f91747b))
* **warehouse:** set explicit lineSep for deltalake csv copy
([#7455](#7455))
([cc22d18](cc22d18))


### Miscellaneous

* migrate self-hosted arm64 docker build runners to gha-runner-scale-set
([#7425](#7425))
([5cdffde](5cdffde))
* **processor:** retire the destination-filter reorder, dedup and
gw_ingested reporting flags
([#7450](#7450))
([1040511](1040511))
* pull openapi-generator through the ECR pull-through cache
([#7449](#7449))
([6e9f920](6e9f920))

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

3 participants