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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰fixed test blocking CI in director-v2 unittests #3680

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Dec 14, 2022

What do these changes do?

How this test passed the CI is a complete mystery to me! @sanderegg or @pcrespov any ideas?

Related issue/s

Not sure why the CI passed on this test.

How to test

Checklist

@GitHK GitHK self-assigned this Dec 14, 2022
@GitHK GitHK added this to the Zefram Cochrane milestone Dec 14, 2022
@GitHK GitHK marked this pull request as ready for review December 14, 2022 12:25
@GitHK GitHK changed the title 馃悰fixed test blocking CI 馃悰fixed test blocking CI in director-v2 unittests Dec 14, 2022
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.

disable dat rabbit!

thx

@sanderegg
Copy link
Member

Just depend on which test ran before... Then a rabbit was up eating carrots

@pcrespov
Copy link
Member

pcrespov commented Dec 14, 2022

@GitHK @sanderegg .

As I mentioned before in mattermost: I think the problem is that the unit-tests in director-v2 are using dynamic-sidecar services as part of the setup.

With the new CI rules, any change in the dynamic-sidecar will not trigger director-v2 unit-tests .
The fact that the problem is in rabbit might be a second order effect. E.g. dynamic-sidecar has changed such that rabbit is used differently and it has to be dsiabled. (this is just speculation)

My advice: let's move all unit-tests using dynamic-sidecar into integration folder or a separate one that is active when changes in the dynamic-sidecar happens

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #3680 (acfae20) into master (4c79785) will decrease coverage by 14.6%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3680      +/-   ##
=========================================
- Coverage    82.3%   67.7%   -14.7%     
=========================================
  Files         883     360     -523     
  Lines       37382   18381   -19001     
  Branches      785     135     -650     
=========================================
- Hits        30798   12446   -18352     
+ Misses       6376    5886     -490     
+ Partials      208      49     -159     
Flag Coverage 螖
integrationtests 67.7% <酶> (酶)
unittests ?

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

Impacted Files Coverage 螖
...service_webserver/projects/_project_models_rest.py 0.0% <0.0%> (-100.0%) 猬囷笍
...es/web/server/src/simcore_service_webserver/log.py 0.0% <0.0%> (-94.8%) 猬囷笍
...erver/src/simcore_service_webserver/rest_models.py 0.0% <0.0%> (-92.7%) 猬囷笍
...simcore_service_webserver/director/director_api.py 0.0% <0.0%> (-76.0%) 猬囷笍
...rc/simcore_service_webserver/version_control_db.py 24.5% <0.0%> (-68.7%) 猬囷笍
...ce_webserver/studies_dispatcher/_studies_access.py 22.2% <0.0%> (-64.9%) 猬囷笍
...src/simcore_service_webserver/activity/handlers.py 29.3% <0.0%> (-63.8%) 猬囷笍
...src/simcore_service_webserver/clusters/handlers.py 34.0% <0.0%> (-63.0%) 猬囷笍
...ver/src/simcore_service_webserver/catalog_units.py 24.0% <0.0%> (-61.2%) 猬囷笍
...r/src/simcore_service_webserver/projects/_ports.py 32.9% <0.0%> (-61.0%) 猬囷笍
... and 659 more

@GitHK
Copy link
Contributor Author

GitHK commented Dec 14, 2022

@GitHK @sanderegg .

As I mentioned before in mattermost: I think the problem is that the unit-tests in director-v2 are using dynamic-sidecar services as part of the setup.

With the new CI rules, any change in the dynamic-sidecar will not trigger director-v2 unit-tests . The fact that the problem is in rabbit might be a second order effect. E.g. dynamic-sidecar has changed such that rabbit is used differently and it has to be dsiabled. (this is just speculation)

My advice: let's move all unit-tests using dynamic-sidecar into integration folder or a separate one that is active when changes in the dynamic-sidecar happens

@pcrespov This is not correct. I've added a rabbitmq dependency to the dynamic-scheduler inside the director-v2. #3666

Somehow I was able to merge with the CI failing my previous PR. If you run code from master locally tests fail/hang.
The issue here is that the CI / [unit] director-v2 times out.

Screenshot 2022-12-14 at 14 03 56

Somehow when you press rerun failed this is sometimes is treated as green. There is no way that the CI could have become green for CI / [unit] director-v2

@sonarcloud
Copy link

sonarcloud bot commented Dec 14, 2022

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.2% 0.2% Duplication

@GitHK GitHK merged commit e1f6496 into ITISFoundation:master Dec 14, 2022
@GitHK GitHK deleted the pr-osparc-fix-flaky-dy-sidecar branch December 14, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants