refactor(clp-tdl-package): Move clp_binary_path and s3_credential_env into a shared task::utils module. - #2508
refactor(clp-tdl-package): Move clp_binary_path and s3_credential_env into a shared task::utils module.#2508LinZhihao-723 wants to merge 3 commits into
clp_binary_path and s3_credential_env into a shared task::utils module.#2508Conversation
…env` into a shared `task::utils` module.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe task package adds shared utilities for CLP binary paths and S3 credential environment variables. The compression flow uses these utilities instead of local implementations. ChangesTask utility centralization
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change only centralizes existing task helpers without changing their behavior, visibility outside the package, credential handling, or subprocess execution. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.97.1)Clippy execution timed out 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. Comment |
Description
clp_binary_pathands3_credential_envare currently private to the compression task, but neither is specific to compression: the former resolves any CLP binary underCLP_HOME/bin, and the latter resolves the AWS credential env vars that any task spawning a CLP binary against S3 needs to forward. The upcoming query tasks need both.This PR moves the two functions, along with the
s3_credential_env_credentialsunit test, into a newtask::utilsmodule. The move is verbatim: the only edits are the functions' visibility (fn->pub(super) fn, keeping them internal totask) and the imports that follow them. There's no behaviour change.Checklist
breaking change.
Validation performed
cargo +nightly fmt --all -- --checkpasses.cargo +nightly clippy --workspace --all-targets -- -D warningspasses.cargo nextest run -p clp-tdl-packagepasses (10 run, 10 passed), withs3_credential_env_credentialsnow running astask::utils::tests::s3_credential_env_credentialsand the remainingcompress.rstests unchanged.Summary by CodeRabbit