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

Update Poetry with latest packages #823

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

manosnoam
Copy link
Contributor

The updated Poetry includes robotframework-openshift fix for Python 3.8:
red-hat-data-services/robotframework-openshift#6

@sonarcloud
Copy link

sonarcloud bot commented Jun 13, 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.0% 0.0% Duplication

@github-actions
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
332 0 0 332 100

@manosnoam
Copy link
Contributor Author

manosnoam commented Jun 13, 2023

For example, this job console shows the SyntaxWarning before the fix:
https://opendatascience-jenkins-csb-rhods.apps.ocp-c1.prod.psi.redhat.com/job/rhods-ci-pr-test/1865/console

/home/centos/.cache/pypoetry/virtualenvs/ods-ci-urWBp4V3-py3.8/lib/python3.8/site-packages/OpenShiftLibrary/keywords/generic.py:379: 
SyntaxWarning: "is not" with a literal. Did you mean "!="?

With the fix, the SyntaxWarning disappeared:
https://opendatascience-jenkins-csb-rhods.apps.ocp-c1.prod.psi.redhat.com/job/rhods-ci-pr-test/1868/console

Copy link
Member

@mwaykole mwaykole left a comment

Choose a reason for hiding this comment

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

lgtm

@mwaykole
Copy link
Member

if its verified could u plz add a proper label

Copy link
Contributor

@bdattoma bdattoma left a comment

Choose a reason for hiding this comment

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

it would be better to keep the poetry toml file consistent with the changes here. That would also avoid replacing the pkgs version with the old ones when a poetry install is executed (after deleting the lock).

is that correct @lugi0 ?

@jgarciao jgarciao self-requested a review June 14, 2023 08:40
@jgarciao
Copy link
Contributor

jgarciao commented Jun 14, 2023

it would be better to keep the poetry toml file consistent with the changes here. That would also avoid replacing the pkgs version with the old ones when a poetry install is executed (after deleting the lock).

is that correct @lugi0 ?

Yes, the change needs to be done in pyproject.toml and then update poetry.lock following the steps at https://github.com/red-hat-data-services/ods-ci/blob/master/ods_ci/docs/release.md The PR needs to update both files

@manosnoam
Copy link
Contributor Author

manosnoam commented Jun 14, 2023

it would be better to keep the poetry toml file consistent with the changes here. That would also avoid replacing the pkgs version with the old ones when a poetry install is executed (after deleting the lock).
is that correct @lugi0 ?

Yes, the change needs to be done in pyproject.toml and then update poetry.lock following the steps at https://github.com/red-hat-data-services/ods-ci/blob/master/ods_ci/docs/release.md The PR needs to update both files

@jgarciao , @bdattoma I did not change pyproject.toml at all ;-)
I only run poetry updatewith the existing toml, that built all packages with their latest allowed versions, include fetching latest robotframework-openshift.

The only thing I noticed is that pyproject.toml includes robotframework = "^5": https://github.com/red-hat-data-services/ods-ci/blob/78a8f6707e9aada3869488e982426c1115a81b0e/pyproject.toml#LL12C18-L12C18

But in the readme we suggest to use robotframework = "^6".

Copy link
Contributor

@jgarciao jgarciao left a comment

Choose a reason for hiding this comment

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

We cannot use robot framework 6 yet because it's not compatible with another dependency we are using (rpaframework)

I understand it now. I think the PR can be merged. Thanks @manosnoam !

@lugi0
Copy link
Contributor

lugi0 commented Jun 14, 2023

I believe @manosnoam is correct, @bdattoma if you were to delete your lock and then run a poetry install today, I'm almost certain you'd get the same lock file Noam is committing, since in this case you're simply getting the latest version(s) allowed by your pyproject.toml file.
The same thing would happen if you were to run poetry updated in your local env with the current toml file.

@manosnoam manosnoam added the verified This PR has been tested with Jenkins label Jun 14, 2023
@jgarciao jgarciao added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label Jun 14, 2023
@lugi0
Copy link
Contributor

lugi0 commented Jun 14, 2023

btw this is the issue for RF6 support in RPA: robocorp/rpaframework#673
it's not likely they'll support it anytime soon

@manosnoam manosnoam merged commit 33d2395 into red-hat-data-services:master Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants