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

feature(hydra): move to formal python:3.8 image #2178

Merged
merged 6 commits into from
Jul 5, 2020

Conversation

fruch
Copy link
Contributor

@fruch fruch commented May 21, 2020

centos7 isn't formally support python3
and were getting python3.6 out of iusrepo
and
iusrepo/announce#18
seem like a good reason to move to formal python image

PR pre-checks (self review)

  • I followed KISS principle and best practices
  • I didn't leave commented-out/debugging code
  • I added the relevant backport labels
  • New configuration option are added and documented (in sdcm/sct_config.py)
  • I have added tests to cover my changes (Infrastructure only - under unit-test/ folder)
  • All new and existing unit tests passed (CI)
  • I have updated the Readme/doc folder accordingly (if needed)

@fruch fruch added test-provision-docker test-provision-aws Run provision test on AWS test-provision-gce Run provision test on GCE labels May 21, 2020
docker/env/Dockerfile Outdated Show resolved Hide resolved
docker/env/Dockerfile Outdated Show resolved Hide resolved
docker/env/version Outdated Show resolved Hide resolved
@fruch fruch force-pushed the move_to_py3.7 branch 2 times, most recently from 8a71fe3 to 228dac5 Compare May 21, 2020 12:49
@fruch
Copy link
Contributor Author

fruch commented May 21, 2020

Status:
docker provision test passing locally
all provision tests in jenkins seem to be failing,
AWS:

[2020-05-21T20:01:44.358Z] < t:2020-05-21 20:01:43,847 f:log.py          l:20   c:sdcm.utils.log       p:ERROR >   File "/sct/sdcm/utils/common.py", line 1073, in get_my_ip
[2020-05-21T20:01:44.358Z] < t:2020-05-21 20:01:43,847 f:log.py          l:20   c:sdcm.utils.log       p:ERROR >     ip = socket.gethostbyname(hostname)
[2020-05-21T20:01:44.358Z] < t:2020-05-21 20:01:43,847 f:log.py          l:20   c:sdcm.utils.log       p:ERROR > socket.gaierror: [Errno -2] Name or service not known

GCE: ssh issue to connect to loader, seem like not related
docker:
import yaml fails when running configen.py, very weird since local with hydra it was running good

@ghost
Copy link

ghost commented May 24, 2020

Congratulations 🎉. DeepCode analyzed your code in 0.49 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@fruch fruch removed the test-provision-aws Run provision test on AWS label May 24, 2020
@fruch
Copy link
Contributor Author

fruch commented May 24, 2020

Status:
docker and AWS provision tests are passing
GCE is failing, doesn't sounds related, trying again to be sure.

@fruch fruch added backport/none Backport is not required Ready for review and removed test-provision-docker test-provision-gce Run provision test on GCE labels May 24, 2020
@bentsi
Copy link
Contributor

bentsi commented May 24, 2020

remove

  • @cached_property
  • sdcm/utils/fromisoformat.py

@fruch fruch marked this pull request as ready for review May 24, 2020 14:35
@fruch fruch added the test-provision-gce Run provision test on GCE label May 24, 2020
@fruch fruch marked this pull request as ready for review May 24, 2020 17:11
@fruch fruch added test-provision-gce Run provision test on GCE and removed test-provision-gce Run provision test on GCE labels May 25, 2020
@bentsi bentsi requested a review from enaydanov May 25, 2020 20:03
@fruch fruch assigned bentsi and unassigned fruch May 27, 2020
@bentsi
Copy link
Contributor

bentsi commented May 31, 2020

@fruch please add documentation of how to install Python 3.8 on your local env

Copy link
Contributor

@enaydanov enaydanov left a comment

Choose a reason for hiding this comment

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

Two thumbs up to have Python 3.8 in hydra.

Overall it looks good.

I don't see any issues with list-resources.

docker/env/Dockerfile Outdated Show resolved Hide resolved
docker/env/Dockerfile Show resolved Hide resolved
docker/env/Dockerfile Show resolved Hide resolved
docker/env/Dockerfile Outdated Show resolved Hide resolved
@fruch fruch requested a review from enaydanov May 31, 2020 13:54
@fruch fruch removed the test-provision-gce Run provision test on GCE label Jun 2, 2020
Copy link
Contributor

@enaydanov enaydanov 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.

@fruch
Copy link
Contributor Author

fruch commented Jun 11, 2020

@bentsi anything else holding this one ?

@bentsi
Copy link
Contributor

bentsi commented Jun 11, 2020

@fruch Thursday :D
Let's merge on Sunday

@fruch
Copy link
Contributor Author

fruch commented Jun 11, 2020

@bentsi Friday is a good day for those kind of merges 👍

@fruch
Copy link
Contributor Author

fruch commented Jun 15, 2020

@bentsi we agreed we'll merge this week, right ?

@bentsi
Copy link
Contributor

bentsi commented Jun 15, 2020

yes

@bentsi
Copy link
Contributor

bentsi commented Jun 15, 2020

I will check it with the new Hyra and SCT runners

@fruch
Copy link
Contributor Author

fruch commented Jun 24, 2020

@bentsi a reminder, it's been two week since we agreed to merge this one...

@fruch fruch force-pushed the move_to_py3.7 branch 2 times, most recently from 0fc88a4 to cde8556 Compare July 5, 2020 11:39
fruch added 6 commits July 5, 2020 14:44
centos7 isn't formally support python3
and were getting python3.6 out of iusrepo
and
iusrepo/announce#18
seem like a good reason to move to formal python image
in some case seems like this function isn't working
if the hostname is wrong, or configured manually and isn't found in /etc/hosts
prepend `/usr/local/bin` to path to make sure we use the correct python3
when running with docker backend
screen isn't directly use, and when needed be be installed manually
it's failing to install for docker backend on the loader "node" which
is local run, now that we switch a formal python image for hydra
now that we are moving to python 3.8 we don't need this
backport code anymore
this backport isn't needed now that we move to python3.8
@bentsi bentsi merged commit 6d69f9f into scylladb:master Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/none Backport is not required Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants