Skip to content

chore(test): use nextest filterset instead of needs_env_var - #1304

Merged
c-thiel merged 22 commits into
mainfrom
mz/test-filter-nextest
Aug 26, 2025
Merged

c-thiel merged 22 commits into
mainfrom
mz/test-filter-nextest

Conversation

@mooori

@mooori mooori commented Aug 25, 2025 •

Copy link
Copy Markdown
Contributor

Draft to iterate on how we use nextest filtersets.

TODO:

  • For default ignore whole io crate or only some of its test modules?
    • included unit tests, excluded integration tests for default
  • Update docs
  • Remove unused TEST_ env vars from github workflow files
  • Handle LAKEKEEPER_TEST__ENABLE_AZURE_SYSTEM_CREDENTIALS
  • Handle LAKEKEEPER_TEST__ENABLE_GCP_SYSTEM_CREDENTIALS
  • Remove needs_env_var from dependencies

Summary by CodeRabbit

  • Documentation

    • Updated developer guide to use Nextest filters for running integration tests; removed legacy env-var toggles from instructions.
  • Tests

    • Standardized integration test naming and execution via Nextest profiles and default filters.
    • Removed environment-based gating so integration tests are consistently discoverable and runnable.
    • Added CI-friendly test profiles, including JUnit output support.
  • Chores

    • Simplified CI workflow by removing deprecated test toggles and improving secret handling in scripts.
    • Cleaned up development-only dependencies to reduce maintenance overhead.

@coderabbitai

coderabbitai Bot commented Aug 25, 2025 •

Copy link
Copy Markdown
Contributor

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Removes env-var-based test gating and renames test modules to integration_tests. Introduces Nextest profiles and default filters to control integration test execution. Updates CI workflow to drop TEST toggles and adjust secret handling. Cleans up dev-dependencies. Updates docs to use cargo nextest filtering.

Changes

Cohort / File(s) Summary
Nextest config & docs
.config/nextest.toml, docs/docs/developer-guide.md
Adds Nextest profiles (default/debug/ci/ci.junit) with default-filters targeting integration_tests; updates docs to run tests via cargo nextest with filters, replacing TEST env gating.
CI workflow
.github/workflows/unittests.yml
Removes TEST_* env toggles from steps; uses single-quoted secret write for GCS creds; retains other LAKEKEEPER_TEST__* envs.
Cargo dependency cleanup
Cargo.toml, crates/lakekeeper/Cargo.toml
Removes workspace dep and dev-dep on needs_env_var.
Storage tests restructuring
crates/lakekeeper/src/service/storage/mod.rs, .../storage/az.rs, .../storage/gcs/mod.rs, .../storage/s3.rs
Eliminates needs_env_var gating; renames/organizes modules to aws_integration_tests, azure_integration_tests, gcs_integration_tests, gcs_hns_integration_tests, minio_integration_tests, aws_kms_integration_tests, r2_integration_tests; minor test call updates (normalize(Some(...)), RequestMetadata usage).
OpenFGA integration tests
crates/lakekeeper/src/service/authz/implementations/openfga/api.rs, .../check.rs, .../health.rs, .../migration.rs, .../mod.rs
Removes gating and renames inner test modules to openfga_integration_tests; tests compile under #[cfg(test)] unconditionally.
Catalog I/O test modules
crates/lakekeeper/src/catalog/io.rs
Removes gating; renames aws→aws_integration_tests, az→azure_integration_tests, gcs→gcs_integration_tests; updates imports.
KV2 tests
crates/lakekeeper/src/implementations/kv2.rs
Removes gating; renames kv2→kv2_integration_tests; tests run under #[cfg(test)].

Sequence Diagram(s)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • c-thiel

Poem

In burrows of tests I hop and preen,
Filters now guide where I’ve been.
No toggles to flip, just nextest trails,
Renamed warrens, fewer veils.
CI whispers, secrets tight—
Thump-thump, green lights in the night. 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mz/test-filter-nextest

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@mooori mooori changed the title test: use nextest filterset instead of needs_env_var chore(test): use nextest filterset instead of needs_env_var Aug 25, 2025
Comment thread .config/nextest.toml Resolved
@mooori
mooori requested a review from Copilot August 26, 2025 15:12

This comment was marked as outdated.

@mooori
mooori requested a review from Copilot August 26, 2025 16:00

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

Pull Request Overview

Modernizes the test filtering mechanism by replacing needs_env_var attribute macros with nextest filtersets. This removes conditional compilation barriers and provides more flexible test execution control through configuration rather than environment variables.

