sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.43k stars 425 forks source link

Sweep: Refactor on_check_suite.py to Remove Commented Code and Improve Logging. #1608

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

In the file sweepai/handlers/on_check_suite.py, there are a couple of issues that need to be addressed:

  1. There is commented out code on lines # logs_list = [extract_logs_from_comment(comment.body) for comment in comments] and # current_logs = extract_logs_from_comment(problematic_logs). These lines should be removed or uncommented if they are necessary.

  2. The error logs do not use traceback, which makes it harder to debug issues. Please refactor the logging to use traceback for error logs.

  3. There are several logger.info logs that may not be necessary, such as logger.info(f"Skipping github action for PR with {num_pr_commits} commits") and logger.info(f"Running github action for PR with {num_pr_commits} commits"). Please review these logs and remove any that are not necessary.

sweep-nightly[bot] commented 1 year ago

0%


❌ Unable to Complete PR

It looks like an issue has occurred around fetching the files. Perhaps the repo has not been initialized. If this error persists contact team@sweep.dev.

@sweep-nightly[bot], please edit the issue description to include more details and I will automatically relaunch.

For bonus GPT-4 tickets, please report this bug on Discord.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.