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 ci #1135

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix ci #1135

wants to merge 4 commits into from

Conversation

XuZhang99
Copy link
Collaborator

@XuZhang99 XuZhang99 commented Nov 7, 2024

Summary by CodeRabbit

  • New Features

    • Added installation of the huggingface-hub package to enhance ComfyUI testing capabilities.
  • Chores

    • Minor adjustments to comments and formatting for improved clarity.
  • Refactor

    • Updated handling of device management in the OneDiffControlLora class for improved operational behavior during the model's pre-run phase.

Copy link
Contributor

coderabbitai bot commented Nov 7, 2024

Walkthrough

The changes in the .github/workflows/examples.yml file involve the addition of a pip installation command for the huggingface-hub package within the CI workflow. This command is added after uninstalling the transformer-engine package, indicating an update to the dependencies needed for testing ComfyUI. Minor adjustments to comments and formatting were also made, but these do not alter the overall functionality or structure of the workflow. Additionally, the onediff_controlnet.py file sees modifications to the OneDiffControlLora class, particularly in the handling of the device attribute and updates to the pre_run and copy methods.

Changes

File Change Summary
.github/workflows/examples.yml Added pip installation command for huggingface-hub==0.25.2 after uninstalling transformer-engine. Minor formatting and comment adjustments made.
onediff_comfy_nodes/modules/oneflow/onediff_controlnet.py Removed device parameter from constructor and copy method in OneDiffControlLora. Updated logic in pre_run method for dynamic operation handling based on manual_cast_dtype.

Sequence Diagram(s)

sequenceDiagram
    participant CI as CI Workflow
    participant Docker as Docker Container
    participant Pip as Pip Installer

    CI->>Docker: Uninstall transformer-engine
    Docker->>Pip: Run pip install huggingface-hub==0.25.2
    Pip-->>Docker: Installation complete
Loading

🐰 "In the garden of code, we grow,
With huggingface-hub, our tests now flow.
A sprinkle of changes, a dash of delight,
ComfyUI's journey is now shining bright!
With each little tweak, our project takes flight!" 🌼


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 761fef5 and 91b1d38.

📒 Files selected for processing (1)
  • .github/workflows/examples.yml (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/examples.yml

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 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
Contributor

@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: 0

🧹 Outside diff range and nitpick comments (1)
.github/workflows/examples.yml (1)

298-298: Document version requirement in requirements.txt.

Consider adding the huggingface-hub version requirement to the appropriate requirements.txt file instead of installing it directly in the workflow. This would make the dependency requirement more visible and maintainable.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between a6eafe5 and 145cd53.

📒 Files selected for processing (1)
  • .github/workflows/examples.yml (1 hunks)
🔇 Additional comments (1)
.github/workflows/examples.yml (1)

298-298: LGTM! Verify huggingface-hub version requirement.

The addition of huggingface-hub installation looks good. However, let's verify if version 0.25.2 is specifically required.

✅ Verification successful

Version 0.25.2 is higher than required dependencies

Looking at the codebase:

  1. The requirements.txt in onediff_comfy_nodes/docs/sd3/requirements.txt specifies huggingface-hub==0.23.3
  2. No other version constraints found in setup files or other configuration files
  3. The codebase primarily uses huggingface-hub for downloading models and doesn't rely on version-specific features

Installing a newer version (0.25.2) than what's specified in requirements (0.23.3) should not cause compatibility issues, as huggingface-hub maintains backward compatibility.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if huggingface-hub version is mentioned in requirements files
# or if there are version constraints in other files.

echo "Checking requirements files for huggingface-hub version constraints..."
rg -l "huggingface-hub" | grep -i "requirements.txt"

echo "Checking for huggingface-hub imports and version checks in Python files..."
rg "from huggingface_hub" -A 3

Length of output: 1942


Script:

#!/bin/bash
# Check the content of the requirements file found and any other potential version constraints
echo "Checking content of found requirements file..."
cat onediff_comfy_nodes/docs/sd3/requirements.txt

echo -e "\nChecking for any version constraints in setup files..."
rg "huggingface-hub" -A 2 -B 2 setup.py setup.cfg pyproject.toml 2>/dev/null

echo -e "\nChecking ComfyUI related files for huggingface-hub usage..."
rg "huggingface" -A 2 -B 2 $(fd -t f . onediff_comfy_nodes)

Length of output: 22888

@XuZhang99 XuZhang99 changed the title install huggingface-hub==0.25.2 Fix ci Nov 7, 2024
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.

1 participant