This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 9b726bcf28 Enable debug assertions in CI. (#20832)
9b726bcf28 is described below

commit 9b726bcf288e7779b855ead5b869b0a69aba5c92
Author: Stu Hood <[email protected]>
AuthorDate: Wed Mar 25 10:07:12 2026 -0700

    Enable debug assertions in CI. (#20832)
    
    ## Which issue does this PR close?
    
    - Closes #20831.
    
    ## Rationale for this change
    
    CI uses release profiles to allow tests to run more quickly (and
    potentially also to provide more coverage for the most realistic case
    for end users of the system). But debug assertions can expose real bugs
    / mistaken assumptions, and so they should be covered in CI as well.
    
    ## What changes are included in this PR?
    
    Adjust the Rust build profiles which are used in CI to enable debug
    assertions.
    
    ## Are these changes tested?
    
    Yes, by CI.
    
    ## Are there any user-facing changes?
    
    No.
---
 Cargo.toml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Cargo.toml b/Cargo.toml
index 7844f8d41a..dcd8dbaa05 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -239,6 +239,9 @@ unused_qualifications = "deny"
 # - ci: derived from `dev` but disables incremental builds and strips 
dependency
 #     symbols to keep CI artifacts small and reproducible.
 #     Run: cargo run --profile ci
+# - ci-optimized: derived from `release` but enables debug assertions, and uses
+#     lighter optimizations. Used for long-running CI tasks.
+#     Run: cargo run --profile ci-release
 #
 # If you want to optimize compilation, the `compile_profile` benchmark can be 
useful.
 # See `benchmarks/README.md` for more details.
@@ -260,6 +263,7 @@ strip = false            # Retain debug info for flamegraphs
 
 [profile.ci-optimized]
 inherits = "release"
+debug-assertions = true
 codegen-units = 16
 lto = "thin"
 strip = true
@@ -268,6 +272,7 @@ strip = true
 debug = false
 inherits = "dev"
 incremental = false
+debug-assertions = true
 
 # This rule applies to every package except workspace members (dependencies
 # such as `arrow` and `tokio`). It disables debug info and related features on


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to