spread tests: notebook-operators failing to build
Metadata
Current evaluation
notebook-operators began building after upstream dependency changes; merged PR #1217 (commit 0f4591a9) re-enabled its spread test.
Resolution: closed not a bug
Reason: The maintainer closed the report after the CI build passed without a Charmcraft fix, attributing recovery to upstream changes. PR #1217 subsequently re-enabled the test in commit 0f4591a9.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
https://github.com/canonical/charmcraft/actions/runs/5593782587
### To Reproduce
1. `git clone https://github.com/canonical/notebook-operators`
2. `cd notebook-operators`
3. `charmcraft pack --include-all-charms`
This doesn't seem to be an issue on 2.3.1, so it could be fixed by the unmerged fixes at https://github.com/canonical/charmcraft/pull/1165
### Environment
CI
### charmcraft.yaml
```shell
Happens for both the jupyter-controller and jupyter-ui charms: https://github.com/canonical/notebook-operators
```
### Relevant log output
```shell
2023-07-19 14:49:28.659 :: :: :: Collecting pyyaml==5.4 (from -r requirements.txt (line 56))
2023-07-19 14:49:28.690 :: :: :: Downloading PyYAML-5.4.tar.gz (174 kB)
2023-07-19 14:49:28.700 :: :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.8/174.8 kB 24.3 MB/s eta 0:00:00
2023-07-19 14:49:28.822 :: :: :: Installing build dependencies: started
2023-07-19 14:51:25.544 :: :: :: Installing build dependencies: still running...
2023-07-19 14:52:33.307 :: :: :: Installing build dependencies: still running...
2023-07-19 14:53:33.207 :: :: :: Installing build dependencies: finished with status 'done'
2023-07-19 14:53:33.207 :: :: :: Getting requirements to build wheel: started
2023-07-19 14:53:33.460 :: :: :: Getting requirements to build wheel: finished with status 'error'
2023-07-19 14:53:33.470 :: :: :: error: subprocess-exited-with-error
2023-07-19 14:53:33.470 :: :: ::
2023-07-19 14:53:33.470 :: :: :: × Getting requirements to build wheel did not run successfully.
2023-07-19 14:53:33.475 :: :: :: │ exit code: 1
2023-07-19 14:53:33.475 :: :: :: ╰─> [62 lines of output]
2023-07-19 14:53:33.475 :: :: :: running egg_info
2023-07-19 14:53:33.475 :: :: :: writing lib3/PyYAML.egg-info/PKG-INFO
2023-07-19 14:53:33.475 :: :: :: writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
2023-07-19 14:53:33.475 :: :: :: writing top-level names to lib3/PyYAML.egg-info/top_level.txt
2023-07-19 14:53:33.475 :: :: :: /tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
2023-07-19 14:53:33.475 :: :: :: !!
2023-07-19 14:53:33.478 :: :: ::
2023-07-19 14:53:33.478 :: :: :: ********************************************************************************
2023-07-19 14:53:33.478 :: :: :: The license_file parameter is deprecated, use license_files instead.
2023-07-19 14:53:33.478 :: :: ::
2023-07-19 14:53:33.478 :: :: :: By 2023-Oct-30, you need to update your project and remove deprecated calls
2023-07-19 14:53:33.478 :: :: :: or your builds will no longer be supported.
2023-07-19 14:53:33.478 :: :: ::
2023-07-19 14:53:33.478 :: :: :: See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
2023-07-19 14:53:33.478 :: :: :: ********************************************************************************
2023-07-19 14:53:33.478 :: :: ::
2023-07-19 14:53:33.478 :: :: :: !!
2023-07-19 14:53:33.478 :: :: :: parsed = self.parsers.get(option_name, lambda x: x)(value)
2023-07-19 14:53:33.478 :: :: :: Traceback (most recent call last):
2023-07-19 14:53:33.478 :: :: :: File "/root/parts/charm/build/staging-venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
2023-07-19 14:53:33.478 :: :: :: main()
2023-07-19 14:53:33.478 :: :: :: File "/root/parts/charm/build/staging-venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
2023-07-19 14:53:33.478 :: :: :: json_out['return_val'] = hook(**hook_input['kwargs'])
2023-07-19 14:53:33.478 :: :: :: File "/root/parts/charm/build/staging-venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
2023-07-19 14:53:33.478 :: :: :: return hook(config_settings)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
2023-07-19 14:53:33.478 :: :: :: return self._get_build_requires(config_settings, requirements=['wheel'])
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
2023-07-19 14:53:33.478 :: :: :: self.run_setup()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
2023-07-19 14:53:33.478 :: :: :: exec(code, locals())
2023-07-19 14:53:33.478 :: :: :: File "<string>", line 271, in <module>
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
2023-07-19 14:53:33.478 :: :: :: return distutils.core.setup(**attrs)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
2023-07-19 14:53:33.478 :: :: :: return run_commands(dist)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
2023-07-19 14:53:33.478 :: :: :: dist.run_commands()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
2023-07-19 14:53:33.478 :: :: :: self.run_command(cmd)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
2023-07-19 14:53:33.478 :: :: :: super().run_command(command)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
2023-07-19 14:53:33.478 :: :: :: cmd_obj.run()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
2023-07-19 14:53:33.478 :: :: :: self.find_sources()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
2023-07-19 14:53:33.478 :: :: :: mm.run()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
2023-07-19 14:53:33.478 :: :: :: self.add_defaults()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
2023-07-19 14:53:33.478 :: :: :: sdist.add_defaults(self)
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
2023-07-19 14:53:33.478 :: :: :: super().add_defaults()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
2023-07-19 14:53:33.478 :: :: :: self._add_defaults_ext()
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
2023-07-19 14:53:33.478 :: :: :: self.filelist.extend(build_ext.get_source_files())
2023-07-19 14:53:33.478 :: :: :: File "<string>", line 201, in get_source_files
2023-07-19 14:53:33.478 :: :: :: File "/tmp/pip-build-env-2ei64txa/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
2023-07-19 14:53:33.478 :: :: :: raise AttributeError(attr)
2023-07-19 14:53:33.478 :: :: :: AttributeError: cython_sources
2023-07-19 14:53:33.478 :: :: :: [end of output]
2023-07-19 14:53:33.479 :: :: ::
2023-07-19 14:53:33.479 :: :: :: note: This error originates from a subprocess, and is likely not a problem with pip.
2023-07-19 14:53:33.479 :: :: :: error: subprocess-exited-with-error
2023-07-19 14:53:33.479 :: :: ::
2023-07-19 14:53:33.479 :: :: :: × Getting requirements to build wheel did not run successfully.
2023-07-19 14:53:33.479 :: :: :: │ exit code: 1
2023-07-19 14:53:33.479 :: :: :: ╰─> See above for output.
2023-07-19 14:53:33.479 :: :: ::
2023-07-19 14:53:33.479 :: :: :: note: This error originates from a subprocess, and is likely not a problem with pip.
2023-07-19 14:53:33.826 :: :: Traceback (most recent call last):
2023-07-19 14:53:33.833 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 421, in <module>
2023-07-19 14:53:33.847 :: :: main()
2023-07-19 14:53:33.847 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 416, in main
2023-07-19 14:53:33.847 :: :: builder.build_charm()
2023-07-19 14:53:33.847 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 89, in build_charm
2023-07-19 14:53:33.847 :: :: self.handle_dependencies()
2023-07-19 14:53:33.847 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 303, in handle_dependencies
2023-07-19 14:53:33.848 :: :: self._install_dependencies(staging_venv_dir)
2023-07-19 14:53:33.848 :: :: File "/snap/charmcraft/1434/lib/charmcraft/instrum.py", line 152, in _f
2023-07-19 14:53:33.848 :: :: return func(*args, **kwargs)
2023-07-19 14:53:33.848 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 257, in _install_dependencies
2023-07-19 14:53:33.849 :: :: _process_run(cmd)
2023-07-19 14:53:33.849 :: :: File "/snap/charmcraft/1434/lib/charmcraft/charm_builder.py", line 357, in _process_run
2023-07-19 14:53:33.849 :: :: raise RuntimeError(f"Subprocess command {cmd} execution failed with retcode {retcode}")
2023-07-19 14:53:33.849 :: :: RuntimeError: Subprocess command ['/root/parts/charm/build/staging-venv/bin/pip3', 'install', '--upgrade', '--no-binary', ':all:', '--requirement=requirements.txt'] execution failed with retcode 1
2023-07-19 14:53:34.152 :: Parts processing error: Failed to run the build script for part 'charm'.
2023-07-19 14:53:37.235 :: Failed to build charm for bases index '0'.
2023-07-19 14:53:37.251 :: Full execution log: '/home/lengau/.local/state/charmcraft/log/charmcraft-20230719-144743.734332.log'
2023-07-19 14:53:37.785 charmcraft internal error: CalledProcessError(1, ['charmcraft', 'pack', '--verbose', '--project-dir=/home/lengau/Work/Test/charms/notebook-operators/charms/jupyter-ui'])
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | notebook-operators began building after upstream dependency changes; merged PR #1217 (commit 0f4591a9) re-enabled its spread test. | |
| stealth/space-bunny-alpha | — | closed resolved | notebook-operators builds passed after upstream dependency changes; the spread test was re-enabled by merged PR #1217 (commit 0f4591a9). | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Upstream dependency updates resolved the PyYAML build failure breaking notebook-operators spread tests. The issue closed after tests passed, and the test suite was re-enabled via merged PR #1217. | |
| qwen/qwen3.6-35b-a3b | — | — | Upstream dependency updates resolved the PyYAML build failure. The spread test was re-enabled in PR #1217, closing this issue. | |
| qwen/qwen3.6-35b-a3b | — | — | Upstream changes resolved the notebook-operators build failure. The CI test was re-enabled and the issue closed after PR #1217 merged, restoring the test and adding new ones. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Upstream changes resolved the PyYAML build failure. The affected spread test was re-enabled and merged via PR #1217, closing the issue. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1217
(confidence 100%)
Merged as 0f4591a9 and re-enabled notebook-operators coverage after its build began passing.
-
Related To:
canonical/charmcraft#1165
(confidence 98%)
The proposed 2.3.1 hotfix was investigated, but the maintainer confirmed it did not fix the failure.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1165 Hotfix/2.3 merge | charmcraft | merged | Merged PR #1165 fixed #1178 after upstream dependency changes restored the notebook-operators build; PR #1217 later re-enabled its spread test. |