-
Notifications
You must be signed in to change notification settings - Fork 27
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 common simcore-service executable alias #5051
✨ Add common simcore-service executable alias #5051
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5051 +/- ##
========================================
+ Coverage 87.3% 87.5% +0.2%
========================================
Files 1259 1130 -129
Lines 51784 47927 -3857
Branches 1111 672 -439
========================================
- Hits 45210 41951 -3259
+ Misses 6334 5828 -506
+ Partials 240 148 -92
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This reverts commit d0ffb58.
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.
I think it is a good idea since we do not install more than one service at a time.
I would just like to ask for an extra cleanup and adding a test to constraint docker-compose
thx!
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.
I'm OK with them, but I have no opinion on the change
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.
👍
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.
Looks good to me
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.
all good. thank you
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.
all good. thank you
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.
thx!
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.
You should actually revert everything regarding the gateway-server
services/osparc-gateway-server/src/osparc_gateway_server/backend/osparc.py
Outdated
Show resolved
Hide resolved
services/osparc-gateway-server/src/osparc_gateway_server/backend/osparc.py
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Code Climate has analyzed commit 9d44570 and detected 0 issues on this pull request. View more on Code Climate. |
Co-authored-by: kaiser <[email protected]>
What do these changes do?
What
We add an(other) alias for the gunicorn
simcore-service
executable placed in.venv/bin/
for simcore services.Previously, the naming convention was
simcore-service-$SERVICE_NAME
, likesimcore-service-storage
Now, we add the generic
simcore-service
to all services.Bonus: Harmonized naming, some executables would be named
osparc-
, which is removed in favor ofsimcore-service-
Why
In the ops CI/CD we have introduced a CI to validate that the pydantic settings validation passes for a given set of environment variables:
https://git.speag.com/oSparc/osparc-ops-deployment-configuration/-/jobs/3849540
https://github.com/ITISFoundation/osparc-ops-environments/blob/main/scripts/deployments/validate_simcore_stack_yml.bash
This CI pipeline calls the
settings
subcommand of the simcore-executables to validate the configuration. In order to call the executable, the correct name of the service-executable (e.g.simcore-service-storage
) has to be known and composed. It is not always easy to do this in a bash script with only adocker-compose.yml
given, since for example the webserver runs in different flavors (GC, EVENTS), and has different names for the flavors' docker containers while the gunicorn executables' names remain the same.By introducing the common alias
simcore-service
, which is added to$PATH
as well, the CI pipeline can be coded more cleanly by checking for the existence of an executable calledsimcore-service
and using it if it exists.Perspectives
In this direction, we could potentially harmonize the files
to have only one version of those for all simcore services, instead of duplicating them for every simcore microservice.
Related issue/s
How to testDev Checklist
DevOps Checklist