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

Fix CMake variable check in OpenSSL test #16389

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

sfackler
Copy link
Contributor

@sfackler sfackler commented Mar 5, 2023

Previously, the logic was checking if _custom_var was defined, which is clearly always true. Instead, we want to see if the variable referenced by _custom_var is defined.

@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Mar 5, 2023

I detected other pull requests that are modifying openssl/1.x.x recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot

This comment has been minimized.

@@ -19,7 +19,7 @@ set(_custom_vars
OPENSSL_VERSION
)
foreach(_custom_var ${_custom_vars})
if(DEFINED _custom_var)
if(DEFINED ${_custom_var})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is correct as it is

https://stackoverflow.com/a/51621325/2207935

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(unless it contains the name of another variable that is what you actually want to test).

We do not care about checking if _custom_var is defined. We care about checking if OPENSSL_VERSION etc are defined.

Copy link
Contributor

@jngrb jngrb Mar 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also came across this issue when implementing the OpenSSL 3.x.x test package in #14426 . There, I changed it to

if(DEFINED ${_custom_var} AND NOT "${${_custom_var}}" STREQUAL "" )

to also ensure that the variable is not empty

=> https://github.com/conan-io/conan-center-index/pull/14426/files#diff-cc7502af8ebc87759faacd0941ef51cbfbfc58da8a73ecf6ca9189bfc4a48e8a

Copy link
Contributor

@Croydon Croydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 8, 2023

Good catch. It might be worth fixing this in test package of bzip2, expat, freetype, jasper, libxml2 and xz_utils.

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 10, 2023

What is preventing this PR to be merged by merge-bot?

@prince-chrismc
Copy link
Contributor

V2 failed but its required for openssl

@prince-chrismc
Copy link
Contributor

It was a flaky fail so let's try again

@SpaceIm
Copy link
Contributor

SpaceIm commented Mar 10, 2023

V2 failed but its required for openssl

Why is it required? openssl 3.x is not v2 ready.

@jngrb
Copy link
Contributor

jngrb commented Mar 10, 2023

V2 failed but its required for openssl

Why is it required? openssl 3.x is not v2 ready.

Yes, I also would like to know this. And despite my fixes #14426 the v2 test still fails and I cannot see any results (I get an "access forbidden" page.) Thus, I cannot provide any further fixes.

Given that conan v2 is released, I think OpenSSL 3.x.x should be made v2 ready soon.

@prince-chrismc
Copy link
Contributor

You need to follow the links posted by the bot to see the results.

I might need to murder this

not sure why it was added 🤢

@prince-chrismc
Copy link
Contributor

I am pretty surprised how fast the v2 packages are being filled.... one this backlog of PRs get down we are going to check the number and see if we can require v2 for everything 🤞

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 3 (33f531447ebe7ceaa61f76f4645fbf71d0e6bc8c):

  • openssl/1.1.1t@:
    All packages built successfully! (All logs)

  • openssl/1.1.1s@:
    All packages built successfully! (All logs)

  • openssl/1.1.1q@:
    All packages built successfully! (All logs)

  • openssl/1.0.2u@:
    All packages built successfully! (All logs)

  • openssl/1.1.0l@:
    All packages built successfully! (All logs)


Conan v2 pipeline (informative, not required for merge) ✔️

Note: Conan v2 builds are informative and they are not required for the PR to be merged.

All green in build 2 (33f531447ebe7ceaa61f76f4645fbf71d0e6bc8c):

  • openssl/1.1.1s@:
    All packages built successfully! (All logs)

  • openssl/1.1.0l@:
    All packages built successfully! (All logs)

  • openssl/1.1.1q@:
    All packages built successfully! (All logs)

  • openssl/1.1.1t@:
    All packages built successfully! (All logs)

  • openssl/1.0.2u@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit bbfe4ab into conan-io:master Mar 10, 2023
@jngrb
Copy link
Contributor

jngrb commented Mar 11, 2023

You need to follow the links posted by the bot to see the results.

I did and I get "403 forbidden" ( for https://ci-conan-prod.jfrog.team/job/prod-v2/job/cci/job/PR-14426/16/display/redirect of PR #14426 )

sorry, out-of-topic here, but as the instruction was added here, I want to reply here.

@prince-chrismc
Copy link
Contributor

Don't look at status checks at the bottom.

Look at the comments the bot posts #16389 (comment)

wbehrens-on-gh pushed a commit to wbehrens-on-gh/conan-center-index that referenced this pull request Mar 13, 2023
0xFireWolf pushed a commit to 0xFireWolf/conan-center-index that referenced this pull request Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants