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

🎨 expose service_run_id as an env var for both comp and new style dynamic services #6942

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Dec 11, 2024

What do these changes do?

NOTE: this became very noisy due to a rename and unification of the names

The ${OSPARC_VARIABLE_SERVICE_RUN_ID} will now be replaced in the compose spec with the actual service_run_id.

The service_run_id must be exposed for both comp and dynamic services it's a requirement for some comp services.

Bonus: unified service_run_id under one type ServiceRunID shared by all services

Related issue/s

How to test

Dev-ops checklist

@GitHK GitHK self-assigned this Dec 11, 2024
@GitHK GitHK added the a:director-v2 issue related with the director-v2 service label Dec 11, 2024
@GitHK GitHK added this to the Event Horizon milestone Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 95.94595% with 3 lines in your changes missing coverage. Please review.

Project coverage is 86.87%. Comparing base (e9eec69) to head (1c44aec).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6942      +/-   ##
==========================================
- Coverage   87.00%   86.87%   -0.14%     
==========================================
  Files        1621     1451     -170     
  Lines       63942    60160    -3782     
  Branches     2033     1644     -389     
==========================================
- Hits        55632    52262    -3370     
+ Misses       7976     7628     -348     
+ Partials      334      270      -64     
Flag Coverage Δ
integrationtests 67.53% <96.55%> (-0.82%) ⬇️
unittests 85.68% <94.59%> (-0.17%) ⬇️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 91.55% <100.00%> (+0.09%) ⬆️
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration 70.02% <ø> (ø)
pkg_service_library 73.37% <0.00%> (+0.07%) ⬆️
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.38% <ø> (ø)
agent 96.82% <100.00%> (ø)
api_server 90.13% <ø> (ø)
autoscaling 96.09% <ø> (ø)
catalog 90.57% <ø> (ø)
clusters_keeper 99.48% <ø> (ø)
dask_sidecar 91.26% <ø> (ø)
datcore_adapter 93.18% <ø> (ø)
director 76.49% <ø> (ø)
director_v2 91.41% <93.33%> (+0.02%) ⬆️
dynamic_scheduler 97.14% <ø> (ø)
dynamic_sidecar 89.75% <100.00%> (ø)
efs_guardian 90.12% <ø> (ø)
invitations 93.44% <ø> (ø)
osparc_gateway_server ∅ <ø> (∅)
payments 92.66% <ø> (ø)
resource_usage_tracker 89.01% <100.00%> (+0.03%) ⬆️
storage 89.54% <ø> (ø)
webclient ∅ <ø> (∅)
webserver 84.44% <100.00%> (-0.02%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9eec69...1c44aec. Read the comment docs.

Andrei Neagu added 3 commits December 12, 2024 16:34
…-id' of github.com:GitHK/osparc-simcore-forked into pr-osparc-allow-user-services-to-request-dy-sidecar-run-id
@GitHK GitHK changed the title 🎨 dynamic-service can now request the run id at runtime in their env vars 🎨 expose run_id as an env var for both comp and new style dynamic services Dec 13, 2024
@GitHK GitHK marked this pull request as ready for review December 13, 2024 07:43
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

ok, but wrong computational run id

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

added some comments

@GitHK GitHK requested a review from sanderegg December 13, 2024 08:49
Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

I’m fine with this unification 👍, but are we 100% sure that the concept of a run ID is the same in all three use cases: computation, dynamic, and resource usage tracker?

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

Good for me but please check my comments about the naming, and at least use import RunID as ServiceRunID in all the computational related modules in dv-2.

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

please reassign back when unblocked. thx

@GitHK GitHK changed the title 🎨 expose run_id as an env var for both comp and new style dynamic services 🎨 expose service_run_id as an env var for both comp and new style dynamic services Dec 16, 2024
@GitHK GitHK requested review from sanderegg and pcrespov December 17, 2024 11:58
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

thanks!

Andrei Neagu added 2 commits December 19, 2024 08:26
@GitHK GitHK enabled auto-merge (squash) December 19, 2024 07:30
@GitHK GitHK merged commit 51b214b into ITISFoundation:master Dec 19, 2024
91 of 93 checks passed
@GitHK GitHK deleted the pr-osparc-allow-user-services-to-request-dy-sidecar-run-id branch December 19, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:director-v2 issue related with the director-v2 service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants