HyukjinKwon opened a new pull request, #659:
URL: https://github.com/apache/spark-connect-rust/pull/659

   ### What changes were proposed in this pull request?
   
   This follows up #644, which pinned the lint job 
(`.github/workflows/lint.yml`) to Rust 1.100.0. A post-merge review found two 
problems:
   
   1. **The cache key did not name the toolchain.** `key: ${{ runner.os 
}}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}` stayed the same after the pin, 
so the job restored the artifacts that floating stable had built, an exact hit 
that the pinned toolchain cannot use, and it built cold. The toolchain is now a 
job variable, `LINT_TOOLCHAIN`, which the install step and the cache key both 
use. A bump changes the key, and a comment says to update the version in 
`docs/contributing.md` and `AGENTS.md` with it.
   2. **A comment was wrong about the excluded crates.** `examples/wasm-udfs`, 
`examples/wasm-udf-inline` and `tests/wasm-udf` have no committed `Cargo.lock`, 
so each run resolves their dependencies afresh, as the workflows that build 
them do. The comment said that the shared target directory "has their 
dependencies". It now says what holds: the shared target has the artifacts of 
the dependencies that resolve to the same versions.
   
   ### Why are the changes needed?
   
   So that the pinned lint job reuses its cache, and its comments say what it 
does.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. CI only.
   
   ### How was this patch tested?
   
   The workflow parses as YAML, and the cache key resolves to 
`<os>-cargo-lint-1.100.0-<hash>`. This PR's own lint run uses the new key.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to