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

Add Conan recipe for Criterion unit tests #16711

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

Conversation

cprieto
Copy link

@cprieto cprieto commented Mar 26, 2023

Specify library name and version: criterion/2.4.1

This adds the Criterion unit test library (https://github.com/Snaipe/Criterion) closing an old ticket (though for a very old version): #7792


@CLAassistant
Copy link

CLAassistant commented Mar 26, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 4 committers have signed the CLA.

✅ AbrilRBS
✅ prince-chrismc
❌ Chris Mc
❌ cprieto


Chris Mc seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

1 similar comment
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

1 similar comment
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Jun 18, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot added Failed Missing dependencies Build failed due missing dependencies in Conan Center labels Oct 23, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@AbrilRBS
Copy link
Member

Sorry about the noise

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 6 (af7f4b7c1b18e1bcfaeefc8eb2d320ea5e3bde01):

  • criterion/2.4.1:
    CI failed to create some packages (All logs)

    Logs for packageID cda60ee03bda5bb25bf8b2a96bbd6b2efc9ca4ff:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=7
    os=Linux
    [options]
    criterion:shared=False
    
    [...]
    criterion:shared=False
    [build_requires]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    
    criterion/2.4.1 (test package): Installing package
    Requirements
        criterion/2.4.1 from local cache - Cache
        http_parser/2.9.4 from 'conan-center' - Cache
        libffi/3.4.3 from 'conan-center' - Cache
        libgit2/1.5.0 from 'conan-center' - Cache
        libssh2/1.10.0 from 'conan-center' - Cache
        openssl/1.1.1o from 'conan-center' - Cache
        zlib/1.2.12 from 'conan-center' - Cache
    Packages
        criterion/2.4.1:cda60ee03bda5bb25bf8b2a96bbd6b2efc9ca4ff - Download
        http_parser/2.9.4:d50a0d523d98c15bb147b18fa7d203887c38be8b - Download
        libffi/3.4.3:d50a0d523d98c15bb147b18fa7d203887c38be8b - Download
        libgit2/1.5.0:af0c2cc147b6232d70ffdd219d6179740457b402 - Download
        libssh2/1.10.0:11220ebcf47f90468e60979b709aa540f1bcbcad - Missing
        openssl/1.1.1o:d50a0d523d98c15bb147b18fa7d203887c38be8b - Download
        zlib/1.2.12:d50a0d523d98c15bb147b18fa7d203887c38be8b - Download
    Build requirements
        meson/1.0.0 from 'conan-center' - Cache
        ninja/1.11.1 from 'conan-center' - Cache
        pkgconf/1.9.3 from 'conan-center' - Cache
    Build requirements packages
        meson/1.0.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        ninja/1.11.1:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Download
        pkgconf/1.9.3:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Download
    
    Installing (downloading, building) binaries...
    
    WARN: libssh2/1.10.0: requirement zlib/[>=1.2.11 <2] overridden by libgit2/1.5.0 to zlib/1.2.12 
    WARN: libssh2/1.10.0: requirement openssl/[>=1.1 <4] overridden by libgit2/1.5.0 to openssl/1.1.1o 
    ERROR: Missing binary: libssh2/1.10.0:11220ebcf47f90468e60979b709aa540f1bcbcad
    libssh2/1.10.0: WARN: Can't find a 'libssh2/1.10.0' package for the specified settings, options and dependencies:
    - Settings: arch=x86_64, build_type=Release, compiler=gcc, compiler.version=7, os=Linux
    - Options: crypto_backend=openssl, enable_crypt_none=False, enable_debug_logging=False, enable_mac_none=False, fPIC=True, shared=False, with_zlib=True, openssl:386=False, openssl:enable_weak_ssl_ciphers=False, openssl:fPIC=True, openssl:no_aria=False, openssl:no_asm=False, openssl:no_async=False, openssl:no_bf=False, openssl:no_blake2=False, openssl:no_camellia=False, openssl:no_cast=False, openssl:no_chacha=False, openssl:no_cms=False, openssl:no_comp=False, openssl:no_ct=False, openssl:no_deprecated=False, openssl:no_des=False, openssl:no_dgram=False, openssl:no_dh=False, openssl:no_dsa=False, openssl:no_dso=False, openssl:no_ec=False, openssl:no_ecdh=False, openssl:no_ecdsa=False, openssl:no_engine=False, openssl:no_filenames=False, openssl:no_gost=False, openssl:no_hmac=False, openssl:no_idea=False, openssl:no_md4=False, openssl:no_md5=False, openssl:no_mdc2=False, openssl:no_ocsp=False, openssl:no_pinshared=False, openssl:no_rc2=False, openssl:no_rfc3779=False, openssl:no_rmd160=False, openssl:no_rsa=False, openssl:no_seed=False, openssl:no_sha=False, openssl:no_sm2=False, openssl:no_sm3=False, openssl:no_sm4=False, openssl:no_sock=False, openssl:no_srp=False, openssl:no_srtp=False, openssl:no_sse2=False, openssl:no_ssl=False, openssl:no_ssl3=False, openssl:no_stdio=False, openssl:no_tests=False, openssl:no_threads=False, openssl:no_tls1=False, openssl:no_ts=False, openssl:no_whirlpool=False, openssl:openssldir=None, openssl:shared=False, zlib:fPIC=True, zlib:shared=False
    - Dependencies: zlib/1.2.12, openssl/1.1.1o
    - Requirements: openssl/1.Y.Z, zlib/1.Y.Z
    - Package ID: 11220ebcf47f90468e60979b709aa540f1bcbcad
    
    ERROR: Missing prebuilt package for 'libssh2/1.10.0'
    Use 'conan search libssh2/1.10.0@ --table=table.html -r=remote' and open the table.html file to see available packages
    Or try to build locally from sources with '--build=libssh2'
    
    More Info at 'https://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package'
    

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 (af7f4b7c1b18e1bcfaeefc8eb2d320ea5e3bde01):

  • criterion/2.4.1:
    Error running command conan graph info --requires criterion/2.4.1@#2827ddd440ccc5d68bc5fc2bc05b9ffa -f json -pr:h /home/conan/w/prod-v2/bsr/26545/fedfc/profile_linux_11_libstdcpp11_17_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2/bsr/26545/fedfc/profile_linux_11_libstdcpp11_17_gcc_release_64..txt:
    ======== Computing dependency graph ========
    libgit2/1.5.0: Not found in local cache, looking in remotes...
    libgit2/1.5.0: Checking remote: conan-center
    libgit2/1.5.0: Downloaded recipe revision c2747de9b3d4a2e8099fbfdf5ab25951
    Graph root
        cli
    Requirements
        criterion/2.4.1#2827ddd440ccc5d68bc5fc2bc05b9ffa - Cache
    Graph error
        Package 'libgit2/1.5.0' not resolved: libgit2/1.5.0: Cannot load recipe.
    Error loading conanfile at '/home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py", line 2, in <module>
        from conans import ConanFile, tools, CMake
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    .
    *********************************************************
    Recipe 'libgit2/1.5.0' seems broken.
    It is possible that this recipe is not Conan 2.0 ready
    If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues
    If it is your recipe, check if it is updated to 2.0
    *********************************************************
    
    ERROR: Package 'libgit2/1.5.0' not resolved: libgit2/1.5.0: Cannot load recipe.
    Error loading conanfile at '/home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2/bsr/26545/ffcaf/p/libgi58169151bb51d/e/conanfile.py", line 2, in <module>
        from conans import ConanFile, tools, CMake
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    .
    

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

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added stale and removed stale labels Aug 10, 2024
@github-actions github-actions bot removed the stale label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Failed Missing dependencies Build failed due missing dependencies in Conan Center
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants