Repository navigation
fix(ci): lint the whole workspace so jcode-sdk is no longer skipped - #166
Closed
KooshaPari wants to merge 1 commit into
Closed
KooshaPari wants to merge 1 commit into
KooshaPari wants to merge 1 commit into
Conversation
The clippy gate ran without --workspace, so cargo only built the root package's dependency graph. crates/jcode-sdk is a workspace member with no dependents and was never linted: the green run 39390720989 shows the clippy step checking 93 crates against a 94-package workspace, with jcode-sdk the only member absent. That gap was not theoretical. cargo test -p jcode-sdk parity in the same run emitted a dead_code warning for the unused type alias Subscriber at crates/jcode-sdk/src/client.rs:330. Removing the dead alias and adding --workspace closes both the violation and the blind spot. tx-agent: jcode tx-validated: cargo-check tx-scope: .github/workflows/ci.yml, crates/jcode-sdk/src/client.rs tx-intent: Close the CI clippy workspace-coverage gap and remove the dead code it hid
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
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 |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by free · Input: 38.2K · Output: 3.5K · Cached: 112.7K |
CodeAnt Nitpicks1 code suggestion1. The local helper still runs Clippy without
|
CodeAnt PR Risk: Low Risk
Assessed commit: |
KooshaPari
added a commit
that referenced
this pull request
Oct 21, 2026
…rkspace-lint-fixes Carries PR #166's --workspace clippy gate into PR #169 so this branch's own CI validates the lint fixes it ships. The gate newly compiles jcode-telemetry-core and jcode-setup-hints (never built by the root package's dependency graph) plus jcode-sdk, which is why the jcode-sdk dead-code hunk from #166 is required here too. Conflict-free: the two branches touch disjoint files (#169: telemetry-core + setup-hints; #166: ci.yml + jcode-sdk/src/client.rs). No test removed or weakened. tx-agent: jcode tx-validated: pending-local-clippy tx-task: #170 tx-scope: ci.yml, jcode-sdk, jcode-telemetry-core, jcode-setup-hints tx-intent: make the workspace clippy gate self-validating on this branch
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Closes #165
What this changes
1.
.github/workflows/ci.yml— close the coverage gapThe clippy gate in job
quality("Quality Guardrails"), step "Run clippy with warnings denied", ran without--workspace:Cargo therefore built only the root package's dependency graph, not the set of workspace members.
crates/jcode-sdkis a workspace member with no dependents, so it was unreachable from the root and was silently never linted.Only this one step changed. No other job, workflow, timeout, or cache setting was touched.
2.
crates/jcode-sdk/src/client.rs— remove the dead code the gap was hidingRemoved the unused
type Subscriber = (u64, Option<String>, Sender<ApiEvent>);and its attached doc comment.SubscriberList(a distinct alias) is untouched and still used. No other code in the crate changed; the alias had no other references.Why this had to be done together
The gate and the tests disagreed. Green run
39390720989proves the gate's blind spot: the clippy step checked 93 crates against a 94-package workspace, andjcode-sdkwas the only member absent. The same run's latercargo test -p jcode-sdk paritystep did compile the crate and emitted:So a
dead_codewarning sat in the workspace onmasterfor the entire life of the gate, and the gate was structurally unable to see it. Adding--workspacealone would turn that warning into a hard failure; removing the alias alone would leave the blind spot in place for every future member without dependents.Validation
Run on the desk compute node (
desk, WSL2), not the laptop.jcode-sdkalone — VERIFIED, before and afterBefore the edit, the violation reproduces and fails the gate:
After the edit, same command, clean:
Whole-workspace — UNVERIFIED (blocked, not passed)
cargo clippy --workspace --all-targets --all-features -- -D warningswas not run to completion end-to-end. The desk node was saturated at the time: 8 GB available with 0 bytes of swap, load average 8.9/20.4/36.3, seven other cargo/rustc processes, and ten CI runs queued against the singledesk-kcode-1runner. That box wedged for 1h38m earlier today on a comparable--workspacejob, so starting another cold-cache 94-crate build there would have risked reproducing the incident and blocking this repo's only CI runner.No local fallback was used either: the laptop has no
target/cache, so the same command there is a full cold build of the whole workspace.Treat the whole-workspace result as unproven by this PR. The supporting reasoning — which is not a substitute for the run — is that
--workspacechanges only which packages are selected, not the lint configuration, and the other 93 members already passed the identical--all-targets --all-features -- -D warningsgate in run39390720989. The one member it adds isjcode-sdk, verified clean above. That reasoning predicts a pass; it does not establish one. This PR's own CI run will exercise the real command, and that run is the authoritative check.Scope
Exactly two files,
1 file changed, 1 insertion(+), 4 deletions(-):.github/workflows/ci.yml(1 line)crates/jcode-sdk/src/client.rs(3 lines: the alias and its doc comment)CodeAnt-AI Description
Lint every workspace crate in CI
What Changed
jcode-sdk, for lint warnings.Impact
✅ jcode-sdk linted in CI✅ Dead-code warnings caught before merge💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.