[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#922375: marked as done (cloud-init: build from src failes some unit tests)



Your message dated Fri, 15 Feb 2019 09:16:02 +0100
with message-id <20190215081602.erqmej73l5rjtlhs@shell.thinkmo.de>
and subject line Re: Bug#922375: cloud-init: build from src failes some unit tests
has caused the Debian Bug report #922375,
regarding cloud-init: build from src failes some unit tests
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
922375: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922375
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cloud-init
Version: 18.3-3
Tags: ftbs

Hello Debian community,
while building the cloud-init source package on a buster based build system, the resulting build fails during the test phase with the following errors:

======================================================================
FAIL: test_context_parser (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/tmp/cloud-init/cloud-init-18.3/tests/unittests/test_datasource/test_opennebula.py", line 156, in test_context_parser
    self.assertEqual(TEST_VARS, results['metadata'])
AssertionError: {'VAR1': 'single', 'VAR2': 'double word', '[207 chars] '$'} != {'EPOCHREALTIME': '1550215357.127769', 'VAR[245 chars]e\n'}
+ {'EPOCHREALTIME': '1550215357.127769',
- {'VAR1': 'single',
? ^

+  'VAR1': 'single',
? ^

   'VAR10': '\\',
   'VAR11': "'",
   'VAR12': '$',
   'VAR2': 'double word',
   'VAR3': 'multi\nline\n',
   'VAR4': "'single'",
   'VAR5': "'double word'",
   'VAR6': "'multi\nline\n'",
   'VAR7': 'single\\t',
   'VAR8': 'double\\tword',
   'VAR9': 'multi\\t\nline\n'}
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Reading from /tmp/ci-TestOpenNebulaDataSource.l95oj7yd/seed/opennebula/context.sh (quiet=False)
cloudinit.util: DEBUG: Read 262 bytes from /tmp/ci-TestOpenNebulaDataSource.l95oj7yd/seed/opennebula/context.sh
cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True)
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_seed_dir_empty1_context (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/tmp/cloud-init/cloud-init-18.3/tests/unittests/test_datasource/test_opennebula.py", line 135, in test_seed_dir_empty1_context
    self.assertEqual(results['metadata'], {})
AssertionError: {'EPOCHREALTIME': '1550215357.891433'} != {}
- {'EPOCHREALTIME': '1550215357.891433'}
+ {}
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Reading from /tmp/ci-TestOpenNebulaDataSource.csfu6cg7/seed/opennebula/context.sh (quiet=False)
cloudinit.util: DEBUG: Read 0 bytes from /tmp/ci-TestOpenNebulaDataSource.csfu6cg7/seed/opennebula/context.sh
cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True)
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_seed_dir_empty2_context (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/tmp/cloud-init/cloud-init-18.3/tests/unittests/test_datasource/test_opennebula.py", line 142, in test_seed_dir_empty2_context
    self.assertEqual(results['metadata'], {})
AssertionError: {'EPOCHREALTIME': '1550215357.919202'} != {}
- {'EPOCHREALTIME': '1550215357.919202'}
+ {}
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Reading from /tmp/ci-TestOpenNebulaDataSource.48_u7527/seed/opennebula/context.sh (quiet=False)
cloudinit.util: DEBUG: Read 44 bytes from /tmp/ci-TestOpenNebulaDataSource.48_u7527/seed/opennebula/context.sh
cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True)
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_no_seconds (tests.unittests.test_datasource.test_opennebula.TestParseShellConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/tmp/cloud-init/cloud-init-18.3/tests/unittests/test_datasource/test_opennebula.py", line 512, in test_no_seconds
    self.assertEqual(ret, {"foo": "bar", "xx": "foo"})
AssertionError: {'foo': 'bar', 'xx': 'foo', 'EPOCHREALTIME': '1550215358.286738'} != {'foo': 'bar', 'xx': 'foo'}
- {'EPOCHREALTIME': '1550215358.286738', 'foo': 'bar', 'xx': 'foo'}
+ {'foo': 'bar', 'xx': 'foo'}
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True)
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1345 tests in 41.915s

FAILED (SKIP=16, failures=4)

Additional infos of the build system:

$ uname -a
Linux f6894fab81c8 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux

$ cat /etc/debian_version
buster/sid

The problem is already fixed upstream and needs to be incorporated in the Debian package.
https://bugs.launchpad.net/cloud-init/+bug/1813383

The patch is available here:
https://git.launchpad.net/cloud-init/commit/?id=d1a2fe73


Thanks and regards,
Dirk Mayer

--- End Message ---
--- Begin Message ---
Version: 18.3-5

On Fri, Feb 15, 2019 at 08:08:32AM +0000, Mayer, Dirk wrote:
> Package: cloud-init
> Version: 18.3-3

This problem is fixed in 18.3-5.  Please refrain from writing bugs for
not uptodate packages.

Bastian

-- 
Vulcans believe peace should not depend on force.
		-- Amanda, "Journey to Babel", stardate 3842.3

--- End Message ---

Reply to: