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

Debugging of dev branch looks complete #2810

Merged
merged 46 commits into from
Jun 7, 2024
Merged

Debugging of dev branch looks complete #2810

merged 46 commits into from
Jun 7, 2024

Conversation

sgoggins
Copy link
Member

@sgoggins sgoggins commented Jun 5, 2024

Description

  • Field testing the fixes to the dev branch, and it looks good.
  • Ready to merge and release after this PR is merged with dev

sgoggins and others added 30 commits May 10, 2024 19:51
Signed-off-by: Sean P. Goggins <[email protected]>
…t using a materialized view.

Signed-off-by: Sean P. Goggins <[email protected]>
update check for pr_file_patch
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
@sgoggins sgoggins requested a review from ABrain7710 June 5, 2024 02:43
@sgoggins sgoggins changed the base branch from main to dev June 5, 2024 02:44
@@ -1,4 +1,7 @@
import requests
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
C0114: Missing module docstring (missing-module-docstring)

@@ -1,4 +1,7 @@
import requests
import logging

logger = logging.getLogger(__name__)

def get_NPM_data(package):
url = "https://registry.npmjs.org/%s" % package
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
C0209: Formatting a regular string which could be an f-string (consider-using-f-string)

try:
index = list(versions.keys()).index(version)
except ValueError as e:
logger.info(f'error is {e} on the NPM. Some kind of value error. Probably a VALUES error for Node, #AmIRight?')
raise e

major,minor,patch = split_version(version)
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0612: Unused variable 'patch' (unused-variable)

@@ -5,12 +5,12 @@
from augur.tasks.init.celery_app import AugurCoreRepoCollectionTask
from augur.application.db.data_parse import *
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0401: Wildcard import augur.application.db.data_parse (wildcard-import)

@@ -133,7 +133,7 @@ def process_large_issue_and_pr_message_collection(repo_id, repo_git: str, logger
process_messages(all_data, task_name, repo_id, logger, augur_db)


def process_messages(messages, task_name, repo_id, logger):
def process_messages(messages, task_name, repo_id, logger, augur_db):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
R0914: Too many local variables (39/30) (too-many-locals)

return request


def build_facade_repo_collect_request(logger, enabled_phase_names, days_until_collect_again = 1):
def build_facade_repo_collect_request(session, logger, enabled_phase_names, days_until_collect_again = 1):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'enabled_phase_names' (unused-argument)

return request


def build_facade_repo_collect_request(logger, enabled_phase_names, days_until_collect_again = 1):
def build_facade_repo_collect_request(session, logger, enabled_phase_names, days_until_collect_again = 1):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'days_until_collect_again' (unused-argument)

return request

def build_ml_repo_collect_request(logger, enabled_phase_names, days_until_collect_again = 1):
def build_ml_repo_collect_request(session, logger, enabled_phase_names, days_until_collect_again = 1):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'logger' (unused-argument)

return request

def build_ml_repo_collect_request(logger, enabled_phase_names, days_until_collect_again = 1):
def build_ml_repo_collect_request(session, logger, enabled_phase_names, days_until_collect_again = 1):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'enabled_phase_names' (unused-argument)

return request

def build_ml_repo_collect_request(logger, enabled_phase_names, days_until_collect_again = 1):
def build_ml_repo_collect_request(session, logger, enabled_phase_names, days_until_collect_again = 1):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'days_until_collect_again' (unused-argument)

…with admin on the repo for the platform to return anything. It never works out. Saving resources.

Signed-off-by: Sean P. Goggins <[email protected]>
@@ -32,27 +32,27 @@ def collect_github_repo_clones_data(repo_git: str) -> None:
logger.info(f"{owner}/{repo} has no clones")

def retrieve_all_clones_data(repo_git: str, logger, key_auth):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'repo_git' (unused-argument)

@@ -32,27 +32,27 @@ def collect_github_repo_clones_data(repo_git: str) -> None:
logger.info(f"{owner}/{repo} has no clones")

def retrieve_all_clones_data(repo_git: str, logger, key_auth):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'logger' (unused-argument)

@@ -32,27 +32,27 @@ def collect_github_repo_clones_data(repo_git: str) -> None:
logger.info(f"{owner}/{repo} has no clones")

def retrieve_all_clones_data(repo_git: str, logger, key_auth):
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0613: Unused argument 'key_auth' (unused-argument)

sgoggins and others added 3 commits June 5, 2024 04:15
Signed-off-by: Sean Goggins <[email protected]>
Signed-off-by: Sean P. Goggins <[email protected]>
#dependencies = contents['dependencies']
dependencies = contents.get('dependencies', [])

if not dependencies:
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)

print("No dependencies found.")
return []
else:
print("Dependencies found.")
for dep in dependencies:
if (type(dep) is dict) and dep['pip']:
Copy link

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)

…tasks/git/dependency_libyear_tasks/tasks.py,: cannot open `/home/sean/github/rh-k12/augur/tasks/git/dependency_libyear_tasks/tasks.py,' (No such file or directory)

line:                                                                        cannot open `line' (No such file or directory)
12,:                                                                         cannot open `12,' (No such file or directory)
in:                                                                          cannot open `in' (No such file or directory)
process_libyear_dependency_metrics:                                          cannot open `process_libyear_dependency_metrics' (No such file or directory)

Signed-off-by: Sean P. Goggins <[email protected]>
@sgoggins sgoggins merged commit 6e5618d into dev Jun 7, 2024
7 checks passed
@sgoggins sgoggins deleted the dev-fixes branch June 11, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants