You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "mengw15 (via GitHub)" <gi...@apache.org> on 2026/09/27 06:19:53 UTC

[PR] feat: turn on per-user warehouses [texera]

mengw15 opened a new pull request, #8713:
URL: https://github.com/apache/texera/pull/8713

   ### What changes were proposed in this PR?
   
   Flips `storage.warehouse.enabled` to `true`, enabling the per-user warehouse feature that has been built behind it. All of #6870's Phase 0 work is merged; the switch is the last step. The comment above it is updated too — it described a feature still being built.
   
   The switch only takes effect where the Iceberg catalog is `rest` (Lakekeeper) — `StorageConfig` keeps the feature off for any other catalog type, so deployments that do not run Lakekeeper are unaffected.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8712. Part of #6870. Proposed and demonstrated in discussion #8633, with no objections raised.
   
   ### How was this PR tested?
   
   - Ran the engine's integration suite locally against a live Lakekeeper and MinIO, with the switch on and off. The same eight cases fail either way (Python UDF specs timing out in my environment), so the switch makes no difference to the suite. The `amber` unit job pins `STORAGE_ICEBERG_CATALOG_TYPE: postgres`, which keeps the feature off there regardless of this flag.
   - Exercised the feature by hand on a local deployment with the switch on: creating a warehouse from the dashboard tab and from the canvas picker, running a workflow into it, and confirming that a run with no warehouse selected is refused rather than routed to shared storage.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-5, claude-fable-5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4117002159


##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +51,25 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Both assertions are guarded on the env override being unset, since it wins
+    // over the resource — resolve() applies it to the parsed resource as well.
     if (sys.env.get(StorageConfig.ENV_WAREHOUSE_ENABLED).isEmpty) {
-      StorageConfig.warehouseEnabled shouldBe false
+      // The resource default is asserted directly, not just through

Review Comment:
   Trimmed to just the `ConfigFactory` rationale — 11 lines down to 4, in line with the other tests in this file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114841347


##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +51,23 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Only assert when the env override is unset, since it would win otherwise.
+    // The resource default is asserted directly, not through warehouseEnabled: CI's
+    // amber job pins the catalog to postgres, which would make the conjunction
+    // false either way and let a revert of the switch pass unnoticed.
+    ConfigFactory
+      .parseResources("storage.conf")
+      .resolve()
+      .getBoolean("storage.warehouse.enabled") shouldBe true

Review Comment:
   You're right, and I reproduced it: with `STORAGE_WAREHOUSE_ENABLED=false` the spec went to `Tests: succeeded 6, failed 1` before this change. `resolve()` does apply the optional substitution, so the raw-config read was not override-independent the way I assumed.
   
   Moved it under the existing guard. It still does the job it was added for — with the resource default mutated back to `false` the spec fails under `STORAGE_ICEBERG_CATALOG_TYPE=postgres` as well (sbt exits 1), so a revert of the switch is still caught in the configuration CI's amber job uses.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8713:
URL: https://github.com/apache/texera/pull/8713#issuecomment-5853323536

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - **Committers with relevant context:** `@parshimers`
     You can request their reviews formally with `/request-review @parshimers`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114332020


##########
common/config/src/main/resources/storage.conf:
##########
@@ -152,10 +152,11 @@ storage {
         interval-minutes = ${?STORAGE_CLEANUP_INTERVAL_MINUTES}
     }
 
-    # Per-user warehouse feature (#6870). One switch that hides the whole feature until it
-    # is fully built: merging the warehouse PRs changes nothing while this stays off.
+    # Per-user warehouse feature (#6870). Only takes effect with the REST catalog
+    # (Lakekeeper), since warehouses are Lakekeeper entities; any other catalog type
+    # keeps the feature off whatever this says.
     warehouse {
-        enabled = false
+        enabled = true

Review Comment:
   Good catch — that spec guarded the old default and I had not run the `Config` module. It now asserts the switch's actual contract rather than a fixed value: `warehouseEnabled shouldBe (icebergCatalogType == "rest")`. That keeps the guard against an accidental flip in both directions and holds under the `amber` job's `postgres` override too. Verified by mutation: flipping the switch back off fails it, and dropping the catalog conjunction fails it under a non-REST catalog.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "kunwp1 (via GitHub)" <gi...@apache.org>.
kunwp1 commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4116185857


##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +51,25 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Both assertions are guarded on the env override being unset, since it wins
+    // over the resource — resolve() applies it to the parsed resource as well.
     if (sys.env.get(StorageConfig.ENV_WAREHOUSE_ENABLED).isEmpty) {
-      StorageConfig.warehouseEnabled shouldBe false
+      // The resource default is asserted directly, not just through

Review Comment:
   Can you reduce the comment? I think it's unnecessarily too many for this change. Just explain why you used ConfigFactory.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114814259


##########
common/config/src/main/resources/storage.conf:
##########
@@ -152,10 +152,11 @@ storage {
         interval-minutes = ${?STORAGE_CLEANUP_INTERVAL_MINUTES}
     }
 
-    # Per-user warehouse feature (#6870). One switch that hides the whole feature until it
-    # is fully built: merging the warehouse PRs changes nothing while this stays off.
+    # Per-user warehouse feature (#6870). Only takes effect with the REST catalog
+    # (Lakekeeper), since warehouses are Lakekeeper entities; any other catalog type
+    # keeps the feature off whatever this says.
     warehouse {
-        enabled = false
+        enabled = true

Review Comment:
   Right — and it is the wiring those two specs are really pinning, not the default. They now use a URI whose warehouse cannot be resolved, which the guard refuses in either flag state; `WarehouseReadGuardSpec` already covers the enabled and disabled behaviour of the guard itself.



##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +50,15 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Only assert when the env override is unset, since it would win otherwise.
     if (sys.env.get(StorageConfig.ENV_WAREHOUSE_ENABLED).isEmpty) {
-      StorageConfig.warehouseEnabled shouldBe false
+      StorageConfig.warehouseEnabled shouldBe (StorageConfig.icebergCatalogType == "rest")

Review Comment:
   Good catch — under the `postgres` override that assertion is inert, so a revert would have passed. It now asserts the resource default directly (`ConfigFactory.parseResources("storage.conf")…getBoolean shouldBe true`) alongside the catalog conjunction.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8713:
URL: https://github.com/apache/texera/pull/8713#issuecomment-5853342425

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/8713?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 92.73%. Comparing base ([`e0f4989`](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`55ab243`](https://app.codecov.io/gh/apache/texera/commit/55ab243539fc3ccd9febe588ad30c2351b00e645?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff            @@
   ##               main    #8713   +/-   ##
   =========================================
     Coverage     92.73%   92.73%           
     Complexity     4946     4946           
   =========================================
     Files          1242     1242           
     Lines         52684    52684           
     Branches       6521     6521           
   =========================================
     Hits          48854    48854           
     Misses         2214     2214           
     Partials       1616     1616           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.38% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `99.16% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `88.46% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `60.41% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.37% <ø> (ø)` | | |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.53% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `96.53% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.73% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.56% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/8713/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.09% <ø> (ø)` | | Carriedforward from [e0f4989](https://app.codecov.io/gh/apache/texera/commit/e0f49897dbb525dc7faa6eac5f293fdb02b8f7f9?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/8713?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114338697


##########
common/config/src/main/resources/storage.conf:
##########
@@ -152,10 +152,11 @@ storage {
         interval-minutes = ${?STORAGE_CLEANUP_INTERVAL_MINUTES}
     }
 
-    # Per-user warehouse feature (#6870). One switch that hides the whole feature until it
-    # is fully built: merging the warehouse PRs changes nothing while this stays off.
+    # Per-user warehouse feature (#6870). Only takes effect with the REST catalog
+    # (Lakekeeper), since warehouses are Lakekeeper entities; any other catalog type
+    # keeps the feature off whatever this says.
     warehouse {
-        enabled = false
+        enabled = true

Review Comment:
   With the repository's default `rest` catalog, this makes `StorageConfig.warehouseEnabled` true in ordinary local test runs. `ExecutionResultServiceSpec.scala:953-963` and `ResultExportServiceSpec.scala:1140-1153` still explicitly rely on the old false default and expect `WarehouseUnavailableException`; the guard no longer throws, so those non-integration specs continue into catalog access and fail. CI masks this via its `postgres` override. Update those specs to use an explicitly disabled flag (or otherwise isolate them from the deployment default).



##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +50,15 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Only assert when the env override is unset, since it would win otherwise.
     if (sys.env.get(StorageConfig.ENV_WAREHOUSE_ENABLED).isEmpty) {
-      StorageConfig.warehouseEnabled shouldBe false
+      StorageConfig.warehouseEnabled shouldBe (StorageConfig.icebergCatalogType == "rest")

Review Comment:
   The amber/common CI job pins `STORAGE_ICEBERG_CATALOG_TYPE=postgres` (`.github/workflows/build.yml:298-315`), so this expression evaluates to `false` there whether the resource default is `true` or `false`. Consequently, reverting the switch flip would still pass CI. Assert the raw resource default as well so the behavior introduced by this PR is covered deterministically.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8713:
URL: https://github.com/apache/texera/pull/8713#issuecomment-5853365243

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 0 better · 🔴 7 worse · ⚪ 8 noise (<±5%) · 0 without baseline
   
   > Compared against main `e0f4989` benchmarked on **this same runner**, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.
   
   [Dashboard](https://apache.github.io/texera/dev/bench/) · [Run](https://github.com/apache/texera/actions/runs/36299774293)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 368 | 0.224 | 27,797/35,231/35,231 us | 🔴 +9.6% / 🔴 +107.2% |
   | 🔴 | bs=100 sw=10 sl=64 | 780 | 0.476 | 123,787/183,055/183,055 us | 🔴 +22.3% / 🔴 +59.0% |
   | 🔴 | bs=1000 sw=10 sl=64 | 909 | 0.555 | 1,092,547/1,226,214/1,226,214 us | 🔴 +9.1% / 🔴 +10.7% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `e0f4989` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 368 tuples/sec | 389 tuples/sec | 721.84 tuples/sec | -5.4% | -49.0% |
   | bs=10 sw=10 sl=64 | MB/s | 0.224 MB/s | 0.237 MB/s | 0.441 MB/s | -5.5% | -49.2% |
   | bs=10 sw=10 sl=64 | p50 | 27,797 us | 25,370 us | 13,416 us | +9.6% | +107.2% |
   | bs=10 sw=10 sl=64 | p95 | 35,231 us | 36,954 us | 17,046 us | -4.7% | +106.7% |
   | bs=10 sw=10 sl=64 | p99 | 35,231 us | 36,954 us | 20,349 us | -4.7% | +73.1% |
   | bs=100 sw=10 sl=64 | throughput | 780 tuples/sec | 811 tuples/sec | 914.39 tuples/sec | -3.8% | -14.7% |
   | bs=100 sw=10 sl=64 | MB/s | 0.476 MB/s | 0.495 MB/s | 0.558 MB/s | -3.8% | -14.7% |
   | bs=100 sw=10 sl=64 | p50 | 123,787 us | 120,522 us | 108,507 us | +2.7% | +14.1% |
   | bs=100 sw=10 sl=64 | p95 | 183,055 us | 149,634 us | 115,131 us | +22.3% | +59.0% |
   | bs=100 sw=10 sl=64 | p99 | 183,055 us | 149,634 us | 127,181 us | +22.3% | +43.9% |
   | bs=1000 sw=10 sl=64 | throughput | 909 tuples/sec | 922 tuples/sec | 937.6 tuples/sec | -1.4% | -3.1% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.555 MB/s | 0.562 MB/s | 0.572 MB/s | -1.2% | -3.0% |
   | bs=1000 sw=10 sl=64 | p50 | 1,092,547 us | 1,085,858 us | 1,065,461 us | +0.6% | +2.5% |
   | bs=1000 sw=10 sl=64 | p95 | 1,226,214 us | 1,124,112 us | 1,107,736 us | +9.1% | +10.7% |
   | bs=1000 sw=10 sl=64 | p99 | 1,226,214 us | 1,124,112 us | 1,133,556 us | +9.1% | +8.2% |
   
   </details>
   
   <details><summary>Raw CSV</summary>
   
   ```csv
   config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
   0,10,10,64,20,544.06,200,128000,368,0.224,27797.37,35230.50,35230.50
   1,100,10,64,20,2564.43,2000,1280000,780,0.476,123787.41,183055.20,183055.20
   2,1000,10,64,20,21993.74,20000,12800000,909,0.555,1092546.78,1226214.45,1226214.45
   ```
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114323103


##########
common/config/src/main/resources/storage.conf:
##########
@@ -152,10 +152,11 @@ storage {
         interval-minutes = ${?STORAGE_CLEANUP_INTERVAL_MINUTES}
     }
 
-    # Per-user warehouse feature (#6870). One switch that hides the whole feature until it
-    # is fully built: merging the warehouse PRs changes nothing while this stays off.
+    # Per-user warehouse feature (#6870). Only takes effect with the REST catalog
+    # (Lakekeeper), since warehouses are Lakekeeper entities; any other catalog type
+    # keeps the feature off whatever this says.
     warehouse {
-        enabled = false
+        enabled = true

Review Comment:
   This changes the default to enabled, but `StorageConfigSpec` still asserts `warehouseEnabled shouldBe false` whenever `STORAGE_WAREHOUSE_ENABLED` is unset. Because this file also defaults the catalog to `rest`, running `Config/test` without CI's `postgres` override now deterministically fails. Update that spec to assert the new REST default and retain coverage that non-REST catalogs force the feature off.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 merged PR #8713:
URL: https://github.com/apache/texera/pull/8713


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: turn on per-user warehouses [texera]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #8713:
URL: https://github.com/apache/texera/pull/8713#discussion_r4114821146


##########
common/config/src/test/scala/org/apache/texera/common/config/StorageConfigSpec.scala:
##########
@@ -50,12 +51,23 @@ class StorageConfigSpec extends AnyFlatSpec with Matchers {
     StorageConfig.ENV_CLEANUP_INTERVAL_MINUTES shouldBe "STORAGE_CLEANUP_INTERVAL_MINUTES"
   }
 
-  "StorageConfig warehouse settings" should "default the feature to disabled so merging changes nothing" in {
-    // storage.warehouse.enabled is the kill switch for the whole per-user warehouse
-    // feature (#6870); this guards the safe default from silently flipping to true.
-    // Only assert when the env override is unset (e.g. in CI), since it would win otherwise.
+  "StorageConfig warehouse settings" should "be on by default, and only with the REST catalog" in {
+    // storage.warehouse.enabled is the switch for the whole per-user warehouse
+    // feature (#6870), on since #8712. Warehouses are Lakekeeper entities, so the
+    // switch is conjoined with the catalog type: any other catalog keeps the
+    // feature off however the switch reads, which is what stops a deployment
+    // without Lakekeeper from being handed a feature it cannot serve.
+    // Only assert when the env override is unset, since it would win otherwise.
+    // The resource default is asserted directly, not through warehouseEnabled: CI's
+    // amber job pins the catalog to postgres, which would make the conjunction
+    // false either way and let a revert of the switch pass unnoticed.
+    ConfigFactory
+      .parseResources("storage.conf")
+      .resolve()
+      .getBoolean("storage.warehouse.enabled") shouldBe true

Review Comment:
   `parseResources(...).resolve()` still applies the optional `${?STORAGE_WAREHOUSE_ENABLED}` substitution, so a supported deployment/test override of `false` makes this assertion fail. Move this raw-config assertion under the existing “override is unset” guard; CI still exercises it because that variable is unset there.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org