Key changes:

  • Replace needs_env_var attribute macros with nextest filtersets for test selection
  • Rename test modules with _integration_tests suffix for filterset targeting
  • Remove TEST_* environment variable dependencies from CI workflows

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.config/nextest.toml Adds nextest profiles with filtersets to exclude integration tests by default
docs/docs/developer-guide.md Updates documentation to reference nextest filtersets instead of environment variables
Multiple test modules Renames test modules to *_integration_tests pattern and removes needs_env_var attributes
Cargo.toml files Removes needs_env_var dependency
.github/workflows/unittests.yml Removes unused TEST_* environment variables from CI configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

let mut profile: StorageProfile = profile.into();
let credential: StorageCredential = credential.into();
profile
.normalize(Some(&credential))

Copilot AI Aug 26, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The credential parameter is ignored during normalization based on the method signature change. Consider removing the unused parameter or documenting why it's passed.

Suggested change
.normalize(Some(&credential))
.normalize()

Copilot uses AI. Check for mistakes.
@mooori
mooori marked this pull request as ready for review August 26, 2025 16:06
@mooori
mooori requested a review from c-thiel August 26, 2025 16:06
@github-actions

Copy link
Copy Markdown
Contributor

✅ PR Title Formatted Correctly

The title of this PR match the correct format. Thank you!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (4)
crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (1)

512-775: Add a Nextest filter to exclude OpenFGA integration tests by default

I didn’t find any nextest.toml in the repository root—Nextest is falling back to your global ~/.config/nextest.toml, whose default profile only excludes tests in the integration_tests binary of lakekeeper-io. The openfga_integration_tests modules live in the normal test harness and will still run unless you explicitly filter them out.

Please add or update a project-level nextest.toml (at the repo root) to exclude any test whose full name contains ::openfga_integration_tests::. For example:

# nextest.toml (new file at repo root)

[profile.default]
# Skip any test under an openfga_integration_tests module
default-filter = """
    not (regex "::openfga_integration_tests::")
"""

[profile.ci]
# In CI, skip them as well (or adjust per your needs)
default-filter = """
    not (regex "::openfga_integration_tests::")
"""
failure-output = "immediate-final"

• Ensures these true integration tests (SQLx DB, OpenFGA client, etc.) don’t run unless explicitly requested
• Keeps local cargo nextest runs fast by default while still allowing --filter openfga_integration_tests when you actually want to exercise them

crates/lakekeeper/src/service/authz/implementations/openfga/api.rs (1)

1381-1384: Bug: route param name mismatch for view access endpoint.

Router path uses {table_id} but the handler is get_view_access_by_id expecting a ViewId and OpenAPI docs declare {view_id}. This causes doc/route inconsistency and can confuse clients and tracing. Fix the route segment to {view_id}.

Apply:

-        .route(
-            "/permissions/view/{table_id}/access",
-            get(get_view_access_by_id),
-        )
+        .route(
+            "/permissions/view/{view_id}/access",
+            get(get_view_access_by_id),
+        )
crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)

47-61: Bug: get_active_auth_model_id ignores CONFIGURED_MODEL_VERSION when querying

You compute model_version from CONFIGURED_MODEL_VERSION but still call get_authorization_model_id(*ACTIVE_MODEL_VERSION) and format the not-found error with ACTIVE_MODEL_VERSION. This will return the wrong result whenever a specific model version is configured.

Apply this diff to use the resolved model_version consistently:

@@
-    let model_version = super::CONFIGURED_MODEL_VERSION.unwrap_or(*ACTIVE_MODEL_VERSION);
+    let model_version = super::CONFIGURED_MODEL_VERSION.unwrap_or(*ACTIVE_MODEL_VERSION);
     tracing::info!("Getting active OpenFGA Authorization Model ID for version {model_version}.");
-    manager
-        .get_authorization_model_id(*ACTIVE_MODEL_VERSION)
+    manager
+        .get_authorization_model_id(model_version)
         .await
@@
-        .ok_or(OpenFGAError::ActiveAuthModelNotFound(
-            ACTIVE_MODEL_VERSION.to_string(),
-        ))
+        .ok_or(OpenFGAError::ActiveAuthModelNotFound(
+            model_version.to_string(),
+        ))
crates/lakekeeper/src/service/storage/az.rs (1)

500-513: Likely bug: removing the wrong SAS token key from table props

When normalizing the ADLS SAS token property, you detect the matching key but remove the literal prefix adls.sas-token. instead of the actual key (e.g., adls.sas-token.<account>.<suffix>). This can leave the original key in place and insert a second adls.sas-token, leading to ambiguous config.

Apply this targeted refactor:

