integration test using after missing build depends
Metadata
Current evaluation
Fixed by merged snapcraft PR #320 (commit bdb768748), which made the after-test CMake project use no language so the integration test no longer requires a C++ compiler.
Resolution: closed resolved
Reason: The maintainer linked resolving PR ubuntu-core/snapcraft#320. It was merged as commit bdb768748 and changed the test project to require no compiler language.
Evaluated by: mr-cal-bot
No scores available.
Issue body
======================================================================
ERROR: test_snapcraft_stage_env_replacement (test_after.AfterTestCase)
test_after.AfterTestCase.test_snapcraft_stage_env_replacement
----------------------------------------------------------------------
testtools.testresult.real._StringException: output: {{{
Installing build dependencies: cmake
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
cmake-data libarchive13 libcurl3 libjsoncpp0v5
Suggested packages:
codeblocks eclipse ninja-build lrzip
The following NEW packages will be installed:
cmake cmake-data libarchive13 libcurl3 libjsoncpp0v5
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4091 kB of archives.
After this operation, 20.9 MB of additional disk space will be used.
Get:1 http://ftpmaster.internal/ubuntu xenial/main amd64 cmake-data all 3.3.2is3.2.2-0ubuntu4 [1028 kB]
Get:2 http://ftpmaster.internal/ubuntu xenial/main amd64 libarchive13 amd64 3.1.2-11build1 [263 kB]
Get:3 http://ftpmaster.internal/ubuntu xenial/main amd64 libcurl3 amd64 7.47.0-1ubuntu1 [185 kB]
Get:4 http://ftpmaster.internal/ubuntu xenial/main amd64 libjsoncpp0v5 amd64 0.10.5-1 [74.2 kB]
Get:5 http://ftpmaster.internal/ubuntu xenial/main amd64 cmake amd64 3.3.2is3.2.2-0ubuntu4 [2542 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 4091 kB in 0s (27.3 MB/s)
Selecting previously unselected package cmake-data.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 90896 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.3.2is3.2.2-0ubuntu4_all.deb ...
Unpacking cmake-data (3.3.2is3.2.2-0ubuntu4) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../libarchive13_3.1.2-11build1_amd64.deb ...
Unpacking libarchive13:amd64 (3.1.2-11build1) ...
Selecting previously unselected package libcurl3:amd64.
Preparing to unpack .../libcurl3_7.47.0-1ubuntu1_amd64.deb ...
Unpacking libcurl3:amd64 (7.47.0-1ubuntu1) ...
Selecting previously unselected package libjsoncpp0v5:amd64.
Preparing to unpack .../libjsoncpp0v5_0.10.5-1_amd64.deb ...
Unpacking libjsoncpp0v5:amd64 (0.10.5-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.3.2is3.2.2-0ubuntu4_amd64.deb ...
Unpacking cmake (3.3.2is3.2.2-0ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.21-0ubuntu5) ...
Setting up cmake-data (3.3.2is3.2.2-0ubuntu4) ...
Setting up libarchive13:amd64 (3.1.2-11build1) ...
Setting up libcurl3:amd64 (7.47.0-1ubuntu1) ...
Setting up libjsoncpp0v5:amd64 (0.10.5-1) ...
Setting up cmake (3.3.2is3.2.2-0ubuntu4) ...
Processing triggers for libc-bin (2.21-0ubuntu5) ...
Pulling copy
'cmake-project' has prerequisites that need to be staged: copy
Skipping pull copy (already ran)
Building copy
Staging copy
Pulling cmake-project
Skipping build copy (already ran)
'cmake-project' has prerequisites that need to be staged: copy
Skipping pull copy (already ran)
Skipping build copy (already ran)
Skipping stage copy (already ran)
Building cmake-project
cmake /tmp/tmp2ic5oyya/stage_env/parts/cmake-project/src -DCMAKE_INSTALL_PREFIX= -DDEP_DIR=/tmp/tmp2ic5oyya/stage_env/stage/copied
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/tmp/tmp2ic5oyya/stage_env/parts/cmake-project/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmp2ic5oyya/stage_env/parts/cmake-project/build/CMakeFiles/CMakeError.log".
Command '['/bin/sh', '/tmp/tmpcsbdoktj', 'cmake', '/tmp/tmp2ic5oyya/stage_env/parts/cmake-project/src', '-DCMAKE_INSTALL_PREFIX=', '-DDEP_DIR=/tmp/tmp2ic5oyya/stage_env/stage/copied']' returned non-zero exit status 1
}}}
Traceback (most recent call last):
File "/tmp/adt-run.2cQLP5/build.afN/snapcraft-2.2.1/integration_tests/test_after.py", line 93, in test_snapcraft_stage_env_replacement
self.run_snapcraft('stage', project_dir)
File "/tmp/adt-run.2cQLP5/build.afN/snapcraft-2.2.1/integration_tests/__init__.py", line 54, 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 '['/tmp/adt-run.2cQLP5/build.afN/snapcraft-2.2.1/bin/snapcraft', 'stage']' returned non-zero exit status 1
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged snapcraft PR #320 (commit bdb768748), which made the after-test CMake project use no language so the integration test no longer requires a C++ compiler. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed the failing after integration test by changing its CMake project to use no language, avoiding the missing C++ compiler. Merged in canonical/snapcraft#320 (commit bdb768748). | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged Snapcraft PR #320 (commit bdb768748), configuring the after-test CMake project with no language so it no longer requires an undeclared C++ compiler. | |
| stealth/space-bunny-alpha | — | closed stale | A maintainer-reported CMake integration-test failure was closed without comments or a recorded fix; its last activity was about 10 years ago. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by adding the missing C++ compiler and other build dependencies to the integration-test environment. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by adding the missing C++ compiler and build dependencies to the test environment, resolving the failing snapcraft stage integration test. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by adding the missing C++ compiler to the test environment build dependencies, resolving the CMake configuration failure during the snapcraft stage integration test. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#320
(confidence 100%)
Merged PR #320 resolved the failure in commit bdb768748.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1649899 integration tests fail in armhf | snapcraft (launchpad) | closed | Armhf integration tests were fixed and re-enabled by merged PR snapcore/snapcraft#971 (commit a725e69da). | |
| #1659356 integration tests rely on project_dir | snapcraft (launchpad) | closed | Refactored integration tests to stop relying on project_dir; fixed by snapcore/snapcraft PR #1078 and commit 4fe0247b8. |