Skip to content

Albs deploy fix 2 jh#9

Open
javihernandez wants to merge 30 commits intomasterfrom
albs-deploy-fix-2-jh
Open

Albs deploy fix 2 jh#9
javihernandez wants to merge 30 commits intomasterfrom
albs-deploy-fix-2-jh

Conversation

@javihernandez
Copy link
Owner

No description provided.

maccelf and others added 29 commits December 15, 2023 12:33
packages_exporter.py now queries sign-file service for repomd.xml signing
 - renamed attrs in config.py to make it same as in env.vars
 - fix using wrong attibute for sending file in aiohttp request (data instead of files)
It`ll be safer to remove it after we swith to new logic
* upstream/master: (62 commits)
  Revert "New modularity support after migration to new pulp"
  Fix 401 when click to the Advisory info
  Black syntax
  Ensure that OVAL data contains released records only
  Black syntax
  Rebased to latest migration in master
  Black/isort syntax
  Fix tests after new modularity workflow
  Update migration checks workflow to try merging if rebasing fails
  Update migration check workflow
  Adjust alembic migration after updating branch with current master
  Rebased to latest migration in master
  Fixed black warnings #2
  Fixed black warnings
  Fixed tests #2
  Fixed tests
  Fixed relationships problems
  Add ability to create same errata record for several platforms
  Update dependencies to mitigate security risks
  Black syntax
  ...
It needs to be refactored.
@github-actions
Copy link

pylint output
************* Module tests.test_scripts.test_packages_exporter
tests/test_scripts/test_packages_exporter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
tests/test_scripts/test_packages_exporter.py:15:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_scripts/test_packages_exporter.py:23:19: E1120: No value for argument 'token' in method call (no-value-for-parameter)
************* Module alws.config
alws/config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
alws/config.py:7:0: C0115: Missing class docstring (missing-class-docstring)
alws/config.py:76:4: C0116: Missing function or method docstring (missing-function-docstring)
alws/config.py:80:4: C0116: Missing function or method docstring (missing-function-docstring)
alws/config.py:87:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module scripts.packages_exporter
scripts/packages_exporter.py:425:0: C0301: Line too long (88/80) (line-too-long)
scripts/packages_exporter.py:1:0: C0302: Too many lines in module (1072/1000) (too-many-lines)
scripts/packages_exporter.py:392:5: W0511: TODO: Use direct function call to alws.crud.errata_get_oval_xml (fixme)
scripts/packages_exporter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
scripts/packages_exporter.py:21:0: E0401: Unable to import 'rpm' (import-error)
scripts/packages_exporter.py:35:0: C0413: Import "from alws import database, models" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:36:0: C0413: Import "from alws.config import settings" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:37:0: C0413: Import "from alws.constants import SignStatusEnum" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:38:0: C0413: Import "from alws.utils.errata import extract_errata_metadata, extract_errata_metadata_modern, find_metadata, generate_errata_page, iter_updateinfo, merge_errata_records, merge_errata_records_modern" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:47:0: C0413: Import "from alws.utils.exporter import download_file, get_repodata_file_links" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:48:0: C0413: Import "from alws.utils.osv import export_errata_to_osv" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:49:0: C0413: Import "from alws.utils.pulp_client import PulpClient" should be placed at the top of the module (wrong-import-position)
scripts/packages_exporter.py:59:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:148:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:163:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:177:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:187:0: C0115: Missing class docstring (missing-class-docstring)
scripts/packages_exporter.py:187:0: R0902: Too many instance attributes (14/7) (too-many-instance-attributes)
scripts/packages_exporter.py:188:4: R0913: Too many arguments (8/5) (too-many-arguments)
scripts/packages_exporter.py:238:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:242:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:245:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:269:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:269:4: R0913: Too many arguments (8/5) (too-many-arguments)
scripts/packages_exporter.py:305:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:369:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:384:15: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:388:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:393:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:406:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:426:12: C0103: Variable name "pubDate" doesn't conform to snake_case naming style (invalid-name)
scripts/packages_exporter.py:439:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:458:15: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:492:15: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:497:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:505:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:527:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:531:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:531:4: R0914: Too many local variables (19/15) (too-many-locals)
scripts/packages_exporter.py:535:22: W0212: Access to a protected member _RPMVSF_NOSIGNATURES of a client class (protected-access)
scripts/packages_exporter.py:608:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:531:4: R0915: Too many statements (54/50) (too-many-statements)
scripts/packages_exporter.py:613:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:613:4: R0914: Too many local variables (17/15) (too-many-locals)
scripts/packages_exporter.py:679:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:699:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:773:4: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:786:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:786:0: R0914: Too many local variables (16/15) (too-many-locals)
scripts/packages_exporter.py:826:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:849:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:856:11: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:863:0: C0116: Missing function or method docstring (missing-function-docstring)
scripts/packages_exporter.py:863:0: R0914: Too many local variables (31/15) (too-many-locals)
scripts/packages_exporter.py:931:11: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:1060:15: W0718: Catching too general exception Exception (broad-exception-caught)
scripts/packages_exporter.py:1025:21: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:1029:21: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:1044:21: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:1048:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
scripts/packages_exporter.py:1055:21: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
scripts/packages_exporter.py:1059:16: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
scripts/packages_exporter.py:863:0: R0912: Too many branches (20/12) (too-many-branches)
scripts/packages_exporter.py:863:0: R0915: Too many statements (91/50) (too-many-statements)

-----------------------------------
Your code has been rated at 8.66/10

@github-actions
Copy link

Total coverage

Coverage report for changed files •
FileStmtsMissCoverMissing
config.py570100% 
TOTAL9696422956% 

Tests Skipped Failures Errors Time
82 3 💤 0 ❌ 0 🔥 41.454s ⏱️

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.

4 participants