Update credentials management#70
Conversation
|
Hi Marie ! THANK YOU! If I am not saying a mistake, looking at this example https://github.com/galaxyecology/tools-ecology/pull/214/changes#diff-135d08b2c88f38c565c73c2f2ee959d66a4520c676eaa880c6b0f8d9a336d7e1 , one can remove the use of .cdsapirc and maybe configfile. Am I wrong ? |
|
Hi ! |
|
Yes but then we also need to inject the URL one way or another no ? |
Yes sorry, I didn't see that. Does it work manage in the python script ? |
|
For now no i'm still testing ;) But if you have any ideas don't hesitate |
|
@annefou Apparently the python version is not up to date (if I understand correctly). Does this repo need a full update ? If yes could it break other tools ? What do you think ? Btw, the tool is working locally :) |
|
Please update the CI script in a different PR. Copy the one from IUC to here and adopt it to this repo, e.g. changing the galaxyproejct/iuc |
|
Ok, now all the errors and warnings seems legit and should be worked on ideally. |
|
I don't get the error about the tests. Do you have any ideas ? |
Co-authored-by: PaulineSGN <107857379+PaulineSGN@users.noreply.github.com>
Co-authored-by: PaulineSGN <107857379+PaulineSGN@users.noreply.github.com>
|
So the idea here is to use this ""error message"" to test the execution of the command line who provides an error message from cdsapi COpernicus Python API package, waiting for Planemo to allow to use the new manner to manage credentials in Galaxy (if I am not wrong) so Planemo is not finding the Galaxy env variables related to credentials and try to find the cdsapi file and return an error on it. Am I ok @PaulineSGN @Marie59 ? Is it ok for you @bgruening ? |
tools/c3s/c3s_retrieve.py
Outdated
|
|
||
| if path.isfile(cdapi_file): | ||
| c = cdsapi.Client() | ||
| c.retrieve( |
There was a problem hiding this comment.
should we not add here a proper try/except and raise an error that we can assert in the XML tests?
|
This will also improve the situation at some point: galaxyproject/galaxy#21643 |
|
Okay I guess everything is fix ! Except fort this @bgruening https://github.com/NordicESMhub/galaxy-tools/actions/runs/22145319976/job/64020879425?pr=70#step:6:20 |
|
I am not sure how to help @Marie59 We can definitely update the repo. We could also have only one joint repo for all our tools, (similar to what we now have with. the element channel) |
Hi @annefou I started to update this repo already (It should be up to date now). Yes at least for earth and climate this would be great to have a joint repo. Just need to think on how to that nicely ;) |
|
I don't know how to fix the issue here. It's working locally for me. Any ideas ? @bgruening |
You assert for this given error message, but there is no error message. Maybe you are printing it to stdout? Or its not triggered? |
|
ohoh ! What do you think about this ? I think the function c.retrieve was still running even though the api key was none so I added a check to make sure the api key was not none |
Hi all !
I'm trying to do the update of this tool. I don't know how to inject the secret into the configfile to then get it the .cdsapirc.
Any ideas ?
Ping @bgruening @yvanlebras @PaulineSGN