Conversation
Fix for GitHub Issue #3194 where releases collection was failing with psycopg2.errors.UniqueViolation on releases_pkey constraint. Root cause: GitHub API returns release IDs with trailing spaces that don't match existing trimmed database records. Changes: - Add str().strip() to release_id processing in get_release_inf() - Enhance duplicate detection in insert_release() with proper trimming - Add early duplicate detection to prevent unnecessary database operations Signed-off-by: mohsinm-dev <mohsin.mdev@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
The code which parses the repos files interprets the first column as URL and the second one as repo group ID, but all the examples were doing the opposite. Signed-off-by: Mosè Giordano <m.giordano@ucl.ac.uk>
…/keys must be set
The non-interactive Docker compose workflow requires all the variables
`AUGUR_GIT{LA,HU}B_{USERNAME,API_KEY}` to be set even if they are going to be
unused, otherwise you get stuck waiting for [the prompt](https://github.com/chaoss/augur/blob/b0bb3b80402ee5fcd84bec7334e58a41f9f5ec8a/scripts/install/config.sh#L18-L29)
```
You entered a blank line, are you sure?
```
Signed-off-by: Mosè Giordano <m.giordano@ucl.ac.uk>
docker compose: Make it crystal clear that all the GitHub/GitLab user/keys must be set
Set default to 0. Signed-off-by: Sean P. Goggins <outdoors@acm.org>
add date filter to contributer resolution logic queries
Signed-off-by: Sean P. Goggins <s@goggins.com>
Signed-off-by: Sean P. Goggins <s@goggins.com>
Year not recognized without month and date. Signed-off-by: Sean P. Goggins <outdoors@acm.org>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Fix examples of repos CSV files
`git reset --hard <remote>` isn't a correct command, the argument of `git reset` must be a tree-ish, which a remote name alone isn't. In some cases this command fails with ``` fatal: ambiguous argument 'origin': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' ``` Signed-off-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Fix `git reset` command to include remote default branch
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…ead-only components of the config Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Generated-by: Gpt-5 via cursor Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…r each thing This is a tuple so it can potentially scale up without impacting the method signature Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…add_value Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
replace worker vmem config item with individual process counts
| logger.info(f"The API is available at '{api_response.json()['route']}'") | ||
|
|
||
| processes = start_celery_worker_processes(float(worker_vmem_cap), disable_collection) | ||
| processes = start_celery_worker_processes((core_worker_count, secondary_worker_count, facade_worker_count), disable_collection) |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'processes' from outer scope (line 479) (redefined-outer-name)
Refactor config manager to use a hierarchical pattern. Discussed extensively in maintainer meetings the past two weeks, and docker build issues are now resolved.
| return Mock() | ||
|
|
||
|
|
||
| def test_jsonconfig_readonly_flags(mock_logger): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_logger' from outer scope (line 9) (redefined-outer-name)
| assert cfg.empty is False | ||
|
|
||
|
|
||
| def test_jsonconfig_empty_true_false(mock_logger): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_logger' from outer scope (line 9) (redefined-outer-name)
| assert JsonConfig({"A": {}}, mock_logger).empty is False | ||
|
|
||
|
|
||
| def test_jsonconfig_retrieve_has_get(mock_logger): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_logger' from outer scope (line 9) (redefined-outer-name)
| ("add_value", ("X", "y", 2), {"ignore_existing": False}), | ||
| ], | ||
| ) | ||
| def test_jsonconfig_mutations_raise_not_writable(mock_logger, callable_name, args, kwargs): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_logger' from outer scope (line 9) (redefined-outer-name)
|
|
||
|
|
||
|
|
||
| def test_fetching_real_defaults(mock_logger, mock_session): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_logger' from outer scope (line 9) (redefined-outer-name)
|
|
||
|
|
||
|
|
||
| def test_fetching_real_defaults(mock_logger, mock_session): |
There was a problem hiding this comment.
[pylint] reported by reviewdog 🐶
W0621: Redefining name 'mock_session' from outer scope (line 13) (redefined-outer-name)
MoralCode
left a comment
There was a problem hiding this comment.
seems to work on my machine
Description
This PR fixes everything noted in the related PRS.
Notes for Reviewers
This version has been tested for 3 weeks at scale, and aside from a now known issue related to the GitHub events API, is stable.
Signed commits