canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.99k stars 883 forks source link

Daily builds failing due to missing pytest #3620

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1867043

Launchpad details
affected_projects = []
assignee = oddbloke
assignee_name = Dan Watkins
date_closed = 2020-03-11T22:02:52.698199+00:00
date_created = 2020-03-11T18:58:50.143025+00:00
date_fix_committed = 2020-03-11T22:02:52.698199+00:00
date_fix_released = 2020-03-11T22:02:52.698199+00:00
id = 1867043
importance = critical
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1867043
milestone = None
owner = oddbloke
owner_name = Dan Watkins
private = False
status = fix_released
submitter = oddbloke
submitter_name = Dan Watkins
tags = []
duplicates = []

Launchpad user Dan Watkins(oddbloke) wrote on 2020-03-11T18:58:50.143025+00:00

e.g. https://launchpadlibrarian.net/468666983/buildlog_ubuntu-xenial-amd64.cloud-init_20.1-2345-gd5dbbd1-0ubuntu1+1465~trunk~ubuntu16.04.1_BUILDING.txt.gz

http_proxy= make PYVER=python3 check make[2]: Entering directory '/<>' python3 -m pytest -v tests/unittests cloudinit /usr/bin/python3: No module named pytest Makefile:52: recipe for target 'unittest3' failed make[2]: [unittest3] Error 1 make[2]: Leaving directory '/<>' debian/rules:11: recipe for target 'override_dh_auto_test' failed make[1]: [override_dh_auto_test] Error 2 make[1]: Leaving directory '/<>' debian/rules:7: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2

stappersg commented 1 day ago

2024-11-12 https://github.com/canonical/cloud-init/actions/runs/11798968697/job/32866381513 has

/home/runner/work/cloud-init/cloud-init/.tox/hypothesis-slow/bin/python: No module named pytest

My research yielded that package tox does have /usr/lib/python3/dist-packages/tox/pytest.py and that tox is installed as dependency.

I do hope that someone can dig deeper to find root cause of Daily builds failing due missing pytest.

holmanb commented 1 day ago

@stappersg see https://github.com/canonical/cloud-init/pull/5867