Skip to content

fix(ci): Fix Windows build path limits and unify rust-cache configuration#788

Merged
paleolimbot merged 2 commits into
apache:mainfrom
wherobots:fix/CI_R
Apr 27, 2026
Merged

fix(ci): Fix Windows build path limits and unify rust-cache configuration#788
paleolimbot merged 2 commits into
apache:mainfrom
wherobots:fix/CI_R

Conversation

@pwrliang
Copy link
Copy Markdown
Contributor

@pwrliang pwrliang commented Apr 26, 2026

The Windows CI pipeline is currently failing on a forked repo (https://github.com/wherobots/sedona-db-gpu-tester/actions/runs/24955442999/job/73072769657) during the compilation of the sedonadb package, specifically when building the aws-lc-sys Rust dependency.

The root cause is the default Windows MAX_PATH limitation (260 characters). Because Cargo and CMake create deeply nested build directories, the absolute path for target artifacts exceeds this limit. This causes the compiler (GCC/MSYS2) to silently fail to create directory trees, resulting in a fatal file IO error when it tries to write the dependency (.d) files.

Changes

  • Dynamic Target Directory: Added a Configure Target Directory step that sets a dynamically shortened SEDONADB_TARGET_DIR on Windows (D:/a/t) to safely bypass the compiler's 260-character limit. Mac and Linux continue to use the standard repository path.

  • Dynamic Cache Workspace: Extracted the cache mapping into a new CACHE_WORKSPACE environment variable. This allows the Swatinem/rust-cache@v2 action to correctly locate and cache the build artifacts across all platforms, preserving the caching optimization the original workflow intended

@github-actions github-actions Bot requested a review from paleolimbot April 26, 2026 13:19
@pwrliang pwrliang changed the title Enable Long Paths support on Windows to avoid issues with long paths in the Rust target directory fix(ci): Enable Long Paths support on Windows to avoid issues with long paths in the Rust target directory Apr 26, 2026
Add License

Enable long path support

Remove gpu workflow

Fix
@pwrliang pwrliang marked this pull request as draft April 26, 2026 13:39
@pwrliang pwrliang changed the title fix(ci): Enable Long Paths support on Windows to avoid issues with long paths in the Rust target directory fix(ci): Fix Windows build path limits and unify rust-cache configuration Apr 26, 2026
@pwrliang pwrliang marked this pull request as ready for review April 27, 2026 11:56
Copy link
Copy Markdown
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

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

This is a super annoying limitation...thank you for fixing!

@paleolimbot paleolimbot merged commit 5cff82a into apache:main Apr 27, 2026
8 checks passed
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.

2 participants