Skip to content

fix(telemetry): clear the three clippy warnings in jcode-telemetry-core - #90

Merged
KooshaPari merged 1 commit into
masterfrom
fix/telemetry-clippy-warnings
Oct 16, 2026
Merged

KooshaPari merged 1 commit into
masterfrom
fix/telemetry-clippy-warnings

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

User description

Summary

  • cargo +stable clippy -p jcode-telemetry-core -- -D warnings failed on c6e594914 with three lints.
  • The file-name check now uses map, the background worker logs a start failure, and sender no longer names a lifetime.
  • The error is logged rather than dropped with Result::ok(), which the swallowed-error ratchet counts.

Test plan

  • cargo +stable clippy -p jcode-telemetry-core -- -D warnings exit 0
  • cargo +stable test -p jcode-telemetry-core --lib 62 passed
  • python3 scripts/check_swallowed_error_budget.py exit 0
  • cargo +stable fmt --all -- --check exit 0
  • Hosted CI cannot start: workflow dispatch returns HTTP 422, Actions disabled

tx-agent: jcode
tx-validated: test


CodeAnt-AI Description

Report telemetry background worker startup failures

What Changed

  • Logs a warning if the telemetry background worker cannot start; the host continues without crashing.

Impact

✅ Clearer telemetry startup failures

💡 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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

Stable clippy -D warnings failed on master. Map the file-name check,
log a background-worker start failure, and elide the needless lifetime.
Result::ok would have grown the swallowed-error ratchet, so the error is logged instead.

tx-agent: jcode
tx-validated: test
tx-task: own.7
tx-scope: jcode-telemetry-core
tx-intent: make the telemetry crate pass clippy -D warnings
Copilot AI balanced review requested due to automatic review settings October 16, 2026 03:14
@codeant-ai

codeant-ai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR f994538 Oct 16, 2026 · 03:14 03:18

@codeant-ai

codeant-ai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@KooshaPari
KooshaPari merged commit 7444e11 into master Oct 16, 2026
5 of 6 checks passed
@codeant-ai codeant-ai Bot added the size:S This PR changes 10-29 lines, ignoring generated files label Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 92ada843-0384-421c-b91d-17008e89e25d
📥 Commits

Reviewing files that changed from the base of the PR and between c6e5949 and f994538.

📒 Files selected for processing: 2
  • crates/jcode-telemetry-core/src/concurrency.rs
  • crates/jcode-telemetry-core/src/delivery.rs
+--------------------------------------------------------------------------------------------------------------------------------+
| Design using services. Design in terms of services-independent, concurrent objects behind well-defined, consistent interfaces. |
+--------------------------------------------------------------------------------------------------------------------------------+
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

KooshaPari added a commit that referenced this pull request Oct 16, 2026
…y fix (#91)

The snapshot still described 2e39f50 as the parent and left #23/#25 mergeable as UNKNOWN. A 03:34Z recheck shows master at #90, Actions still HTTP 422, and those two PRs CONFLICTING and MERGEABLE.

tx-agent: jcode
tx-validated: manual
tx-task: ownership-ggo
tx-scope: docs/PROJECT_OWNERSHIP_HANDOFF.md
tx-intent: keep the ownership handoff aligned with live master
@kilo-code-bot

kilo-code-bot Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • crates/jcode-telemetry-core/src/concurrency.rs - 1 change (clippy: needless option wrapping → map)
  • crates/jcode-telemetry-core/src/delivery.rs - 2 changes (log background-worker start failure; elide needless sender lifetime)

Reviewed by free · Input: 84.1K · Output: 12.2K · Cached: 131.6K

@KooshaPari
KooshaPari deleted the fix/telemetry-clippy-warnings branch November 27, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants