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

🐛 No longer upload output ports when study is in read only mode #4207

Merged
merged 5 commits into from
May 10, 2023

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented May 9, 2023

What do these changes do?

Currently, due to a side effect outputs are not uploaded by the sidecar. Storage raises an error due to missing permissions to upload files when sidecar is running in read only mode.

This properly addresses the issue.

NOTE with @elisabettai we discussed about this. When opened in read only you cannot push outputs to downstream services. I'm not sure how this works for legacy services.

Related issue/s

How to test

DevOps Checklist

@GitHK GitHK self-assigned this May 9, 2023
@GitHK GitHK added a:director-v2 issue related with the director-v2 service changelog:🐛bugfix labels May 9, 2023
@GitHK GitHK added this to the Pastel de Nata milestone May 9, 2023
@GitHK GitHK marked this pull request as ready for review May 9, 2023 09:14
@GitHK GitHK requested review from sanderegg and pcrespov as code owners May 9, 2023 09:14
@GitHK GitHK requested review from matusdrobuliak66 and mguidon and removed request for mguidon May 9, 2023 09:14
@GitHK
Copy link
Contributor Author

GitHK commented May 9, 2023

FYI: Just something to keep in mid, read my notes above. Thanks!
@mguidon @mrnicegyu11 @odeimaiz @elisabettai @colinRawlings

Copy link
Member

@mrnicegyu11 mrnicegyu11 left a comment

Choose a reason for hiding this comment

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

Could I bother you to in fact check and write down here how it works for legacy services' outputs if they are in read only mode?

@mrnicegyu11
Copy link
Member

thanks a lot for this! small and clean

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #4207 (76b118e) into master (a7ab0fb) will decrease coverage by 11.4%.
The diff coverage is 66.6%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4207      +/-   ##
=========================================
- Coverage    84.3%   72.9%   -11.4%     
=========================================
  Files         964     406     -558     
  Lines       41703   20870   -20833     
  Branches      953     173     -780     
=========================================
- Hits        35169   15228   -19941     
+ Misses       6317    5593     -724     
+ Partials      217      49     -168     
Flag Coverage Δ
integrationtests 67.3% <66.6%> (+1.4%) ⬆️
unittests 86.3% <0.0%> (+4.8%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...modules/dynamic_sidecar/scheduler/_core/_events.py 96.7% <66.6%> (-0.6%) ⬇️

... and 715 files with indirect coverage changes

@GitHK
Copy link
Contributor Author

GitHK commented May 9, 2023

Could I bother you to in fact check and write down here how it works for legacy services' outputs if they are in read only mode?

@mrnicegyu11 so in case of comp and legacy services outputs will not be updated. Especially for computational, since the run button is disabled.

@sonarcloud
Copy link

sonarcloud bot commented May 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@codeclimate
Copy link

codeclimate bot commented May 10, 2023

Code Climate has analyzed commit 76b118e and detected 0 issues on this pull request.

View more on Code Climate.

@GitHK GitHK merged commit 1562464 into ITISFoundation:master May 10, 2023
@GitHK GitHK deleted the pr-osparc-read-only-no-watcher branch May 10, 2023 06:12
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request May 30, 2023
24 tasks
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.

Read only study uploads outputs for dynamic services
5 participants