Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
e3de0d2
Merge pull request #2987 from chaoss/remove-update-weight-hotfix
sgoggins Feb 12, 2025
455b02a
Merge pull request #2988 from chaoss/dev
sgoggins Feb 12, 2025
c6b2cb5
Update gsoc-ideas.md
sgoggins Feb 12, 2025
f98b5db
Update gsoc-ideas.md
sgoggins Feb 12, 2025
8b1a939
Update gsoc-ideas.md
sgoggins Feb 12, 2025
f847358
Update gsoc-ideas.md
sgoggins Feb 12, 2025
1ffc551
Update gsoc-interest.md
sgoggins Feb 12, 2025
ffec284
Update README.md
sgoggins Feb 12, 2025
a653027
Update README.md
sgoggins Feb 12, 2025
9500e73
Update gsoc-ideas.md
sgoggins Feb 13, 2025
32d9a8c
Fix key orchestrator missing in Docker build
Ulincsys Feb 13, 2025
1393440
Add __init__.py to fix module import error
Ulincsys Feb 14, 2025
c6c86ed
Merge pull request #2996 from chaoss/keyman-docker-hotfix
sgoggins Feb 14, 2025
def43f1
Update metadata.py
sgoggins Feb 14, 2025
c6646ce
Update README.md
sgoggins Feb 14, 2025
03196c5
Update README.md
sgoggins Feb 14, 2025
46bf034
Show tracebacks for network exceptions
Ulincsys Feb 17, 2025
1d9583d
Fix incorrect usage of format_exc
Ulincsys Feb 17, 2025
53c3c14
Have decorator pass secondary exceptions transparently
Ulincsys Feb 17, 2025
6954f9c
Logical fixes and general improvements
Ulincsys Feb 17, 2025
641f72f
Strip whitespace from keys while loading
Ulincsys Feb 17, 2025
d8f784a
Merge pull request #2999 from chaoss/improve_nettest_logging_hotfix
sgoggins Feb 17, 2025
7d58dae
Merge pull request #3000 from chaoss/fix_protocol_exception_hotfix
sgoggins Feb 17, 2025
e6940c6
Filter worker_oauth keys by platform in cli
Ulincsys Feb 18, 2025
e308fac
Merge pull request #3005 from chaoss/cli_api_key_hotfix
sgoggins Feb 18, 2025
9a4b866
Fix comparison with NoneType logical error
Ulincsys Feb 21, 2025
1e417ca
Secondary task to use get_secondary_data_last_collected
Ulincsys Feb 22, 2025
a1a9775
Merge pull request #3009 from chaoss/last_collected_null_hotfix
sgoggins Feb 22, 2025
47a8c66
Update README.md
sgoggins Feb 22, 2025
474c65c
Update metadata.py
sgoggins Feb 22, 2025
ec6b295
move golang build step to its own build container
MoralCode Feb 22, 2025
3a075e0
refactor rust stuff into a builder container too
MoralCode Feb 22, 2025
c292154
comment out rust builder as it seems unused
MoralCode Feb 22, 2025
04f6e32
fix copying of binaries into the main container
MoralCode Feb 22, 2025
022ac35
specify versions of scc and scorecard
MoralCode Feb 22, 2025
ec0e139
copy scripts into golang builder so it can find them
MoralCode Feb 23, 2025
21fae40
reduce dependency on create_collection_status_record tasks
ABrain7710 Feb 26, 2025
9ca06bd
cleanup everything
ABrain7710 Feb 26, 2025
da84da9
Merge pull request #3014 from chaoss/hotfix-main
sgoggins Feb 26, 2025
4e8db78
Release Bump
sgoggins Feb 26, 2025
6f5ef29
Release Versions
sgoggins Feb 26, 2025
8da68d5
Merge pull request #3015 from chaoss/augur-v0.85.0-release
sgoggins Feb 26, 2025
f5ff0f3
only include since date in query if it exists
ABrain7710 Mar 1, 2025
d536660
Merge pull request #3029 from chaoss/hotfix-collect-events
sgoggins Mar 1, 2025
9da26ca
version bumpt'y dump
sgoggins Mar 1, 2025
b282eec
Merge pull request #3031 from chaoss/release-v0.85.1
sgoggins Mar 1, 2025
6debf5f
Update gsoc-ideas.md
sgoggins Mar 4, 2025
e68adcc
Update gsoc-ideas.md
sgoggins Mar 4, 2025
b2707b9
Update gsoc-ideas.md
sgoggins Mar 4, 2025
6c039e3
Update gsoc-ideas.md
sgoggins Mar 4, 2025
9e93804
test
sgoggins Mar 6, 2025
cbd0fd6
Merge pull request #3012 from MoralCode/backend-docker-builder
sgoggins Mar 7, 2025
247b3bf
fix pr events uniqueness
ABrain7710 Mar 8, 2025
4ed1a26
update revision number
ABrain7710 Mar 8, 2025
cff1bdc
incrementally update database
ABrain7710 Mar 12, 2025
025192b
add index log
ABrain7710 Mar 12, 2025
e00d172
only print if there are rows that need updated
ABrain7710 Mar 12, 2025
53748c4
Update README.md
sgoggins Mar 12, 2025
e67cf0c
Update metadata.py
sgoggins Mar 12, 2025
65e08c9
Merge pull request #3046 from chaoss/events-fix
sgoggins Mar 12, 2025
94ebe3e
Corrected GitLab Public Access Token URL
someshjoyguru Mar 16, 2025
1b4b6cd
remove podman compose
MoralCode Mar 16, 2025
2b5981c
Delete Vagrantfile
MoralCode Mar 16, 2025
3ae2c20
Update gsoc-ideas.md
sgoggins Mar 17, 2025
7deb0f1
Update gsoc-ideas.md
sgoggins Mar 17, 2025
d8d40a2
add flower section to the docker compose
MoralCode Mar 18, 2025
a96b838
Update CONTRIBUTING.md
sgoggins Mar 18, 2025
b475105
fixing install-dev command by removal
sgoggins Mar 18, 2025
3a26e54
Merge pull request #3066 from MoralCode/flower-compose
sgoggins Mar 18, 2025
4dbc908
Merge pull request #3060 from MoralCode/dedupe-compose
sgoggins Mar 18, 2025
661f03e
Merge pull request #3061 from MoralCode/remove-vagrant
sgoggins Mar 18, 2025
64cc5e1
log stderr in called process for facade commit count
IsaacMilarky Mar 18, 2025
f4dad21
stop using keys once they have 100 requests remaining
ABrain7710 Mar 19, 2025
192f87d
set to 50
ABrain7710 Mar 19, 2025
73a4c6a
adjust path that scc gets copied to
MoralCode Mar 14, 2025
9792586
Merge pull request #3070 from chaoss/log-facade-git-128
sgoggins Mar 19, 2025
99c73c1
Merge pull request #3071 from chaoss/leave-room-on-keys
sgoggins Mar 19, 2025
230925e
Merge pull request #3068 from chaoss/docs-patch-spg-1
sgoggins Mar 19, 2025
84ac28d
Merge pull request #3067 from chaoss/sgoggins-patch-2-contributing.doc
sgoggins Mar 19, 2025
a234b9f
Merge pull request #3055 from MoralCode/patch-3053
sgoggins Mar 19, 2025
a414ab1
version update
sgoggins Mar 19, 2025
0b829bb
Merge pull request #3074 from chaoss/version0.85.3
sgoggins Mar 19, 2025
a71fde9
fix syntax error
Mar 21, 2025
2000270
Merge pull request #3083 from marcelb98/main
sgoggins Mar 21, 2025
5e1fa51
docker simplification and version upgrade
cdolfi Mar 26, 2025
ec1f374
Rework CI container builds
JohnStrunk Mar 31, 2025
f0b8def
update version and compose
cdolfi Mar 31, 2025
8dcc0bf
Merge pull request #3094 from cdolfi/docker_mac_fix
cdolfi Mar 31, 2025
648ce67
Merge pull request #3093 from JohnStrunk/action-docker-build
sgoggins Apr 1, 2025
31ea276
Merge pull request #3095 from chaoss/docker_mac_fix
sgoggins Apr 1, 2025
3f9123c
version bump
sgoggins Apr 1, 2025
c3b6e56
Merge pull request #3098 from chaoss/v0.86.0-release
sgoggins Apr 1, 2025
e6d93ff
Merge pull request #3059 from someshjoyguru/main
sgoggins Apr 1, 2025
3b542a4
Fix failing CI when not tagging a docker image
JohnStrunk Apr 1, 2025
2da45ae
Merge pull request #3100 from JohnStrunk/fix-ci-docker
sgoggins Apr 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 51 additions & 28 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,68 @@ on:
release:
types:
- published
workflow_dispatch:

