canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 49 forks source link

Traceback on `./manage.py develop` when `/var/tmp/checkbox-providers-develop` doesn't exist #941

Closed kissiel closed 9 months ago

kissiel commented 10 months ago

Bug Description

develop assumes that /var/tmp/checkbox-providers-develop exists, and crashes if it doesn't.

To Reproduce

  1. Ensure there's no /var/tmp/checkbox-providers-develop dir
  2. run ./manage.py develop

Environment

Environment agnostic

Relevant log output

(venv-small) ➜  2023.com.kissiel:testing ./manage.py develop 
$PROVIDERPATH is defined, so following provider sources are ignored ['/usr/local/share/plainbox-providers-1', '/usr/share/plainbox-providers-1', '/home/kissiel/.local/share/plainbox-providers-1', '/var/tmp/checkbox-providers-develop'] 
CRITICAL plainbox.crashes: Executable 'manage.py' invoked with Namespace(log_level=None, debug_console=False, trace=[], pdb=False, debug_interrupt=False, uninstall=False, force=False, directory='/var/tmp/checkbox-providers-develop', command=<plainbox.provider_manager.DevelopCommand object at 0x7fa124877a10>) has crashed
Traceback (most recent call last):
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/provider_manager.py", line 554, in invoked
    if pp_env and not os.path.samefile(pp_env, ns.directory):
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 101, in samefile
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/checkbox-providers-develop'
Traceback (most recent call last):
  File "/home/kissiel/checkbox-stuff/providers/2023.com.kissiel:testing/./manage.py", line 16, in <module>
    setup(
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/provider_manager.py", line 1692, in setup
    raise SystemExit(ProviderManagerTool(definition, kwargs).main())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/impl/clitools.py", line 324, in main
    return self.dispatch_and_catch_exceptions(ns)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kissiel/checkbox/checkbox-ng/plainbox/provider_manager.py", line 554, in invoked
    if pp_env and not os.path.samefile(pp_env, ns.directory):
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 101, in samefile
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/checkbox-providers-develop'


### Additional context

_No response_
syncronize-issues-to-jira[bot] commented 10 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1171.

This message was autogenerated