cli test failures when ~/.ubuntu-ci does not exist (isolation issue)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CI Engine |
Fix Released
|
Low
|
Ursula Junque | ||
Ubuntu CI Services |
Fix Released
|
Low
|
Ursula Junque |
Bug Description
While setting my laptop with trunk @ revno 302, I encounter the following failures:
=======
ERROR: test_cli_
-------
Traceback (most recent call last):
File "build/
return func(*args, **keywargs)
File "/home/
self.
File "/home/
utils.
File "/home/
sys.
SystemExit: ERROR: Missing YAML config in /home/vila/
ci_url
auth_url
auth_user
auth_password
auth_region
auth_tenant_name
This can be created by running: ./cli/setup.py auto_config
=======
ERROR: test_cli_
-------
Traceback (most recent call last):
File "build/
return func(*args, **keywargs)
File "/home/
self.
File "/home/
utils.
File "/home/
sys.
SystemExit: ERROR: Missing YAML config in /home/vila/
ci_url
auth_url
auth_user
auth_password
auth_region
auth_tenant_name
This can be created by running: ./cli/setup.py auto_config
=======
ERROR: test_cli_
-------
Traceback (most recent call last):
File "build/
return func(*args, **keywargs)
File "/home/
self.
File "/home/
utils.
File "/home/
sys.
SystemExit: ERROR: Missing YAML config in /home/vila/
ci_url
auth_url
auth_user
auth_password
auth_region
auth_tenant_name
This can be created by running: ./cli/setup.py auto_config
-------
Ran 48 tests in 0.237s
FAILED (errors=3)
The tests should not rely on the existence (or content) of a file under user control but create one suiting their need.
This an edge case we can fix later.
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Vincent Ladeuil (community): Approve
-
Diff: 964 lines (+397/-191)15 files modifiedcli/ci_libs/file_handler.py (+11/-4)
cli/setup.py (+1/-0)
cli/tests/__init__.py (+44/-3)
cli/tests/data/barfoo_0.1-1.dsc (+16/-3)
cli/tests/data/barfoo_0.1-1_source.changes (+22/-9)
cli/tests/data/foobar_0.1-1.dsc (+20/-7)
cli/tests/data/foobar_0.1-1_source.changes (+29/-16)
cli/tests/data/foobar_0.1-1_unreleased.changes (+28/-15)
cli/tests/data/foobar_0.1-1_unsigned.changes (+28/-0)
cli/tests/test_cli.py (+174/-112)
cli/tests/test_file_handler.py (+8/-9)
cli/tests/test_get_ticket_status.py (+5/-4)
cli/tests/test_ticket.py (+5/-5)
cli/tests/test_utils.py (+2/-2)
cli/ubuntu-ci (+4/-2)
Changed in ubuntu-ci-services-itself: | |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
Changed in ubuntu-ci-services-itself: | |
status: | Fix Committed → In Progress |
Changed in ubuntu-ci-services-itself: | |
status: | In Progress → Fix Released |
Changed in ubuntu-ci-services-itself: | |
milestone: | backlog → phase-0 |
Changed in uci-engine: | |
assignee: | nobody → Ursula Junque (ursinha) |
importance: | Undecided → Low |
milestone: | none → phase-0 |
status: | New → Fix Released |
I created a function to actually mock this so tests don't require the ~/.ubuntu-ci file to exist, not sure why these tests aren't using this though. I'll investigate.