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

[3pt][SPIKE] verify kebechet's advise manager is working on all overlays #151

Closed
2 tasks
goern opened this issue Mar 8, 2022 · 10 comments · Fixed by thoth-station/kebechet#1096
Closed
2 tasks
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/user-experience Issues or PRs related to the User Experience of our Services, Tools, and Libraries. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@goern
Copy link
Member

goern commented Mar 8, 2022

High-level Goals
verify kebechet's advise manager is working on all overlays

Acceptance Criteria

  • all the overlay directories should have up to date Pipefile/Pipefile.lock based on Thoth's current production data.
  • identify list of actions/issues if problems are present (like data is outdated, ...)
@goern goern added kind/feature Categorizes issue or PR as related to a new feature. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels Mar 8, 2022
@goern goern added this to New in Kebechet via automation Mar 8, 2022
@codificat
Copy link
Member

A pre-requisite for this is thoth-station/core#326

/sig user-experience
/triage accepted
/priority important-soon

@sesheta sesheta added sig/user-experience Issues or PRs related to the User Experience of our Services, Tools, and Libraries. triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels May 5, 2022
@codificat codificat added this to Next in SIG-Stack-Guidance Jun 13, 2022
@codificat codificat removed this from Next in SIG-Stack-Guidance Jun 13, 2022
@Gkrumbach07 Gkrumbach07 moved this from New to Backlog in SIG-User-Experience Jun 13, 2022
@codificat
Copy link
Member

fixing duplicate priorities here:
/remove-priority important-soon

@sesheta sesheta removed the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jun 23, 2022
@Gkrumbach07 Gkrumbach07 moved this from Backlog to Next in SIG-User-Experience Jul 5, 2022
@harshad16 harshad16 changed the title verify kebechet's advise manager is working on all overlays [SPIKE] verify kebechet's advise manager is working on all overlays Jul 5, 2022
@harshad16 harshad16 changed the title [SPIKE] verify kebechet's advise manager is working on all overlays [3pt] verify kebechet's advise manager is working on all overlays Jul 5, 2022
@harshad16 harshad16 changed the title [3pt] verify kebechet's advise manager is working on all overlays [3pt][SPIKE] verify kebechet's advise manager is working on all overlays Jul 5, 2022
@harshad16
Copy link
Member

When kebechet advise is being triggered via issue.
the log shows:

2022-07-08 14:57:28,973   1 INFO     kebechet:196: Running manager 'thoth-advise' for 'thoth-station/ps-nlp'
2022-07-08 14:57:30,562   1 DEBUG    kebechet.managers.thoth_advise.thoth_advise:305: No issue found to start advises for.

kebechet-job-220708145721-42be33530d896d11-980726572-main.log

seems like it unable to find the issue in the repo #156 .
that seems to be the issue.

@harshad16
Copy link
Member

harshad16 commented Jul 8, 2022

update seems like we need to use the case-sensetive title.
https://github.com/thoth-station/kebechet/blob/4b658e4f6ea36a7bed2e89c4efd6adc476685482/kebechet/managers/thoth_advise/thoth_advise.py#L62

with the new issue: #157
it seems like the adviser worked on the issue, however, the kebechet only submit the analysis and don't wait for the result.

  • kebechet should wait for the result and update the prs.

kebechet-job-220708152239-def7889814748097-3532633137-main.log

Another issue is:

  • if the push event is allowed to trigger adviser, maybe that is the reason why thoth-advise is not being triggered regularly.

@harshad16
Copy link
Member

  • seems like the kebechet-run-results are not working:
STEP                                      TEMPLATE                                   PODNAME                                           DURATION  MESSAGE
 ✖ adviser-220708152257-92041d31ab35d227  adviser                                                                                                                         
 ├─✔ advise                               advise/advise                              adviser-220708152257-92041d31ab35d227-2745043324  21m                                
 ├─✔ graph-sync-advise(0)                 graph-sync/graph-sync                      adviser-220708152257-92041d31ab35d227-3249686578  15s                                
 ├─✔ parse-adviser-output                 parse-adviser-output/parse-adviser-output  adviser-220708152257-92041d31ab35d227-3229721138  9s                                 
 ├─✔ trigger-integration                  trigger-integration/trigger-integration    adviser-220708152257-92041d31ab35d227-144062123   8s                                 
 ├─✖ kebechet-run-results                 kebechet-run-results/schedule-kebechet     adviser-220708152257-92041d31ab35d227-3931961412  8s        failed with exit code 2  
 └─✔ send-messages                        send-messages/send-messages                adviser-220708152257-92041d31ab35d227-2190378065  5s

The kebechet-run-result has issues:

Usage: kebechet-cli run-results [OPTIONS]
Try 'kebechet-cli run-results --help' for help.

Error: Missing option '-m' / '--thoth-adviser-metadata'.

@shreekarSS
Copy link
Member

While testing creation of 'Kebechet Advise ' issue to get thamos advise,
I faced this permission issue shreekarSS#6 (comment)
So I added myself as a owner to test and opened thoth-station/kebechet#1081, the way kebechet reading the it's own OWNER file than reading the OWNERS from cloned repo

@harshad16
Copy link
Member

harshad16 commented Jul 11, 2022

The kebechet-run-result is able to process a little bit ahead
however it fail on resolving through the result of adviser.
issue: thoth-station/support#244
adviser-220711150929-55d0d75149b291c3-2643566434-main.log

@harshad16
Copy link
Member

Fixing this comment would fix the issue:
thoth-station/support#244 (comment)

@harshad16
Copy link
Member

harshad16 commented Jul 15, 2022

The kebechet thoth-advise is unable to parse the result and share the output a PR.
The reason is due to the formatting. As result of the thamos get_analysis_results is a tuple with (result, error_boolean)
https://github.com/thoth-station/kebechet/blob/536cf1ca02c933e11c1f5ddea0a3d659964f955b/kebechet/managers/thoth_advise/thoth_advise.py#L390
The result formatting needs to be rechecked.

Tasks to do:

  • Familiarize through kebechet thoth-advise code base and thamos lib code base.
  • Figure out what formatting is out of order and where all to change source code, to fit to the latest thamos.
  • Update kebechet thoth-advise code base with suitable changes.
  • If changes, are required on thamos end, open a issue in thamos with proper details and proposal.
    • work on creating the thamos end source code.
  • Open PR for review

The process to test in local:
The focus part is kebechet output retrieved from adviser, which is handled by kebechet run-result

Required params example:

KEBECHET_REPO_URL = "https://github.com/thoth-station/ps-nlp"
KEBECHET_SERVICE_NAME= "github"
KEBECHET_ANALYSIS_ID = "adviser-220715024124-598c498944fcb667"
THOTH_ADVISER_METADATA="{"origin": "https://github.com/thoth-station/ps-nlp", "re_run_adviser_id": null, "source_type": "KEBECHET", "kebechet_metadata": null, "thoth.adviser": {"justification": null, "stack_info": null}}"

Follow a similar pattern and try out different analysis id while working on this.
Different analysis ids can be found here in comments: #160

@shreekarSS
Copy link
Member

FYI thoth-station/kebechet#1094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/user-experience Issues or PRs related to the User Experience of our Services, Tools, and Libraries. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

6 participants