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

OCPERT-56. OAR Fix wrong data types in docstring #462

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ltroiano-rh
Copy link
Contributor

OAR Fix wrong data types in docstring in https://github.com/openshift/release-tests repository.

Details:
OAR tool docstring use wrong data types in docstring. For example [] instead of list.

Update all docstrings in OAR tool to use correct OAR types.

Scope:
OAR tool only.
It is not a goal to provide new docstrings, or add types to actual code.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 11, 2025
@openshift-merge-robot
Copy link

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci bot requested review from LuboTerifaj and rioliu-rh March 11, 2025 20:26
Copy link

openshift-ci bot commented Mar 11, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tomasdavidorg for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

openshift-ci bot commented Mar 11, 2025

@ltroiano-rh: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/oar-check dbbcd70 link false /test oar-check
ci/prow/images dbbcd70 link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@LuboTerifaj LuboTerifaj left a comment

Choose a reason for hiding this comment

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

Hello @ltroiano-rh ,

There is redundant "." in your commit message.

Please rebase your pull-request with master.

Thank you!

@@ -31,7 +31,7 @@ def get_advisories(self):
Get all advisories
Returns:
[]Advisory: all advisory wrappers
List[Advisory] : all advisory wrappers
Copy link
Contributor

Choose a reason for hiding this comment

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

The method returns a different type.

@@ -51,7 +51,7 @@ def get_jira_issues(self):
Get all jira issues from advisories in a release
Returns:
[]: all jira issues from advisories
List: all jira issues from advisories
Copy link
Contributor

Choose a reason for hiding this comment

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

The method returns a different type.

@@ -199,7 +199,7 @@ def drop_bugs(self):
AdvisoryException: error when dropping bugs from advisory
Returns:
[]: bugs cannot be dropped
Tuple [list, list]: bugst to be dropped, bugs cannot be dropped
Copy link
Contributor

@LuboTerifaj LuboTerifaj Mar 12, 2025

Choose a reason for hiding this comment

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

The syntax is valid, but we should keep the types consistent across files. It's a good practice to use standard types.
The method returns a different type.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is also a typo at this line.

@@ -252,7 +252,7 @@ def check_cve_tracker_bug(self):
AdvisoryException: error when invoke elliott cmd
Returns:
json: missed CVE tracker bugs
List[str]: missed CVE tracker bugs
Copy link
Contributor

Choose a reason for hiding this comment

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

The method returns a different type.

Returns:
[]JiraIssue: jira subtask list
List [JiraIssue]: jira subtask list
Copy link
Contributor

@LuboTerifaj LuboTerifaj Mar 12, 2025

Choose a reason for hiding this comment

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

The syntax is valid, but we should keep the types consistent across files. It's a good practice to use standard types.
The method returns a different type.

@LuboTerifaj
Copy link
Contributor

@ltroiano-rh one more note, to avoid having the same commit message in git history, use a different commit message. Please keep the jira id in it.

@LuboTerifaj
Copy link
Contributor

This PR follows up #454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants