-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sirius bindings #2
Conversation
…ive/emi-monorepo into sirius-bindings merged changes from PMA
…ive/emi-monorepo into sirius-bindings
…ters in case Sirius changes, adds, or removes parameters. For now version 5 is implemented
I don't think we used a docker but the follwoing bash scripts https://github.com/enpkg/enpkg_full?tab=readme-ov-file#-install-sirius-locally. @mvisani just told be he was keen to peek in the process of a Docker creation !!
|
Ok so, at this time in the pipeline, we are installing Sirius in the Docker (using that script). This means that we can add to the test suite the execution of Sirius as part of the C.I. Are the Sirius login credentials always needed or only for some tasks? I seemed to recall they were only needed for a subset of them. |
Ok we had misunderstood that you wanted to create a dedicated Sirius docker image (and not just Sirius install within a Docker as in https://github.com/earth-metabolome-initiative/emikg/blob/09ddc2ebd8dba1746ca9a8b71eed89be48b1d39a/enrichers/enricher-dirty-pipeline/Dockerfile#L28C1-L30C1) I understand that for now this latter option is OK ? Regarding logins I think that they are required for tasks such as zodiac, canopus and similar workflows used by Sirius. And these are the typical tasks we want to run, so I guess we should login each time. |
If the login credentials need to be in plain text, we cannot use them in the CI. If we cannot use them in the CI but still want to test Sirius in the CI, we can test all of the things that do not require the login. At this time we are currently always requiring a user of the bindings to login, but most likely we only want for the user to login when the builder configuration includes some routine that requires the login. If we refactor that part to only require the login when it is strictly needed, we can (partially) test Sirius in the CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this looks good for a first version of the Sirius bindings :)
I'll let @luca validate the merge !
Couldn't we use Repository Secrets for this ? What is the issue of login each time ? |
I need to look into the repo secrets, it could be an option. Do you know which of the settings exactly require the login? |
Will dig into that. Pasting here for the record sirius-ms/sirius#146 |
…on. Will work on that
…on. Will work on that
Great job with the documentation, now there is the matter of the README, which should contain the badges for the crate, documentation and GitHub actions, plus an explanation of what the crate is for and a couple of examples showing how to use it (and maybe also an explanation about how to install Sirius itself). You can use as example the README of HyperLogLog. |
What was the issue that caused the pipeline to get sirius? |
It is in the changes of the We changed from this : command.args(&args).spawn().expect("Sirius failed to start"); To this: // Add arguments and spawn the command
let mut child = command.args(&args).spawn().expect("Sirius failed to start");
let status = child.wait().expect("Failed to wait on child"); On my side it still runs super slow but I would be ready to bet that it is because of my computer. |
I've added some examples and errors in the documentation. Tell me if something is missing or needs to be added ! :) |
…t is already present in the .gitignore in sirius directeroy
Finished binding for Sirius. All the tests pass, the fuzzer has not detected any problems.
We tested with @oolonek an MGF file with both default parameters and specific parameters for the ENPKG pipeline, they both work.