Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: add test package depending on a cmake subproject #599

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

TST: make cmake-subproject test package work with older Meson

b1f6a08
Select commit
Loading
Failed to load commit list.
Open

TST: add test package depending on a cmake subproject #599

TST: make cmake-subproject test package work with older Meson
b1f6a08
Select commit
Loading
Failed to load commit list.
Cirrus CI / archlinux failed Mar 12, 2024 in 1m 14s

Task Summary

Instruction test failed in 01:12

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:00 clone
❌ 01:12 test

    def _run(self, cmd: Sequence[str]) -> None:
        """Invoke a subprocess."""
        # Flush the line to ensure that the log line with the executed
        # command line appears before the command output. Without it,
        # the lines appear in the wrong order in pip output.
        _log('{style.INFO}+ {cmd}{style.RESET}'.format(style=style, cmd=' '.join(cmd)), flush=True)
        r = subprocess.run(cmd, cwd=self._build_dir)
        if r.returncode != 0:
>           raise SystemExit(r.returncode)
E           SystemExit: 1

mesonpy/__init__.py:768: SystemExit
---------------------------- Captured stdout setup -----------------------------
Initialized empty Git repository in /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.git/
+ meson setup /tmp/cirrus-ci-build/tests/packages/cmake-subproject /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-5mdlppo2 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-5mdlppo2/meson-python-native-file.ini
The Meson build system
Version: 1.3.2
Source dir: /tmp/cirrus-ci-build/tests/packages/cmake-subproject
Build dir: /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-5mdlppo2
Build type: native build
Project name: cmake-subproject
Project version: 1
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.42.0
C++ compiler for the host machine: c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20230801")
C++ linker for the host machine: c++ ld.bfd 2.42.0
Cython compiler for the host machine: cython (cython 3.0.9)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Did not find pkg-config by name 'pkg-config'
Found pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency cmaketest found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency cmaketest

Executing subproject cmaketest method cmake 

cmaketest| Did not find CMake 'cmake'
cmaketest| Found CMake: NO

../meson.build:8:10: ERROR: Unable to find CMake

A full log can be found at /tmp/cirrus-ci-build/tests/packages/cmake-subproject/.mesonpy-5mdlppo2/meson-logs/meson-log.txt
=========================== short test summary info ============================
SKIPPED [1] tests/test_project.py:204: Requires MSVC
SKIPPED [3] tests/test_project.py:216: macOS specific test
SKIPPED [2] tests/test_project.py:233: macOS specific test
SKIPPED [1] tests/test_tags.py:47: macOS specific test
SKIPPED [1] tests/test_tags.py:59: macOS specific test
SKIPPED [1] tests/test_tags.py:69: macOS specific test
SKIPPED [2] tests/test_wheel.py:249: macOS specific test
ERROR tests/test_wheel.py::test_cmake_subproject - SystemExit: 1
============== 97 passed, 11 skipped, 1 error in 60.09s (0:01:00) ==============
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������