Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8648

[Rust] Optimize Rust CI Build Times

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

      In the Rust CI workflows (rust_build.sh, rust_test.sh), there are some build options used that are at odds with each other, resulting in multiple redundant builds where a smaller number could do the same job. The following tweaks, at minimal, could reduce this, speeding up build times:

      • Ensure that RUSTFLAGS="-D warnings" is used for all cargo commands. Currently, it's only used for a single command (the build --all-targets in rust_build.sh). Subsuquent runs of cargo will ignore this first build, since RUSTFLAGS has changed.
      • Don't run examples in release mode, as that would force a new (and slower) rebuild, when the examples have already been built in debug mode.

      Attachments

        Issue Links

          Activity

            People

              markhildreth Mark Hildreth
              markhildreth Mark Hildreth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m