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

Add installation validation #616

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Add installation validation #616

merged 2 commits into from
Jan 20, 2025

Conversation

webfiltered
Copy link
Contributor

@webfiltered webfiltered commented Jan 14, 2025

Installation validation

Requires:

Validates the following on startup:

  • Installation base path
  • Virtual environment
  • Python functionality
  • Required python packages
  • git
  • VC redistributable

Adds maintenance tasks available through IPC:

  • Reset virtual environment (clears the .venv dir)
  • Clear uv cache

┆Issue is synchronized with this Notion page by Unito

@webfiltered webfiltered requested review from a team as code owners January 14, 2025 04:28
@webfiltered webfiltered force-pushed the virtual-validation branch 2 times, most recently from 0b356f9 to 6dd91e1 Compare January 17, 2025 03:52
Add basic validation for venv, UV, and python

Until UI is in place to perform auto-fix / ignore issues, validation should only log issues.

Add basic validation for venv, UV, and python

Instantiate venv object earlier: allows validation

[Refactor] Simplify code: pass ComfyInstallation

Ensure users can still start app if validation fails

Add install validation

Validate ComfyUI core venv reqs on startup
Add terminal IPC
Fix ipc return value passed

Add VC redist & handlers

Add uv clear and reset

Add current working directory for uv command.

Helps it find the correct .venv to run pip in.

nit - Remove completed TODO [skip ci]

nit

nit

Remove redundant code

Fix basePath check ignored when upgrading config

Load maintenance page on first validation error

Allow uninstall / reinstall if startup fails

nit - ESLint

nit

nit

[Refactor] Remove redundant code
@huchenlei huchenlei merged commit 95bc799 into main Jan 20, 2025
6 checks passed
@huchenlei huchenlei deleted the virtual-validation branch January 20, 2025 17:09
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.

3 participants