permissions: {}

jobs:
build:
name: Build image
permissions:
contents: read # to fetch code (actions/checkout)
packages: write # to push docker image

name: Build image
strategy:
matrix:
image:
- backend
- database
- rabbitmq
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Run the build
run: |
set -ex
# use that here since the variable are not present before start, so can't be in env
export LOGIN=$GITHUB_REPOSITORY_OWNER
- name: Checkout repository
uses: actions/checkout@v4

echo $PASSWORD | docker login $REGISTRY -u $LOGIN --password-stdin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: setup-buildx

for i in docker/* ; do
CONTAINER=$(basename $i)
echo "Building $CONTAINER"
export IMAGE=$LOGIN/augur_$CONTAINER
DOCKERFILE=${i}/Dockerfile
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

docker build . -f $DOCKERFILE --tag $REGISTRY/$IMAGE:latest
if [[ $GITHUB_EVENT_NAME == 'release' ]]; then
TAG=$(basename $GITHUB_REF)
docker tag $REGISTRY/$IMAGE:latest $REGISTRY/$IMAGE:$TAG
docker push $REGISTRY/$IMAGE:latest
docker push $REGISTRY/$IMAGE:$TAG
elif [[ $GITHUB_EVENT_NAME == 'push' ]]; then
docker tag $REGISTRY/$IMAGE:latest $REGISTRY/$IMAGE:devel-latest
docker push $REGISTRY/$IMAGE:devel-latest
fi
done
- name: Set container metadata
uses: docker/metadata-action@v5
id: meta
env:
REGISTRY: ghcr.io
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DOCKER_METADATA_ANNOTATIONS_LEVELS: index,manifest
with:
annotations: |
org.opencontainers.image.title=augur_${{ matrix.image}}
labels: |
org.opencontainers.image.title=augur_${{ matrix.image}}
images: ghcr.io/${{ github.repository_owner }}/augur_${{ matrix.image }}
# Pushes to the dev branch update the *:devel-latest tag
# Releases update the *:latest tag and the *:<version> tag
tags: |
type=raw,value=devel-latest,enable=${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/dev' }}
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}

- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
annotations: ${{ steps.meta.outputs.annotations }}
context: .
file: ./docker/${{ matrix.image }}/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
# Only push if we've tagged the image in the metadata step
push: ${{ github.event_name != 'pull_request' && steps.meta.outputs.tags != '' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha,scope=container-${{ matrix.image }}
cache-to: type=gha,scope=container-${{ matrix.image }},mode=max
20 changes: 0 additions & 20 deletions .github/workflows/docker-image.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ git push origin master
### Augur
- [Stable documentation (`main` branch)](https://oss-augur.readthedocs.io/en/main/)
- [Nightly/developer build documentation (`dev` branch)](https://oss-augur.readthedocs.io/en/dev/) (warning: this is should be considered an unstable branch and should not be used for production)
- [Live Augur demo](http://zephyr.osshealth.io/)
- [Live Augur demo](https://ai.chaoss.io)

### CHAOSS
- [Website](https://chaoss.community/)
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Augur NEW Release v0.81.0
# Augur NEW Release v0.86.0

Augur is primarily a data engineering tool that makes it possible for data scientists to gather open source software community data - less data carpentry for everyone else!
The primary way of looking at Augur data is through [8Knot](https://github.com/oss-aspen/8knot), a public instance of 8Knot is available [here](https://metrix.chaoss.io) - this is tied to a public instance of [Augur](https://ai.chaoss.io).
Expand All @@ -11,8 +11,7 @@ We follow the [First Timers Only](https://www.firsttimersonly.com/) philosophy o
## NEW RELEASE ALERT!
**If you want to jump right in, the updated docker, docker-compose and bare metal installation instructions are available [here](docs/new-install.md)**.

<<<<<<< HEAD
Augur is now releasing a dramatically improved new version to the ```main``` branch. It is also available [here](https://github.com/chaoss/augur/releases/tag/v0.81.0).
Augur is now releasing a dramatically improved new version to the ```main``` branch. It is also available [here](https://github.com/chaoss/augur/releases/tag/v0.86.0).


- The `main` branch is a stable version of our new architecture, which features:
Expand Down Expand Up @@ -44,9 +43,9 @@ For more information on [how to get involved on the CHAOSS website](https://chao

## Collecting Data

Augur supports ```Python3.6``` through ```Python3.9``` on all platforms. ```Python3.10``` and above do not yet work because of machine learning worker dependencies. On OSX, you can create a ```Python3.9``` environment, by running:
Augur supports ```Python3.7``` through ```Python3.11``` on all platforms. ```Python3.12``` and above do not yet work because of machine learning worker dependencies. On OSX, you can create a ```Python3.11``` environment, by running:
```
$ python3.9 -m venv path/to/venv
$ python3.11 -m venv path/to/venv
```

Augur's main focus is to measure the overall health and sustainability of open source projects.
Expand Down Expand Up @@ -84,7 +83,7 @@ We strongly believe that much of what makes open source so great is the incredib

## License, Copyright, and Funding

Copyright © 2023 University of Nebraska at Omaha, University of Missouri, Brian Warner, and the CHAOSS Project.
Copyright © 2025 University of Nebraska at Omaha, University of Missouri, Brian Warner, and the CHAOSS Project.

Augur is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Open Source Initiative. See the [LICENSE](LICENSE) file for more details.

Expand Down
108 changes: 0 additions & 108 deletions Vagrantfile

This file was deleted.

28 changes: 19 additions & 9 deletions augur/application/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import re
import json
import httpx
import traceback

from augur.application.db.engine import DatabaseEngine
from augur.application.db import get_engine, dispose_database_engine
Expand All @@ -16,23 +17,32 @@ def test_connection(function_internet_connection):
@click.pass_context
def new_func(ctx, *args, **kwargs):
usage = re.search(r"Usage:\s(.*)\s\[OPTIONS\]", str(ctx.get_usage())).groups()[0]
success = False
with httpx.Client() as client:
try:
_ = client.request(
method="GET", url="http://chaoss.community", timeout=10, follow_redirects=True)

return ctx.invoke(function_internet_connection, *args, **kwargs)
success = True
except (TimeoutError, httpx.TimeoutException):
print("Request timed out.")
except httpx.NetworkError:
except httpx.NetworkError as e:
print(f"Network Error: {httpx.NetworkError}")
except httpx.ProtocolError:
print(traceback.format_exc())
except httpx.ProtocolError as e:
print(f"Protocol Error: {httpx.ProtocolError}")
print(f"\n\n{usage} command setup failed\n \
You are not connected to the internet.\n \
Please connect to the internet to run Augur\n \
Consider setting http_proxy variables for limited access installations.")
sys.exit(-1)
print(traceback.format_exc())

if not success:
print(
f"""
\n\n{usage} command setup failed.
There was an error while testing for network connectivity
Please check your connection to the internet to run Augur
Consider setting http_proxy variables for limited access installations."""
)
sys.exit(-1)

return ctx.invoke(function_internet_connection, *args, **kwargs)

return update_wrapper(new_func, function_internet_connection)

Expand Down
11 changes: 7 additions & 4 deletions augur/application/cli/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import sqlalchemy as s

from keyman.KeyClient import KeyClient, KeyPublisher

Check warning on line 33 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0611: Unused KeyClient imported from keyman.KeyClient (unused-import) Raw Output: augur/application/cli/backend.py:33:0: W0611: Unused KeyClient imported from keyman.KeyClient (unused-import)
logger = AugurLogger("augur", reset_logfiles=True).get_logger()


Expand Down Expand Up @@ -86,6 +86,9 @@

worker_vmem_cap = get_value("Celery", 'worker_process_vmem_cap')

# create rabbit messages so if it failed on shutdown the queues are clean
cleanup_collection_status_and_rabbit(logger, ctx.obj.engine)

gunicorn_command = f"gunicorn -c {gunicorn_location} -b {host}:{port} augur.api.server:app --log-file gunicorn.log"
server = subprocess.Popen(gunicorn_command.split(" "))

Expand All @@ -110,7 +113,7 @@
logger.info(f"The API is available at '{api_response.json()['route']}'")

processes = start_celery_worker_processes(float(worker_vmem_cap), disable_collection)

Check warning on line 116 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:116:4: W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name)
if os.path.exists("celerybeat-schedule.db"):
logger.info("Deleting old task schedule")
os.remove("celerybeat-schedule.db")
Expand Down Expand Up @@ -180,7 +183,7 @@

try:
keypub.shutdown()
cleanup_after_collection_halt(logger, ctx.obj.engine)
cleanup_collection_status_and_rabbit(logger, ctx.obj.engine)
except RedisConnectionError:
pass

Expand Down Expand Up @@ -255,7 +258,7 @@
logger = logging.getLogger("augur.cli")

augur_stop(signal.SIGTERM, logger, ctx.obj.engine)

Check warning on line 261 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:261:4: W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name)
@cli.command('stop-collection-blocking')
@test_connection
@test_db_connection
Expand All @@ -268,7 +271,7 @@
processes = get_augur_processes()

stopped = []

Check warning on line 274 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:274:4: W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name)
p: psutil.Process
for p in processes:
if p.name() == "celery":
Expand All @@ -278,7 +281,7 @@
if not len(stopped):
logger.info("No collection processes found")
return

Check warning on line 284 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len) Raw Output: augur/application/cli/backend.py:284:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
_, alive = psutil.wait_procs(stopped, 5,
lambda p: logger.info(f"STOPPED: {p.pid}"))

Expand All @@ -287,7 +290,7 @@
for i in range(len(alive)):
if alive[i].status() == psutil.STATUS_ZOMBIE:
logger.info(f"KILLING ZOMBIE: {alive[i].pid}")
alive[i].kill()

Check warning on line 293 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate) Raw Output: augur/application/cli/backend.py:293:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
killed.append(i)
elif not alive[i].is_running():
logger.info(f"STOPPED: {p.pid}")
Expand All @@ -302,7 +305,7 @@
logger.info(f"Waiting on [{', '.join(str(p.pid for p in alive))}]")
Comment thread
sgoggins marked this conversation as resolved.
time.sleep(0.5)

cleanup_after_collection_halt(logger, ctx.obj.engine)
cleanup_collection_status_and_rabbit(logger, ctx.obj.engine)

@cli.command('kill')
@test_connection
Expand All @@ -316,11 +319,11 @@
logger = logging.getLogger("augur.cli")
augur_stop(signal.SIGKILL, logger, ctx.obj.engine)


Check warning on line 322 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:322:4: W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name)
def augur_stop(signal, logger, engine):
"""
Stops augur with the given signal,
and cleans up collection if it was running

Check warning on line 326 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:326:23: W0621: Redefining name 'logger' from outer scope (line 35) (redefined-outer-name)

Check warning on line 326 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'signal' from outer scope (line 12) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:326:15: W0621: Redefining name 'signal' from outer scope (line 12) (redefined-outer-name)
"""

augur_processes = get_augur_processes()
Expand All @@ -330,10 +333,10 @@
_broadcast_signal_to_processes(augur_processes, broadcast_signal=signal, given_logger=logger)

if "celery" in process_names:
cleanup_after_collection_halt(logger, engine)
cleanup_collection_status_and_rabbit(logger, engine)


def cleanup_after_collection_halt(logger, engine):
def cleanup_collection_status_and_rabbit(logger, engine):
Copy link
Copy Markdown

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 'logger' from outer scope (line 34) (redefined-outer-name)

clear_redis_caches()

connection_string = get_value("RabbitMQ", "connection_string")
Comment thread
sgoggins marked this conversation as resolved.
Expand Down Expand Up @@ -485,7 +488,7 @@
def _broadcast_signal_to_processes(processes, broadcast_signal=signal.SIGTERM, given_logger=None):
if given_logger is None:
_logger = logger
else:

Check warning on line 491 in augur/application/cli/backend.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name) Raw Output: augur/application/cli/backend.py:491:35: W0621: Redefining name 'processes' from outer scope (line 472) (redefined-outer-name)
_logger = given_logger
for process in processes:
if process.pid != os.getpid():
Expand Down
2 changes: 1 addition & 1 deletion augur/application/cli/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update_api_key():
"""
SELECT value as github_key from config Where section_name='Keys' AND setting_name='github_api_key'
UNION All
SELECT access_token as github_key from worker_oauth ORDER BY github_key DESC;
SELECT access_token as github_key from worker_oauth where platform='github' ORDER BY github_key DESC;
"""
)

Expand Down
2 changes: 1 addition & 1 deletion augur/application/db/data_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def extract_pr_event_data(event: dict, pr_id: int, gh_src_id: int, platform_id:
'action': event['event'],
'action_commit_hash': None,
'created_at': event['created_at'],
'issue_event_src_id': gh_src_id,
'issue_event_src_id': event["id"],
'node_id': event['node_id'],
'node_url': event['url'],
'tool_source': tool_source,
Expand Down
Loading
Loading