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

Fix: To check if kebechet's advise manager is working on all overlays #1096

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

shreekarSS
Copy link
Member

@shreekarSS shreekarSS commented Jul 18, 2022

Related Issues and Dependencies

Fixes: thoth-station/ps-nlp#151
Fixes: thoth-station/support#247
Fixes: thoth-station/support#248
Fixes: #1094
Fixes: thoth-station/support#251

Description

Fixed referencing incorrect dict keys and Piplock file path

@sesheta sesheta requested review from harshad16 and KPostOffice July 18, 2022 22:11
@sesheta sesheta added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 18, 2022
@shreekarSS shreekarSS force-pushed the overlays branch 2 times, most recently from 695ce9e to b69be4c Compare July 18, 2022 22:32
self.runtime_environment = _runtime_env_name_from_advise_response(
res[0]
)
to_ret = False
if res[1] is False:
_LOGGER.info("Advise succeeded")
self._write_advise(res[0])
res[0].update({"document_id": analysis_id})
file_path = os.path.join(
overlays_dir, str(self.runtime_environment), "Pipfile.lock"
Copy link
Member

Choose a reason for hiding this comment

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

Hey, what happens if there is no overlays dir? overlays_dir will still be an empty string. This should looks something like:

file_path = os.path.join(overlays_dir, self.runtime_environment, "Pipfile.lock") if overlays_dir else "Pipfile.lock"

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack, thanks for pointing out

@KPostOffice
Copy link
Member

/approve

@sesheta
Copy link
Member

sesheta commented Jul 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KPostOffice

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

The pull request process is described 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

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 19, 2022
@sesheta sesheta merged commit 86e803e into thoth-station:master Jul 19, 2022
opened_merge = self._open_merge_request(
branch_name, labels, ["Pipfile.lock"], res[0].get("metadata")
branch_name, labels, [file_path], res[0]
Copy link
Member

Choose a reason for hiding this comment

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

Wouldnt this res[0] put a lot of info on the pr ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
4 participants