Use JAliEn credentials in CCDB API#5826
Conversation
Signed-off-by: Nikola Hardi <nhardi@cern.ch>
| #include <TMessage.h> | ||
| #include "CCDB/CcdbObjectInfo.h" | ||
|
|
||
| #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__ROOTCLING__) && !defined(__CLING__) |
There was a problem hiding this comment.
The libjalien isn't a ROOT library and doesn't have a ROOT dictionary. I noticed problems with ROOT interpreter when CcdbApi.h was included because it couldn't understand this type.
There is similar code in JAliEn-ROOT / AliEn-ROOT-Legacy, but maybe there is another way around it. In any case, if this header is not explicitly included in a ROOT interpreter session then maybe it works without it.
There was a problem hiding this comment.
No hard opinion here. But usually this should not be necessary. One can already use o2::ccdb::CcdbApi in a ROOT session without including the header. And the protection could be put outside as well.
We can also merge as is and remove later.
|
@TimoWilken The CI errors seems unrelated, or am I mistaken? |
|
@jgrosseo the libjalienO2 dependency (added in this PR) isn't picked up by QC. |
|
QC should not need to be touched. Dependencies should be transitive in both aliBuild and CMake. |
|
I don't have a solution but this is not going to work: This variable is unknown in downstream packages. You could use the environment variable |
|
@costing Do you know who could follow this up after @Atlantic777 departure. My understanding is that just the cmake has to be fixed. |
|
@jgrosseo that would probably be me. I read through this thread but I'm not entirely sure what is going on. If you know what needs to be fixed in cmake please let me know and I will have a look. |
|
Apart from resolving the merge conflict which is probably simple, follow the comments by @Barthelemy about the different variable name |
|
Thanks for looking into it! |
|
Hi @Barthelemy @jgrosseo @iraklic, |
|
@yuw726 the cmake variable Later in the build, To test do |
|
@iraklic Any news? |
Sorry, I am having very busy week. It is on my todo. BTW: do I understand it right that you expect a new PR from me with the conflict in CCDB/src/CcdbApi.cxx resolved or there is some other way of modifying this PR (I have never done that)? |
You cannot push to the branch which made this PR, but you can just start from that branch, push that into your own fork, and then open a PR based on that one. This will include all these changes. We will at that point close this PR. |
Thank you. That's what I was going to do, but wanted to confirm. |
Any news? |
|
Fixed conflict |
|
Done, thank you @TimoWilken ! I think it's also requiring a review from @Barthelemy |
|
@costing could you give me a bit of context ? |
It is fine. I approved it. |
|
fullCI is unrelated. I'll ignore the space checker on this one (apologies @vkucera , we'll fix this later), and merge when the other two CIs have passed. |
|
I tried to compile and got the following error: The command I used on CC7 is alidist is up to date with |
|
@TimoWilken do you know why QC misses this? |
|
I am trying to understand nuts and bolts of what is going on here, but I am having trouble to compile dev at this point. It crushes with this: I checked out Any idea? |
|
some of your stuff is not up to date. Make sure you update O2 |
|
What kind of stuff? I pulled O2 using |
|
Is there a mattermost/slack channel or something similar when I can ask about my building error? Or should I use alice-project-analysis-task-force mailing list? Or is there a fail-safe tag for O2 I can check out that will surely build? Any help is appreciated. |
|
OK. looks like I am not alone in this: https://alice.its.cern.ch/jira/browse/O2-2327. But the problem is that the workaround yields an entirely new issue: Any suggestions are appreciated |
|
The JIRA ticket you quote is closed and it is said " This should not be the case anymore, provided you move to alibuild 1.8.4 " . |
|
You can ask in O2 release integration or O2 analysis challenge on mattermost any additional questions. |
|
This PR did not have any update in the last 30 days. Is it still needed? Unless further action in will be closed in 5 days. |
|
@jgrosseo has this been merged through other PR? I am asking because there are mentions of conflicts mentioned here being fixed and so on. The compilation problem that I had I fixed using the workaround suggested in the ticket that I mentioned. Anyways please let me know if this has been merged though some other PR or if you want me to check it on my own and open new PR with this change. Thanks. |
|
@iraklic I don't think this has been merged through another PR. It is just that other changes had been made to the same code and the conflicts need to be resolved. |
|
I reopened it and do not see a conflicts actually. |
|
I will try to fix the CMake part and provide modifications in the alidist recipes since the CI issues are related to the discovery of the package. |
|
The following PR alisw/alidist#3275 should solve the issues we observe in the CI. |
This PR adds JAliEn credentials manager to CCDB API and decorates curl handle with JAliEn credentials. Depends on: alisw/alidist#2932
cc @costing @iraklic @yuw726