intermittent vmtests errors due to clock drift
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Medium
|
Chad Smith |
Bug Description
The following unittest has a spurrious failure due to time drift between when timestamped files are created, and unit test validation tests/unittests
This results in occasional jenkins CI failures like the following https:/
We need to find a way to have to unit test either:
1. mock the time when files are created to avoid mismatch when verifying
2. allow unit test to verify allowing for a permissable time drift between creation and validation
3. force the test to emit a known stable file name
12:25:03 FAIL: create_log_tarfile copies configured log_file and post_files.
12:25:03 -------
12:25:03 Traceback (most recent call last):
12:25:03 File "/var/lib/
12:25:03 mock.call(log1, self.tardir), self.m_
12:25:03 AssertionError: call('/
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper (community): Approve
-
Diff: 15 lines (+3/-1)1 file modifiedtests/unittests/test_commands_collect_logs.py (+3/-1)
Changed in curtin: | |
importance: | Undecided → Medium |
assignee: | nobody → Chad Smith (chad.smith) |
This bug is fixed with commit be563391 to curtin on branch master. /git.launchpad. net/curtin/ commit/ ?id=be563391
To view that commit see the following URL:
https:/