Skip to content

[maintenance] Upgrades webserver's requirements #1444

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

Merged
merged 55 commits into from
Apr 29, 2020

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Apr 7, 2020

What do these changes do?

Upgrade strategy starts by upgrading all package requirements to their latest versions and testing them. This establishes constraints on base input requirements that are included in the webserver service's input requirements. These requirements are compiled to get latest upgrades. If fails, constraints are added either in the input requirements of the service or in one of more of the packages, depending on the nature of the failure.

Specifically, these are the changes:

  • Review and upgrade test requirements of packages:

    • postgres-database.
    • servicelib
    • simcore sdk
    • s3wrapper
    • pytest-simcore
  • Upgrades webserver's dependencies:

  • Makefile cleanup

    • fixes make clean under different conditions
    • new make clean-ps to remove docker containers
    • silent pips
    • make reqs in webserver now include dependencies to _base.in packages
  • FIXES: exec boot of webserver and director to grant graceful shutdown

Related issue number

Part of #1412 to upgrade python

How to test

make devenv
cd services/web/server
make install-dev tests

Checklist

  • Did you change any service's API? Then make sure to bundle document and upgrade version (make openapi-specs, git commit ... and then make version-*)
  • Unit tests for the changes exist
  • Runs in the swarm
  • Documentation reflects the changes
  • New module? Add your github username to .github/CODEOWNERS

@pcrespov pcrespov added dependencies t:maintenance Some planned maintenance work labels Apr 7, 2020
@pcrespov pcrespov self-assigned this Apr 7, 2020
@codecov
Copy link

codecov bot commented Apr 7, 2020

Codecov Report

Merging #1444 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1444   +/-   ##
=======================================
  Coverage   50.64%   50.64%           
=======================================
  Files          68       68           
  Lines        2079     2079           
  Branches      210      210           
=======================================
  Hits         1053     1053           
  Misses        970      970           
  Partials       56       56           
Flag Coverage Δ
#integrationtests 69.73% <0.00%> (ø)
#unittests 40.91% <0.00%> (ø)

Continue to review full report at Codecov.

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

@pcrespov pcrespov changed the title WIP: [maintenance] Wide requirements upgrade WIP: [maintenance] repo-wide upgrade of requirements Apr 7, 2020
@pcrespov pcrespov changed the title WIP: [maintenance] repo-wide upgrade of requirements [maintenance] Upgrades webserver's requirements Apr 8, 2020
@pcrespov pcrespov marked this pull request as ready for review April 8, 2020 19:48
@pcrespov pcrespov requested review from sanderegg and mguidon April 8, 2020 19:48
Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

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

Looks good. Go ahead.

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.

very good! just the one fixture in webserver about the socket io client. it looks like a duplicate of the one in pytest-simcore. I can take care of it once I look into the socketio issue.

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.

👍

@pcrespov
Copy link
Member Author

@sanderegg could you please look at the tests failing due to socketio and give some feedback? THX!

@pcrespov pcrespov requested a review from sanderegg April 15, 2020 08:12
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.

great go ahead

 Conflicts:
	requirements.txt
	services/api-gateway/requirements/dev.txt
@pcrespov pcrespov merged commit 71ea6d2 into ITISFoundation:master Apr 29, 2020
@pcrespov pcrespov deleted the maintenance/reqs branch April 29, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants