Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deny errors and warns #89

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Fix deny errors and warns #89

merged 2 commits into from
Feb 13, 2025

Conversation

gkorland
Copy link
Contributor

@gkorland gkorland commented Feb 13, 2025

Summary by CodeRabbit

  • Chores
    • Streamlined internal configuration settings by removing outdated system targets.
    • Revised licensing rules by eliminating deprecated exceptions to better reflect current standards.

Copy link

coderabbitai bot commented Feb 13, 2025

Walkthrough

The pull request updates the deny.toml configuration file. In the [bans] section, the skip list is revised to remove multiple Windows targets and now includes only "wasi", "getrandom", and "windows-sys". Additionally, in the [licenses] section, an exception for the unicode-ident package (allowing the "Unicode-DFS-2016" license) has been removed, while all other entries remain unchanged.

Changes

File Change Summary
deny.toml - [bans]: Updated skip list by removing numerous Windows targets, now including only wasi, getrandom, and windows-sys.
- [licenses]: Removed the exception for unicode-ident that allowed the "Unicode-DFS-2016" license.

Sequence Diagram(s)

Poem

Hopping through lines of TOML with delight,
I saw Windows targets vanish out of sight.
"wasi", "getrandom", and "windows-sys" now shine through,
License tweaks make our config fresh and new.
I, the rabbit, cheer these changes — hip, hip, hooray!
🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.39%. Comparing base (a04fd0c) to head (23dd9d1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   85.39%   85.39%           
=======================================
  Files          28       28           
  Lines        3937     3937           
  Branches     3937     3937           
=======================================
  Hits         3362     3362           
  Misses        385      385           
  Partials      190      190           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gkorland gkorland requested a review from barakb February 13, 2025 04:15
@gkorland gkorland changed the title update lock file Fix deny errors and warns Feb 13, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a04fd0c and 23dd9d1.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • deny.toml (1 hunks)
🔇 Additional comments (1)
deny.toml (1)

5-5:

❓ Verification inconclusive

Verify impact on Windows builds.

The skip list has been significantly simplified, removing multiple Windows-specific targets. Please ensure this change won't break Windows builds.

Let's check the dependency tree for any Windows-specific dependencies:


🏁 Script executed:

#!/bin/bash
# Check Cargo.lock for Windows dependencies
if [ -f "Cargo.lock" ]; then
    echo "Analyzing Cargo.lock for Windows dependencies..."
    rg -i "windows" Cargo.lock
fi

Length of output: 1076


Action Required: Verify Windows Build Stability

The skip list in the [bans] section now only contains "wasi", "getrandom", and "windows-sys", meaning several Windows-specific targets have been removed. While the Cargo.lock analysis still shows multiple Windows-specific dependencies (e.g., multiple versions of "windows-sys", "windows-targets", and various winapi entries), it's not immediately clear if these removals will affect the Windows build process. Please verify that maintaining only "windows-sys" in the skip list is intentional and does not break any Windows-specific functionality.

Comment on lines 12 to 14
exceptions = [
{ name = "unicode-ident", allow = ["Unicode-DFS-2016"] }, # unique license
{ name = "ring", allow = ["LicenseRef-ring"] } # ring uses a specific BoringSSL license that does not match the standard text so requires allowing the specific hash
]
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Verify license compliance after removing unicode-ident exception.

The unicode-ident package's Unicode-DFS-2016 license exception has been removed. Please verify that this package is no longer used or that its license is now covered by the allowed licenses.

Let's check if the unicode-ident package is still in use:


🏁 Script executed:

#!/bin/bash
# Check Cargo.lock for unicode-ident package
if [ -f "Cargo.lock" ]; then
    echo "Checking for unicode-ident package..."
    rg "unicode-ident" Cargo.lock
fi

Length of output: 197


Action Required: Reintroduce or Address Unicode-ident License Exception

The removal of the Unicode-DFS-2016 license exception for unicode-ident appears problematic because the dependency is still present in the project (as confirmed by the Cargo.lock check). Please review the license terms for unicode-ident:

  • Verify that the current license compliance policies indeed allow this package without an explicit exception.
  • If the license isn’t covered, either reintroduce a specific exception for it in deny.toml or consider removing/updating the dependency.

@gkorland gkorland merged commit 10b81a4 into main Feb 13, 2025
9 checks passed
@gkorland gkorland deleted the deps-update branch February 13, 2025 06:03
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