-    let mut sas_token = None;
-    for (key, value) in &config {
-        if key.starts_with(sas_token_prefix) {
-            sas_token = Some(value.to_string());
-            break;
-        }
-    }
-    if let Some(sas_token) = sas_token {
-        config.remove(sas_token_prefix);
-        config.insert("adls.sas-token".to_string(), sas_token);
-    }
+    let mut sas_token_kv: Option<(String, String)> = None;
+    for (key, value) in &config {
+        if key.starts_with(sas_token_prefix) {
+            sas_token_kv = Some((key.clone(), value.to_string()));
+            break;
+        }
+    }
+    if let Some((orig_key, sas_token)) = sas_token_kv {
+        // Remove the exact original key, then reinsert under the generic key.
+        config.remove(&orig_key);
+        config.insert("adls.sas-token".to_string(), sas_token);
+    }

If you prefer fewer allocations, iterate with retain and capture the value, but the above keeps it simple and clear.

♻️ Duplicate comments (8)
crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (1)

40-69: Ensure default Nextest profile skips this suite in CI without OpenFGA.

These tests spin up client/store and assume OpenFGA availability. Confirm the default filterset excludes "::openfga_integration_tests::". See my verification script in check.rs.

crates/lakekeeper/src/implementations/kv2.rs (1)

257-312: KV2 integration tests: confirm they’re filtered by default.

These talk to a real Vault via CONFIG.kv2; without filtering they’ll fail locally/CI. The new kv2_integration_tests naming is good—just ensure Nextest’s default filterset excludes "::kv2_integration_tests::" (or a broader “::_integration_tests::” pattern).

Use the same verification script shared in check.rs to inspect nextest.toml.

crates/lakekeeper/src/service/authz/implementations/openfga/api.rs (1)

1641-2133: Double-check Nextest filter coverage for these tests.

This suite assumes a running OpenFGA store; verify the default filterset excludes "::openfga_integration_tests::" so it doesn’t run in unit-test-only contexts.

crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)

1058-1426: Avoid accidental execution of integration tests.

As with the other files, ensure Nextest’s default filterset excludes "::openfga_integration_tests::".

.config/nextest.toml (1)

1-15: *Default filter set is coherent with the new _integration_tests layout

The exclusions are explicit and map well to the renamed modules. Using a single multiline expression keeps it easy to audit.

This also addresses the prior suggestion to use names like aws_integration_tests for clarity.

crates/lakekeeper/src/service/storage/az.rs (1)

638-644: Keep Box::pin around validate_access — it’s intentional in this codebase

The explicit Box::pin before .await matches the project’s established pattern for large futures in async flows to reduce stack usage during validation calls.

crates/lakekeeper/src/service/storage/gcs/mod.rs (2)

503-519: Normalize does not use credentials for GCS — pass None for clarity

StorageProfile::normalize ignores the credential for GCS profiles (it delegates to GcsProfile::normalize()). Passing None here reduces reader confusion and signals intent.

Apply this diff:

-                profile
-                    .normalize(Some(&credential))
-                    .expect("failed to validate profile");
+                profile
+                    .normalize(None)
+                    .expect("failed to validate profile");

512-517: Keep Box::pin on validate_access

Box::pin around large futures (like validate_access) is intentionally used in this codebase to reduce stack usage and improve async performance; retaining it here is correct. Referencing the team learning you shared earlier.

🧹 Nitpick comments (3)
.config/nextest.toml (1)

1-15: Optional: add per-provider convenience profiles

If you often run a single provider locally, adding small profiles keeps CLI invocations short and shareable.

Apply an additive diff:

 [profile.default]
@@
 
+[profile.aws]
+default-filter = 'test(::aws_integration_tests::)'
+
+[profile.azure]
+default-filter = 'test(::azure_integration_tests::)'
+
+[profile.gcs]
+default-filter = 'test(::gcs_integration_tests::)'
+
+[profile.openfga]
+default-filter = 'test(::openfga_integration_tests::)'
.github/workflows/unittests.yml (1)

165-169: Prefer printf over echo for JSON secrets

echo can behave inconsistently with multi-line content and always appends a newline. printf avoids both issues and keeps logs cleaner.

-      - name: Write gcp credential to file
-        if: ${{ env.GCS_CREDENTIAL != '' }}
-        run: echo '${{ secrets.GCS_CREDENTIAL }}' > /tmp/gcs.json
+      - name: Write gcp credential to file
+        if: ${{ env.GCS_CREDENTIAL != '' }}
+        run: printf '%s' '${{ secrets.GCS_CREDENTIAL }}' > /tmp/gcs.json
         shell: bash
crates/lakekeeper/src/service/storage/mod.rs (1)

1163-1186: Tighten GCS cred/env error handling in test_vended_gcs

Avoid mapping the env-var error to () which drops the original error context, and make the failure messages explicit. Also parse the service-account JSON with a clear expect.

Apply this diff:

