integration tests failing in yakkety and zesty: E: Version '4.1-6' for 'make' was not found

Bug #1675447 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Joe Talbott

Bug Description

We added a new integration test that checks that a deb with a specific version can be installed.
The problem here is that the archive will update and drop versions. This is currently failing in yakkety and zesty:

E: Version '4.1-6' for 'make' was not found

Full log:

======================================================================
ERROR: test_build_package_gets_version (test_build_package_version.BuildPackageVersionTestCase)
test_build_package_version.BuildPackageVersionTestCase.test_build_package_gets_version
----------------------------------------------------------------------
testtools.testresult.real._StringException: output: {{{
Starting snapcraft 2.27.1 from /usr/lib/python3/dist-packages/snapcraft.
Setting up part 'hello' with plugin 'nil' and properties {'snap': [], 'stage': [], 'build-packages': ['hello=2.10-1'], 'prime': [], 'plugin': 'nil'}.
Installing build dependencies: hello=2.10-1 make=4.1-6
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '4.1-6' for 'make' was not found
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 31, in <module>
    snapcraft.main.main()
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 253, in main
    return run(args, project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 289, in run
    lifecycle_command, project_options, args['<part>'])
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 111, in execute
    repo.Repo.install_build_packages(config.build_tools)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 219, in install_build_packages
    subprocess.check_call(apt_command + new_packages, env=env)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', 'apt-get', '--no-install-recommends', '-y', 'install', 'hello=2.10-1', 'make=4.1-6']' returned non-zero exit status 100
}}}

Traceback (most recent call last):
  File "/tmp/autopkgtest.8gvEir/build.gXi/snapcraft/integration_tests/test_build_package_version.py", line 27, in test_build_package_gets_version
    self.run_snapcraft('pull', 'build-package-version')
  File "/tmp/autopkgtest.8gvEir/build.gXi/snapcraft/integration_tests/__init__.py", line 112, in run_snapcraft
    stderr=subprocess.STDOUT, universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['snapcraft', '-d', 'pull']' returned non-zero exit status 1

Tags: tests
Revision history for this message
Leo Arias (elopio) wrote :

Priority set to critical because this blocks the landing of 2.28 in yakkety and zesty.

Changed in snapcraft:
assignee: nobody → Joe Talbott (joetalbott)
Revision history for this message
Joe Talbott (joetalbott) wrote :
Changed in snapcraft:
status: Triaged → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.