Closed
Description
Description
The check-release
workflow is suddenly failing on the main
branch after #826 was merged. #826 shouldn't have introduced any changes that cause this:
https://github.com/jupyterlab/jupyter-ai/actions/runs/9487573058/job/26144875409
The important error message seems to be:
RuntimeError: failed to build image pip, setuptools, wheel because:
Traceback (most recent call last):
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/seed/embed/via_ap
p_data/via_app_data.py", line 54, in _install
with parent.non_reentrant_lock_for_key(wheel_img.name):
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py",
line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 142, in non_reentrant_lock_for_key
with _CountedFileLock(str(self.path / f"{name}.lock")):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 22, in __init__
super().__init__(lock_file)
TypeError: object.__init__() takes exactly one argument (the instance to
initialize)
Traceback (most recent call last):
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/seed/embed/via_ap
p_data/via_app_data.py", line 54, in _install
with parent.non_reentrant_lock_for_key(wheel_img.name):
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py",
line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 142, in non_reentrant_lock_for_key
with _CountedFileLock(str(self.path / f"{name}.lock")):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 22, in __init__
super().__init__(lock_file)
TypeError: object.__init__() takes exactly one argument (the instance to
initialize)
Traceback (most recent call last):
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/seed/embed/via_ap
p_data/via_app_data.py", line 54, in _install
with parent.non_reentrant_lock_for_key(wheel_img.name):
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/contextlib.py",
line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 142, in non_reentrant_lock_for_key
with _CountedFileLock(str(self.path / f"{name}.lock")):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py",
line 22, in __init__
super().__init__(lock_file)
TypeError: object.__init__() takes exactly one argument (the instance to
initialize)
Exception ignored in: <function BaseFileLock.__del__ at 0x7f7f8[648](https://github.com/jupyterlab/jupyter-ai/actions/runs/9487573058/job/26144875409#step:4:651)d3a0>
Traceback (most recent call last):
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/filelock/_api.py", line 365, in __del__
self.release(force=True)
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py", line 34, in release
with self.thread_safe:
^^^^^^^^^^^^^^^^
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
Exception ignored in: <function BaseFileLock.__del__ at 0x7f7f8648d3a0>
Traceback (most recent call last):
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/filelock/_api.py", line 365, in __del__
self.release(force=True)
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py", line 34, in release
with self.thread_safe:
^^^^^^^^^^^^^^^^
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
Exception ignored in: <function BaseFileLock.__del__ at 0x7f7f8648d3a0>
Traceback (most recent call last):
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/filelock/_api.py", line 365, in __del__
self.release(force=True)
File "/opt/pipx/venvs/hatch/lib/python3.11/site-packages/virtualenv/util/lock.py", line 34, in release
with self.thread_safe:
^^^^^^^^^^^^^^^^
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.9/x64/bin/jupyter-releaser", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/cli.py", line 121, in invoke
super().invoke(ctx)
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/click/core.py", line 1[688](https://github.com/jupyterlab/jupyter-ai/actions/runs/9487573058/job/26144875409#step:4:691), in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/cli.py", line 385, in bump_version
lib.bump_version(
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/lib.py", line 28, in bump_version
util.bump_version(version_spec, version_cmd=version_cmd, changelog_path=changelog_path)
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 351, in bump_version
return get_version()
^^^^^^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 175, in get_version
return run(cmd).split("\n")[-1]
^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 94, in run
raise e
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 86, in run
process = tee(cmd, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/tee.py", line 159, in run
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command 'hatch version' returned non-zero exit status 1.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/actions/prep_release.py", line 25, in <module>
run_action("jupyter-releaser bump-version")
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/actions/common.py", line 25, in run_action
_run(target, *args, **kwargs)
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 94, in run
raise e
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/util.py", line 86, in run
process = tee(cmd, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/runner/work/_actions/jupyter-server/jupyter_releaser/v2/jupyter_releaser/tee.py", line 159, in run
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command 'jupyter-releaser bump-version' returned non-zero exit status 1.