-            let key_prefix = Some(format!("test_prefix-{}", uuid::Uuid::now_v7()));
-            let cred: StorageCredential = std::env::var("LAKEKEEPER_TEST__GCS_CREDENTIAL")
-                .map(|s| GcsCredential::ServiceAccountKey {
-                    key: serde_json::from_str::<GcsServiceKey>(&s).unwrap(),
-                })
-                .map_err(|_| ())
-                .expect("Missing cred")
-                .into();
+            let key_prefix = Some(format!("test_prefix-{}", uuid::Uuid::now_v7()));
+            let cred: StorageCredential = GcsCredential::ServiceAccountKey {
+                key: serde_json::from_str::<GcsServiceKey>(
+                    &std::env::var("LAKEKEEPER_TEST__GCS_CREDENTIAL")
+                        .expect("Missing LAKEKEEPER_TEST__GCS_CREDENTIAL"),
+                )
+                .expect("Invalid GCS service-account JSON"),
+            }
+            .into();
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 67d4043 and 6474f09.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (16)
  • .config/nextest.toml (1 hunks)
  • .github/workflows/unittests.yml (1 hunks)
  • Cargo.toml (0 hunks)
  • crates/lakekeeper/Cargo.toml (0 hunks)
  • crates/lakekeeper/src/catalog/io.rs (3 hunks)
  • crates/lakekeeper/src/implementations/kv2.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/api.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1 hunks)
  • crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/az.rs (2 hunks)
  • crates/lakekeeper/src/service/storage/gcs/mod.rs (2 hunks)
  • crates/lakekeeper/src/service/storage/mod.rs (1 hunks)
  • crates/lakekeeper/src/service/storage/s3.rs (4 hunks)
  • docs/docs/developer-guide.md (5 hunks)
💤 Files with no reviewable changes (2)
  • Cargo.toml
  • crates/lakekeeper/Cargo.toml
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-19T07:33:45.608Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1285
File: crates/lakekeeper/src/service/storage/mod.rs:1354-1356
Timestamp: 2025-08-19T07:33:45.608Z
Learning: In test code (#[cfg(test)]), unreachable!() is often appropriate when it indicates a programming error in test setup, unlike production code where graceful error handling is preferred. Test helpers should fail fast when called with invalid configurations.

Applied to files:

  • crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs
📚 Learning: 2025-08-14T11:35:37.248Z
Learnt from: c-thiel
PR: lakekeeper/lakekeeper#1285
File: crates/lakekeeper/src/service/storage/gcs/mod.rs:485-491
Timestamp: 2025-08-14T11:35:37.248Z
Learning: In the Lakekeeper codebase, `Box::pin` is intentionally used around large futures (like `validate_access` calls) as an optimization technique to move the future data to the heap, reducing stack usage and improving efficiency during async operations.

Applied to files:

  • crates/lakekeeper/src/service/storage/az.rs
  • crates/lakekeeper/src/service/storage/gcs/mod.rs
🧬 Code graph analysis (4)
crates/lakekeeper/src/service/storage/mod.rs (3)
crates/lakekeeper/src/service/storage/az.rs (3)
  • client_creds (606-619)
  • shared_key (621-625)
  • azure_profile (588-604)
crates/lakekeeper/src/service/storage/s3.rs (5)
  • s (382-382)
  • get_storage_profile (1372-1397)
  • get_storage_profile (1466-1491)
  • get_storage_profile (1523-1554)
  • storage_profile (1314-1339)
crates/lakekeeper/src/service/storage/gcs/mod.rs (2)
  • get_storage_profile (464-475)
  • get_storage_profile (532-544)
crates/lakekeeper/src/catalog/io.rs (3)
crates/lakekeeper/src/service/storage/gcs/mod.rs (2)
  • get_storage_profile (464-475)
  • get_storage_profile (532-544)
crates/lakekeeper/src/service/storage/s3.rs (3)
  • get_storage_profile (1372-1397)
  • get_storage_profile (1466-1491)
  • get_storage_profile (1523-1554)
crates/lakekeeper/src/service/storage/az.rs (2)
  • azure_profile (588-604)
  • client_creds (606-619)
crates/lakekeeper/src/service/storage/az.rs (2)
crates/lakekeeper/src/service/storage/gcs/mod.rs (1)
  • test_system_identity_can_validate (503-519)
crates/lakekeeper/src/request_metadata.rs (1)
  • new_unauthenticated (103-113)
crates/lakekeeper/src/service/storage/gcs/mod.rs (2)
crates/lakekeeper/src/service/storage/az.rs (1)
  • test_system_identity_can_validate (652-665)
crates/lakekeeper/src/request_metadata.rs (1)
  • new_unauthenticated (103-113)
🔇 Additional comments (21)
crates/lakekeeper/src/service/authz/implementations/openfga/check.rs (1)

512-775: Integration tests rename aligns with Nextest-based filtering — looks good.

Dropping needs_env_var and using an openfga_integration_tests module is consistent and keeps test intent clear.

crates/lakekeeper/src/service/authz/implementations/openfga/health.rs (1)

40-69: Consistent rename to openfga_integration_tests.

Matches the PR’s testing strategy; no functional changes.

crates/lakekeeper/src/service/authz/implementations/openfga/api.rs (1)

1641-2133: Integration tests module rename is consistent and non-functional.

The openfga_integration_tests module change aligns with the new testing approach. Tests themselves remain the same.

crates/lakekeeper/src/service/authz/implementations/openfga/mod.rs (1)

1058-1426: Rename to openfga_integration_tests is appropriate.

Matches the broader migration away from needs_env_var. No issues spotted.

crates/lakekeeper/src/service/authz/implementations/openfga/migration.rs (1)

122-165: Rename Verified: openfga_integration_tests Excluded by Nextest

The module openfga_integration_tests is explicitly excluded in the default Nextest filter (not test(::openfga_integration_tests::)) in .config/nextest.toml, so the rename aligns perfectly with our test exclusion strategy. No further action required.

.config/nextest.toml (1)

1-15: Verified default test-filter assumptions

  • The Cargo package lakekeeper-io is defined in crates/io/Cargo.toml as expected.
  • Every *_integration_tests module referenced in .config/nextest.toml (aws, aws_kms, azure, azure_system_credentials, gcs, gcs_hns, gcp_system_credentials, kv2, minio, openfga, r2) exists in the codebase under crates/lakekeeper/src/….

No changes required.

crates/lakekeeper/src/service/storage/az.rs (1)

648-666: Azure system identity test structure looks good

The nested azure_system_credentials_integration_tests module, normalize(None), and validation with RequestMetadata::new_unauthenticated() are consistent with the storage profile API and Nextest filtering.

docs/docs/developer-guide.md (3)

37-37: Nice: call out that some tests are excluded by default

This heads off confusion when contributors don’t see cloud/storage/OpenFGA tests running with a plain cargo nextest run.


153-159: Cloud storage: filter-based guidance reads well

Clear, copy-pastable example that matches the new Nextest configuration.


167-178: OpenFGA unit tests: instructions are consistent with CI and Nextest config

The container version matches CI (v1.8), the endpoint env var is correct, and the filter targets openfga_integration_tests.

crates/lakekeeper/src/service/storage/gcs/mod.rs (1)

455-455: Module rename aligns with Nextest filtersets

The renames to gcs_integration_tests and gcs_hns_integration_tests are consistent with the repo-wide *_integration_tests pattern and Nextest filtering. No issues spotted.

Also applies to: 523-523

crates/lakekeeper/src/catalog/io.rs (3)

259-263: Updated import path for AWS test helper looks correct

The reference to s3::test::aws_integration_tests::get_storage_profile matches the renamed module.


275-279: Azure integration import path rename is consistent

Importing azure_integration_tests::{azure_profile, client_creds} aligns with the new module structure.


291-296: GCS integration import path rename is consistent

Importing gcs::test::gcs_integration_tests::get_storage_profile matches the GCS test module rename.

crates/lakekeeper/src/service/storage/s3.rs (4)

1292-1366: MinIO test module rename and env usage look good

  • Renamed to minio_integration_tests; uses LAKEKEEPER_TEST__S3_* envs consistently.
  • Shared runtime via test_block_on is appropriate due to static client sharing.
  • Box::pin on validate_access retained — good.

No changes requested.


1368-1460: AWS integration test module rename and helpers are correct

  • get_storage_profile helper aligns with new path.
  • Path-style access and STS assumptions are consistent with test intent.
  • Signing identity tests use shared runtime; good.

All good from my side.


1462-1517: AWS KMS integration tests follow the new structure

  • Uses AWS_KMS_S3_BUCKET and AWS_S3_KMS_ARN appropriately.
  • Flow mirrors the non-KMS AWS tests.

Looks solid.


1519-1580: Cloudflare R2 integration tests: naming and flow LGTM

  • LAKEKEEPER_TEST__R2_* envs are used consistently.
  • Remote signing/vended-creds pathway mirrors expectations.

No issues.

crates/lakekeeper/src/service/storage/mod.rs (3)

1139-1161: Azure vended-cred IO test relocation is clean

Looping over both credential variants in azure_integration_tests is concise and correct.


1188-1239: AWS integration tests: structure and Box::pin usage are appropriate

  • test_vended_aws uses shared runtime; correct.
  • test_validate_aws uses Box::pin on validate_access, consistent with the async pattern used elsewhere.

No action needed.


1241-1261: MinIO integration test relocation is correct

test_vended_s3_compat mirrors other providers’ tests and uses the shared runtime.

Comment thread docs/docs/developer-guide.md Resolved
@c-thiel
c-thiel merged commit 51d310d into main Aug 26, 2025
@c-thiel
c-thiel deleted the mz/test-filter-nextest branch August 26, 2025 16:56
@c-thiel c-thiel mentioned this pull request Aug 26, 2025
mrjoe7 added a commit to mrjoe7/lakekeeper that referenced this pull request Oct 30, 2025
* feat: Publish images to Dockerhub (lakekeeper#1274)

* feat: Update UI to 0.9.0 with multi-project support (lakekeeper#1275)

* chore: release 0.9.4

Release-As: 0.9.4

* chore: release main (lakekeeper#1262)

* chore(ci): Fix Dockerhub login

* chore(docs): Improve developer guide (lakekeeper#1265)

* chore(docs): add info regarding `view_version`'s internal representation (lakekeeper#1261)

* chore(docs): Architecture clarify Secret Store (lakekeeper#1284)

* fix: Update Limes to 0.2.2 - Fixes compilation issue due to breaking `jwks_client_rs` change (lakekeeper#1282)

* fix: Update Limes to 0.2.2

* increase min rust version

* chore: release 0.9.5

Release-As: 0.9.5

* chore: release main (lakekeeper#1286)

* chore: enable changelog sections for release-please (lakekeeper#1264)

k

* fix(deps): update rust crate rand to v0.9.2 (lakekeeper#1252)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate async-channel to v2.5.0 (lakekeeper#1225)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency mkdocs-material to v9.6.17 (lakekeeper#1289)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate anyhow to v1.0.99 (lakekeeper#1290)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: Remove bitnami images (lakekeeper#1288)

* feat!: Move to Lakekeeper IO based on hyperscaler SDKs (lakekeeper#1285)

* chore(deps): update rust crate reqwest to v0.12.23 (lakekeeper#1294)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(docs): Improve Cloud storage test docs

* fix: accept "disable" as PG sslmode as documented (lakekeeper#1303)

* feat: Simplify task interface, re-exports, enable delete-after-commit (lakekeeper#1302)

* feat: Introduce `RequestMetadata` for Internal Principals which bypass AuthZ (lakekeeper#1306)

* chore(deps): update azure/setup-helm action to v4.3.1 (lakekeeper#1299)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(test): use nextest filterset instead of needs_env_var (lakekeeper#1304)

* chore(deps): update rust crate openssl-src to v300.5.2 (lakekeeper#1292)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate async-compression to v0.4.28 (lakekeeper#1311)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate thiserror to v2.0.16 (lakekeeper#1296)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: Provide `ApiContext` to externally registered tasks (lakekeeper#1307)

* feat!: Simplify Task interface, extend SpecializedTask interface (lakekeeper#1310)

* feat: Improve authorizer `are_allowed_*` batch check signature (lakekeeper#1315)

* chore(authz): Enforce use of AuthZ decisions with #[must_use] (lakekeeper#1317)

* feat: Task Management APIs (lakekeeper#1316)

* chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (lakekeeper#1318)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: Add `RunNow` and `RunAt` to Controls for Tasks (lakekeeper#1322)

* chore(deps): update rust crate tokio-util to v0.7.16 (lakekeeper#1313)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(docs): Improve Entra ID docs (lakekeeper#1325)

* chore(docs): Improve Upgrades & Migration docs (lakekeeper#1326)

* feat: Add tasks heartbeat with Catalog state (lakekeeper#1324)

* ci: add configuration for CodeRabbit reviews (lakekeeper#1327)

* feat: Add optional STS session-tags in S3 STS requests for ABAC authorization (lakekeeper#1230)

* feat: Random Server IDs (lakekeeper#1328)

* chore(deps): update rust crate percent-encoding to v2.3.2 (lakekeeper#1312)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(authz): Deprecate Permission Endpoints for Tables without WarehouseIDs (lakekeeper#1334)

* fix: Tasks endpoints in router (lakekeeper#1335)

* feat(ci): add nextest profile ci_no_secrets for external PRs (lakekeeper#1333)

* chore(deps): update rust crate chrono to v0.4.42 (lakekeeper#1331)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: Pin examples duckdb version to 1.3 (lakekeeper#1343)

* feat!: Require warehouse_id when checking permissions on views or tables via ID (lakekeeper#1340)

* fix: migrate away from bitnami in unittest.yml (lakekeeper#1344)

* chore: Remove coderabitt config

* fix(docs): Fix inconsistent URL format in README (lakekeeper#1345)

Co-authored-by: Christian <[email protected]>

* feat: Remove serde_yaml & serde_yml (lakekeeper#1341)

* feat!: add `warehouse_id` to PKs of all `table_*` and `view_*` tables (lakekeeper#1254)

* feat: Minor namespace join performance improvements

* fix: Warehouse permissions are directly used for task retrieval & control (lakekeeper#1347)

* fix: Potential Race Condition when undropping Tabulars (lakekeeper#1342)

* fix: table rename authz and error handling (lakekeeper#1346)

Co-authored-by: Andre Luis Anastacio <[email protected]>

* chore(deps): update rust crate google-cloud-auth to v1.1.2 (lakekeeper#1337)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* chore(deps): update rust crate time to v0.3.44 (lakekeeper#1349)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency mkdocs-material to v9.6.20 (lakekeeper#1309)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* feat: Set ServerID during migration (lakekeeper#1348)

* chore(deps): Remove utoipa fork (lakekeeper#1352)

* chore(deps): update rust crate serde_with to v3.14.1 (lakekeeper#1351)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate url to v2.5.7 (lakekeeper#1354)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate async-compression to v0.4.30 (lakekeeper#1323)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* chore(deps): update rust crate serde_json to v1.0.145 (lakekeeper#1250)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* chore(deps): update strum monorepo to v0.27.2 (lakekeeper#1251)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* chore(deps): update serde monorepo to v1.0.226 (lakekeeper#1355)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate clap to v4.5.48 (lakekeeper#1356)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: Add Entity Names to Tasks (lakekeeper#1353)

* fix: case insensitivity of catalog endpoints (lakekeeper#1338)

* fix: Improve delete_warehouse error message for active tasks

* chore(deps): update rust crate tempfile to v3.22.0 (lakekeeper#1359)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christian <[email protected]>

* chore(deps): update rust crate axum-prometheus to 0.9.0 (lakekeeper#1358)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: PgSslMode not supported error string

* feat(authz)!: add OpenFGA schema v4 and v3->v4 migration (lakekeeper#1314)

Co-authored-by: Christian <[email protected]>
Co-authored-by: Christian Thiel <[email protected]>

* chore(deps): update rust crate uuid to v1.18.1 (lakekeeper#1362)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency markdown-grid-tables to v0.6.0 (lakekeeper#1357)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate anyhow to v1.0.100 (lakekeeper#1350)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: clippy

* chore(deps): update rust crate moka to v0.12.11 (lakekeeper#1365)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate tempfile to v3.23.0 (lakekeeper#1367)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate async-nats to 0.43.0 (lakekeeper#1366)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/setup-node action to v5 (lakekeeper#1371)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v5 (lakekeeper#1369)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/setup-python action to v6 (lakekeeper#1372)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: V3 support (lakekeeper#1364)

* chore: Set Get Task Permission to "CanGetMetadata" (lakekeeper#1376)

* chore(deps): update dependency node to v22 (lakekeeper#1373)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(authz)!: extend OpenFGA tabular entities with WarehouseId (lakekeeper#1329)


---------

Co-authored-by: Christian <[email protected]>
Co-authored-by: Christian Thiel <[email protected]>

* feat: Add support for tasks affecting views (lakekeeper#1378)

* feat(authz): Add specific Task Actions (lakekeeper#1379)

* chore(tests): Test with Iceberg 1.9.2 & 1.10.0 (lakekeeper#1267)

* feat: Enrich task metadata with concrete tabular type (lakekeeper#1383)

* feat: Add loadTable Snapshots filter (lakekeeper#1385)

* feat: add endpoint for fuzzy search of tabulars (lakekeeper#1387)

* feat: Update UI to 0.10.0 (lakekeeper#1390)

* feat(ui): Update UI to 0.10.1

* chore: Use lakekeeper re-exports in bin (lakekeeper#1391)

* fix(tabular-search): distance and docs for `searchterm is uuid` (lakekeeper#1393)

* chore(examples): Idempotent bucket creation in minimal example (lakekeeper#1386)

In the case where you already have a bucket created, like the "examples" bucket, I ran into an issue where the createbuckets service fails, and this prevents lakekeeper from starting back up.

This fix adds a simple minio flag to ignore buckets that already exist, making things even more user friendly

* feat: Make number of workers spawned for Expiration & Purge configurable (lakekeeper#1395)

* chore: release main (lakekeeper#1295)

* chore: added gif to readme (lakekeeper#1396)

* chore: remove unneded `#[allow(dead_code)]` (lakekeeper#1399)

* fix: Use FnOnce for queue & service registration

* Revert "fix: Use FnOnce for queue & service registration"

This reverts commit 47b03a0.

* chore(docs): Add 0.10 docs

* perf(db): remove `join namespace` from `active_tabulars` view (lakekeeper#1401)

* doc(db): how to connect to db and inspect schema (lakekeeper#1402)

* feat: implement `OpenFgaEntity` for `ServerId` (lakekeeper#1394)

* impl OpenFgaEntity
* Use the implementation

* fix: Use FnOnce for queue & service registration (lakekeeper#1404)

* chore(deps): update dependency mkdocs-material to v9.6.21 (lakekeeper#1406)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: Expose client-managed X-Iceberg-Access-Delegation (lakekeeper#1407)

* fix: Use higher consistency for some OpenFGA queries (lakekeeper#1408)

* feat: Improve Kubernetes Auth docs (lakekeeper#1415)

* chore: release 0.10.1

Release-As: 0.10.1

* fix: Endpoint stats for Project Endpoints (lakekeeper#1412)

* feat: Add create table guard to cleanup location on Failure (lakekeeper#1418)

* chore: Generate ID types with Macro (lakekeeper#1419)

* chore: Re-Export Tokio from lakekeeper-io create (lakekeeper#1420)

* fix: Add support for `write.metadata.metrics.` Table Properties (lakekeeper#1422)

* fix: Update UI to 0.10.2 (lakekeeper#1423)

* chore: release main (lakekeeper#1403)

* fix: Parse empty ProjectID headers as None (lakekeeper#1424)

* chore: release 0.10.2

Release-As: 0.10.2

* chore: release main (lakekeeper#1425)

* feat: Add `debug_migrate_before_serve` env var (lakekeeper#1426)

* feat: Move OpenFGA Authorizer to separate crate (lakekeeper#1421)

* chore(renovate): Group dependencies

* chore(renovate): ignore additional deps

* chore: Rename src/service -> src/server, trait Catalog -> CatalogStore (lakekeeper#1428)

* feat(examples): add k8s iceberg sink connector (avro) (lakekeeper#1336)


---------

Co-authored-by: Christian <[email protected]>

* chore(ci): Fix release please (lakekeeper#1433)

* feat: Expose License Information via API (lakekeeper#1432)

* fix(deps): update all non-major dependencies (lakekeeper#1429)

* chore(ci): Remove mgmt API version update via release-please

* chore: Restructure catalog_store into multiple modules (lakekeeper#1434)

* feat: Validate Downscoping works on Warehouse creation (lakekeeper#1437)

* chore(ci): Fix release please

* docs: Add info about installing sqlx to developer-guide.md (lakekeeper#1438)

* docs: Update developer-guide.md (lakekeeper#1439)

* chore(deps): update all non-major dependencies (lakekeeper#1436)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: Better normalization for ARNs in S3 Profile (lakekeeper#1441)

* chore(deps): update all non-major dependencies (lakekeeper#1442)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(main): release 0.10.3 (lakekeeper#1427)

* fix: Release Please CI outputs

* fix(ci): Revert 0.10.3 release

* chore(main): release 0.10.3 (lakekeeper#1446)

* feat: Introduce CatalogWarehouseOps & CatalogNamespaceOps abstractions (lakekeeper#1440)

* feat: Allow x-user-agent header (lakekeeper#1453)

* feat: Table & View Ops Abstractions, Improved Error Handling (lakekeeper#1454)

* fix: CORS allow access delegation & etag headers (lakekeeper#1455)

* fix: Headers should be lowercase (lakekeeper#1457)

* chore(tests): Add trino information_schema.tables test (lakekeeper#1456)

* chore: Introduce open-api feature to gate utoipa and swagger (lakekeeper#1458)

* chore: Release As 0.11

* fix: Debug assertion table identifier mismatch for signer (lakekeeper#1460)

* feat: Caching Short-Term-Credentials (STC) (lakekeeper#1459)

* feat: Warehouse Cache (lakekeeper#1462)

* chore(deps): update actions/setup-node action to v6 (lakekeeper#1443)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: Version based Warehouse Cache (lakekeeper#1465)

* feat: AuthZ Server and Project Ops (lakekeeper#1471)

* chore(deps): update github artifact actions (lakekeeper#1461)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: Rename release branch pattern to rel-*

* feat: Catalog returns full Namespace Hierarchy for nested Namespaces (lakekeeper#1472)

---------

Co-authored-by: Christian <[email protected]>
Co-authored-by: Christian Thiel <[email protected]>
Co-authored-by: Dao Thanh Tung <[email protected]>
Co-authored-by: Moritz Zielke <[email protected]>
Co-authored-by: Baptiste Gouhoury <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dolan Antenucci <[email protected]>
Co-authored-by: Anatoly Popov <[email protected]>
Co-authored-by: Andre Luis Anastacio <[email protected]>
Co-authored-by: Scott Haines <[email protected]>
Co-authored-by: Viktor Kessler <[email protected]>
Co-authored-by: Yohan Valencia <[email protected]>
Co-authored-by: Paul Roman <[email protected]>
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