unit test race condition in tests/unittests/test_commands_collect_logs.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Low
|
Chad Smith |
Bug Description
a small window... but
https:/
that failed like below. The reason for the failure I believe is that a minute turned over between the utcnow() usage in line 97:
date = datetime.
and the utcnow() usage in create_log_tarfile.
trusty-py3 create: /var/lib/
trusty-py3 installdeps: pyflakes==0.8.1, pep8==1.4.6, mock==1.0.1, nose==1.3.1, pyyaml==3.10, oauthlib==0.6.1
trusty-py3 develop-inst: /var/lib/
trusty-py3 installed: -e git+https:/
trusty-py3 runtests: PYTHONHASHSEED=
trusty-py3 runtests: commands[0] | /var/lib/
.......
=======
ERROR: collect_logs_main sources all configs from /curtin/configs dir.
-------
Traceback (most recent call last):
File "/var/lib/
with open(curtin_config, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/curtin-
-------
Ran 607 tests in 3.100s
Related branches
- Ryan Harper (community): Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 560 lines (+234/-38)15 files modifiedcurtin/commands/curthooks.py (+2/-2)
curtin/commands/extract.py (+1/-1)
curtin/commands/install.py (+16/-5)
curtin/url_helper.py (+1/-1)
curtin/util.py (+9/-4)
debian/changelog (+16/-0)
tests/unittests/test_commands_collect_logs.py (+26/-14)
tests/unittests/test_commands_extract.py (+72/-0)
tests/unittests/test_commands_install.py (+40/-0)
tests/unittests/test_util.py (+1/-1)
tests/vmtests/__init__.py (+1/-1)
tests/vmtests/image_sync.py (+1/-1)
tools/curtainer (+21/-6)
tools/vmtest-sync-images (+0/-1)
tox.ini (+27/-1)
Changed in curtin: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Chad Smith (chad.smith) |
An upstream commit landed for this bug.
To view that commit see the following URL: /git.launchpad. net/curtin/ commit/ ?id=f1c31e55
https:/