-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[CI/Build] Use python 3.12 in cuda image #8133
Changes from all commits
7b4f697
c5772e0
195b19e
3c430c1
4d7ed46
1f636d2
09481e8
731ff2e
8ea8e9c
b2e05b4
a3c6f8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ def test_logger_configuring_can_be_disabled(): | |
config behavior, however mocks are used to ensure no changes in behavior or | ||
configuration occur.""" | ||
|
||
with patch("logging.config.dictConfig") as dict_config_mock: | ||
with patch("vllm.logger.dictConfig") as dict_config_mock: | ||
_configure_vllm_root_logger() | ||
dict_config_mock.assert_not_called() | ||
|
||
|
@@ -175,9 +175,9 @@ def test_custom_logging_config_is_parsed_and_used_when_provided(): | |
logging_config_file.flush() | ||
with patch("vllm.logger.VLLM_LOGGING_CONFIG_PATH", | ||
logging_config_file.name), patch( | ||
"logging.config.dictConfig") as dict_config_mock: | ||
"vllm.logger.dictConfig") as dict_config_mock: | ||
_configure_vllm_root_logger() | ||
assert dict_config_mock.called_with(valid_logging_config) | ||
dict_config_mock.assert_called_with(valid_logging_config) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is failing and I'm not sure what the expected behavior of this test was before, looking into it a bit to try to understand There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I think that the mock on The test was passing before because |
||
|
||
|
||
@patch("vllm.logger.VLLM_CONFIGURE_LOGGING", 0) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build without this failed with
I verified this was because the
vllm-base
target never updates setuptools, so it still has version45.2.0
installed, which causes this error with a very misleading message.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why
setuptools
is at45.2.0
specifically and why being on an older version leads to this error message? The message doesn't mention anything about version being outdated/incompatible, only thatsetuptools
is nto in the build env.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it took some googling around to find that others ran into the same error when setuptools is just out of date- I don't know why that's the case but I'd guess it's just some api incompatibility that's not quite correctly handled.
You can reproduce by installing setuptools==45.2.0 and then trying to install transformers-stream-generator in a fresh python 3.12 venv
Yeah idk, from the build logs it looks like that's just what's installed when we do
apt-get install -y python3.12 python3.12-dev python3.12-venv
, I see this in the log: