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

ios-cmake: migrate to Conan v2, improve test_package #21532

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

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Dec 1, 2023

No description provided.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 3 (cdb01110b122e836e3983c6bacee83ad868ca559):

  • ios-cmake/3.1.2:
    CI failed to create some packages (All logs)

    Logs for packageID 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    
    [...]
    Build requirements packages
        ios-cmake/3.1.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    
    Installing (downloading, building) binaries...
    ios-cmake/3.1.2: Already installed!
    ios-cmake/3.1.2 (test package): Applying build-requirement: ios-cmake/3.1.2
    ios-cmake/3.1.2 (test package): Generator txt created conanbuildinfo.txt
    ios-cmake/3.1.2 (test package): Generator 'VirtualBuildEnv' calling 'generate()'
    ios-cmake/3.1.2 (test package): Calling generate()
    ERROR: ios-cmake/3.1.2 (test package): Error in generate() method, line 23
    	assert os.path.basename(cmake_prog) == "cmake-wrapper"
    	TypeError: expected str, bytes or os.PathLike object, not NoneType
    ********************************************************************************
    conan test cci-43cda240/recipes/ios-cmake/all/test_v1_package/conanfile.py ios-cmake/3.1.2@#579c560cc6c3cdaf7f6fabc8f2d9c11e -pr /Users/jenkins/w/prod-v1/bsr/65799/dfaff/profile_osx_130_libcpp_apple-clang_release_64..txt -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True -c tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    ********************************************************************************
    Configuration:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    [build_requires]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    ios-cmake/3.1.2 (test package): Installing package
    Requirements
        ios-cmake/3.1.2 from local cache - Cache
    Packages
        ios-cmake/3.1.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    
    Installing (downloading, building) binaries...
    ios-cmake/3.1.2: Already installed!
    ios-cmake/3.1.2 (test package): Generator txt created conanbuildinfo.txt
    ios-cmake/3.1.2 (test package): Aggregating env generators
    ios-cmake/3.1.2 (test package): Generated conaninfo.txt
    ios-cmake/3.1.2 (test package): Generated graphinfo
    Using lockfile: '/Users/jenkins/w/prod-v1/bsr/cci-43cda240/recipes/ios-cmake/all/test_v1_package/build/b8f3bcf04506ffd0c62e17eef241020a7fbc471e/conan.lock'
    Using cached profile from lockfile
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
    ios-cmake/3.1.2 (test package): Calling build()
    ios-cmake/3.1.2 (test package): Running test()
    ios-cmake/3.1.2 (test package): WARN: This conanfile has no build step
    
  • ios-cmake/4.0.0:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.1.1:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.2.0:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.4.1:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 3 (cdb01110b122e836e3983c6bacee83ad868ca559):

  • ios-cmake/3.1.2:
    CI failed to create some packages (All logs)

    Logs for packageID da39a3ee5e6b4b0d3255bfef95601890afd80709:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    
    ********************************************************************************
    conan test cci-c7d68add/recipes/ios-cmake/all/test_package/conanfile.py ios-cmake/3.1.2@#579c560cc6c3cdaf7f6fabc8f2d9c11e -pr:h /Users/jenkins/w/prod-v2/bsr@2/53499/cebef/profile_osx_13_libcpp_17_apple-clang_release_64..txt -c:h tools.system.package_manager:mode=install -c:h tools.system.package_manager:sudo=True -c:h tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -pr:b /Users/jenkins/w/prod-v2/bsr@2/53499/cebef/profile_osx_13_libcpp_17_apple-clang_release_64..txt -c:b tools.system.package_manager:mode=install -c:b tools.system.package_manager:sudo=True -c:b tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    ********************************************************************************
    
    ======== Input profiles ========
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    tools.apple:sdk_path=/Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
    
    
    ======== Launching test_package ========
    
    ======== Computing dependency graph ========
    Graph root
        ios-cmake/3.1.2 (test package): /Users/jenkins/w/prod-v2/bsr@2/cci-c7d68add/recipes/ios-cmake/all/test_package/conanfile.py
    Build requirements
        ios-cmake/3.1.2#579c560cc6c3cdaf7f6fabc8f2d9c11e - Cache
    
    ======== Computing necessary packages ========
    Build requirements
        ios-cmake/3.1.2#579c560cc6c3cdaf7f6fabc8f2d9c11e:da39a3ee5e6b4b0d3255bfef95601890afd80709#bf61b479e5011a3e8eb3cad87b912305 - Cache
    
    ======== Installing packages ========
    ios-cmake/3.1.2: Already installed! (1 of 1)
    ERROR: ios-cmake/3.1.2: Invalid configuration: Cannot guess toolchain_target. Please set the option explicitly (or check your os settings).
    
  • ios-cmake/4.1.1:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.2.0:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.4.1:
    Didn't run or was cancelled before finishing

  • ios-cmake/4.0.0:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Copy link
Contributor

github-actions bot commented Dec 3, 2023

Hooks produced the following warnings for commit cdb0111
ios-cmake/3.1.2@#579c560cc6c3cdaf7f6fabc8f2d9c11e
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: {'/Users/jenkins/w/prod-v1/bsr/65799/edfea/.conan/data/ios-cmake/3.1.2/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/'}
post_package_info(): WARN: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/ios-cmake/ios.toolchain.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants