1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

9 Commits

Author SHA1 Message Date
sayalibhavsar
6470831587 logging: hide entries when debuglog is set to false and add missing worker names (PROJQUAY-6562) (#3193)
* fixing discrepancy in debug logs after changes to util.migrate.allocator

* Revert "fixing discrepancy in debug logs after changes to util.migrate.allocator"

This reverts commit b7adb7ba71.

* fixing discrepancy in logs suggested by Ivan in #3160 after verbosity of logs are altered

* fixing discrepancy in logs suggested by Ivan in #3160 after verbosity of logs are altered
2024-09-09 19:31:40 +05:30
sayalibhavsar
5d91a7dae3 logging: hide entries when debuglog is set to false and add missing worker names (PROJQUAY-6562) (#3160)
* deps: bump PyMySQL version (PROJQUAY-7251) (#3113)

bug: bump PyMySQL version (PROJQUAY-7251)
This should resolve CVE-2024-36039.

* hide logs if debuglog is false

* test for new allocator.py code changes

* test for new allocator.py code changes

---------

Co-authored-by: Ivan Bazulic <ibazulic@redhat.com>
2024-08-26 20:16:07 +05:30
sayalibhavsar
f6c781dc30 logging: reduce noise in quay logs and add missing worker names (PROJQUAY-6562) (#2697)
Changing logger.info to logger.debug to stop too many INFO log lines from displaying in Quay logs + Adding the missing worker name that print those

The idea of the log is to tell you which block is being procesed by worker that is processing it. These logs are missing the worker names
```
2023-11-27 15:24:05,825 [80] [INFO] [util.migrate.allocator] No candidates, marking entire block completed 210690-213109
2023-11-27 15:24:05,832 [80] [INFO] [util.migrate.allocator] No candidates, marking entire block completed 131657-134076
[sbhavsar-mac:~ sayalibhavsar]$ grep "No candidates, marking entire block completed" quay | wc -l
5300
```
For huge registries above logs  could be a bit noisy. We could hide it as a debug message rather than as an info message.
2024-07-10 23:52:38 +05:30
Harish Govindarajulu
074f35ee99 chore: Update alembic migration script to support sqlite db (PROJQUAY-7097) (#2839)
* Add sqlite db support on quay start up

* Add batchmode to migration scripts to support sqlite db

* Add sqlite db to config-tool validator +  alembic migration

* Fix migration script to prevent db row locking

Added commit statement to ensure previous transaction is
completed before the next one within the same table

* Clean up unused sqlite volume

* Apply black formatting to migration scripts

* Address review comments

* Ensure py39-unit test runs the alembic migration on Sqlite

* Add static type checking for alembic config file name

* alembic remove commit and invalidate during migration

When disconnecting from db, alembic tries to rollback
causing PendingRollbackError

* Bump go version in config-tool Dockerfile

* Explicitly commit transaction to prevent db table locking

* Clean up + remove debug statements

* Undo database secret key change

* Add TEST_DATABASE_URI to py39-unit to run unit test with sqlite db

* Drop index before dropping column to prevent sqlite error

* Add test coverage + address last set of reviews

---------

Signed-off-by: harishsurf <hgovinda@redhat.com>
2024-06-12 13:57:32 -04:00
Kenny Lee Sin Cheong
5f63b3a7bb chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code

* isort imports

* migration: check for table existence before drop
2023-08-25 12:17:24 -04:00
Syed Mushtaq Ahmed
2b2e795b9c secscan: Log start and end index of block in clair (PROJQUAY-3287) (#1165)
This is useful for debugging which block is being processed
2022-03-03 12:52:12 -05:00
alecmerdler
3dd5f045ff fix all the docstrings 2020-02-05 19:55:07 -08:00
Tom McKay
e6ae94db8b 'make black' results 2019-12-02 12:23:08 -05:00
Jimmy Zelinskie
9c0dd3b722 initial import for Open Source 🎉 2019-11-12 11:09:47 -05:00