Skip to content

Conversation

@huchenlei
Copy link
Contributor

Ref: #7021 (comment)

The desktop app is also affected as it is currently shipping the frontend package twice, increasing the oveall disk space consumption for users.

This PR bypass the import of built-in frontend package and frontend version check if the user launches with --front-end-root or --front-end-version argument to use alternative frontend implementation.

@huchenlei huchenlei added Frontend Issue relates to the frontend UI (litegraph). dependencies Important labels Mar 10, 2025
@huchenlei huchenlei requested a review from Kosinkadink as a code owner March 10, 2025 19:19
robinjhuang
robinjhuang previously approved these changes Mar 10, 2025
Copy link
Member

@robinjhuang robinjhuang left a comment

Choose a reason for hiding this comment

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

Tested and works on Desktop

webfiltered
webfiltered previously approved these changes Mar 10, 2025
with open(req_path, "r", encoding="utf-8") as f:
required_frontend = parse_version(f.readline().split("=")[-1])
if frontend_version < required_frontend:
logging.warning("________________________________________________________________________\nWARNING WARNING WARNING WARNING WARNING\n\nInstalled frontend version {} is lower than the recommended version {}.\n\n{}\n________________________________________________________________________".format('.'.join(map(str, frontend_version)), '.'.join(map(str, required_frontend)), frontend_install_warning_message()))
Copy link
Member

Choose a reason for hiding this comment

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

This warning needs to show up when the comfyui_frontend_package.version doesn't exist, it is for those who update and run comfyui manually in the console so it needs to be visible without scrolling up after launching comfyui.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

version("comfyui-frontend-package") will get the package version before when we expose it in 1.11.8.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can delay the execution of check_version to the original spot, but it breaks the overall execution flow.

Should we make a standard mechanism to delay every warning during startup after the server start log?

Copy link
Member

Choose a reason for hiding this comment

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

yeah we should or else people will probably ignore them.

@huchenlei huchenlei dismissed stale reviews from webfiltered and robinjhuang via cfbe4b4 March 11, 2025 00:44
@comfyanonymous comfyanonymous merged commit 9468976 into master Mar 11, 2025
6 checks passed
@comfyanonymous comfyanonymous deleted the ignore_fe_package branch March 11, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Frontend Issue relates to the frontend UI (litegraph). Important

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants