-
Notifications
You must be signed in to change notification settings - Fork 846
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
Augur 0.76.1 Release #2869
Augur 0.76.1 Release #2869
Conversation
Signed-off-by: Ulincsys <[email protected]>
Signed-off-by: Ulincsys <[email protected]>
Proper Gunicorn bringup detection
Signed-off-by: Andrew Brain <[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: Andrew Brain <[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: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Isaac Milarsky <[email protected]>
Add metadata to json decode errors
Signed-off-by: Isaac Milarsky <[email protected]>
Pr review comments fix
GitHub data access pr migration
Make Pylint Messages Exclusive Not Inclusive
Change log statements in contributor resolution to match new policy
Signed-off-by: Andrew Brain <[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: Andrew Brain <[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: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Refactor github graphql
logger.info('Gunicorn webserver started...') | ||
logger.info(f'Augur is running at: {"http" if development else "https"}://{host}:{port}') | ||
logger.info(f"The API is available at '{api_response.json()['route']}'") | ||
|
||
processes = start_celery_worker_processes(float(worker_vmem_cap), disable_collection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'processes' from outer scope (line 386) (redefined-outer-name)
@@ -7,6 +7,7 @@ | |||
from augur.tasks.util.worker_util import parse_json_from_subprocess_call | |||
from augur.tasks.git.util.facade_worker.facade_worker.utilitymethods import get_absolute_repo_path | |||
from augur.tasks.github.util.github_random_key_auth import GithubRandomKeyAuth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
W0611: Unused GithubRandomKeyAuth imported from augur.tasks.github.util.github_random_key_auth (unused-import)
@@ -293,9 +281,9 @@ def fetch_username_from_email(logger, auth, commit): | |||
|
|||
# Check if the email result got anything, if it failed try a name search. | |||
if login_json is None or 'total_count' not in login_json or login_json['total_count'] == 0: |
There was a problem hiding this comment.
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)
@@ -50,18 +49,18 @@ def collect_pull_requests(repo_git: str, full_collection: bool) -> int: | |||
all_data.append(pr) | |||
|
|||
if len(all_data) >= 1000: | |||
process_pull_requests(all_data, f"{owner}/{repo}: Pr task", repo_id, logger, augur_db) | |||
process_pull_requests(all_data, f"{owner}/{repo}: Github Pr task", repo_id, logger, augur_db) | |||
total_count += len(all_data) | |||
all_data.clear() | |||
|
|||
if len(all_data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
C1802: Do not use len(SEQUENCE)
without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
total_count += len(all_data) | ||
all_data.clear() | ||
|
||
if len(all_data): | ||
process_pull_requests(all_data, f"{owner}/{repo}: Pr task", repo_id, logger, augur_db) | ||
process_pull_requests(all_data, f"{owner}/{repo}: Github Pr task", repo_id, logger, augur_db) | ||
total_count += len(all_data) | ||
|
||
if total_count > 0: |
There was a problem hiding this comment.
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)
Signed-off-by: Sean P. Goggins <[email protected]>
updating version
Signed-off-by: Andrew Brain <[email protected]>
Address release bugs
Signed-off-by: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Raise exceptions on graphql errors
except ValueError as exc: | ||
raise Exception(f"Error: totalCount is not an integer. Data: {data}") from exc | ||
|
||
def __find_first_error_of_type(errors, type): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
E0213: Method '__find_first_error_of_type' should have "self" as first argument (no-self-argument)
|
||
def __find_first_error_of_type(errors, type): | ||
|
||
return next((error for error in errors if error.get("type").lower() == type.lower()), None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
E1133: Non-iterable value errors is used in an iterating context (not-an-iterable)
Signed-off-by: Andrew Brain <[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: Andrew Brain <[email protected]>
Signed-off-by: Andrew Brain <[email protected]>
Description
This PR fixes issues in the Augur TSC task dashboard