Skip to content
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

GitHub actions, component updates (aiohttp, requests) #24

Merged
merged 17 commits into from
Oct 23, 2023
Merged

Conversation

JanneKiiskila
Copy link
Contributor

@JanneKiiskila JanneKiiskila commented Oct 20, 2023

Pull request template

  • Some GitHub actions (static tests, installation tests).
  • Spelling error fixes.
  • Update two dependencies to fix CVEs.
    • aiohttp 3.8.1 -> 3.8.6
    • requests 2.28.1 -> 2.31.0

Check list

Testing

  • tests run against live device.

Changelog

  • CHANGELOG.md updated.

Tagging

  • Remember to tag a new release, if need be.

Get some PR-checks in here as well.
Various flake8 fixes.,

flake8 --exit-zero --exclude=izuma_systest_lib/.eggs,scripts-internal --max-line-length=130
./izuma_systest_lib/edge/remote_terminal.py:38:22: E711 comparison to None should be 'if cond is None:'
./tests/test_edge_online.py:35:1: F401 'os' imported but unused
./tests/test_edge_online.py:38:1: F401 'izuma_systest_lib.edge.kaas.Kaas' imported but unused
./tests/test_edge_online.py:39:1: F401 'izuma_systest_lib.edge.kubectl.Kubectl' imported but unused
./tests/test_edge_online.py:40:1: F401 'izuma_systest_lib.tools.execute_with_retry' imported but unused
./tests/test_edge_online.py:59:5: F841 local variable 'EPOCH_BASE_DELTA' is assigned to but never used
./tests/test_edge_online.py:84:1: E302 expected 2 blank lines, found 1
./tests/test_edge_online.py:116:1: E302 expected 2 blank lines, found 1
./tests/test_edge_online.py:144:1: W391 blank line at end of file
./tests/test_websocket_notifications.py:61:1: E302 expected 2 blank lines, found 1
misspell -i mosquitto .
izuma_systest_lib/cloud/libraries/config_management.py:27:38: "managment" is a misspelling of "management"
izuma_systest_lib/fixtures/edge_fixtures.py:83:45: "konfiguration" is a misspelling of "configuration"
izuma_systest_lib/fixtures/edge_fixtures.py:109:45: "konfiguration" is a misspelling of "configuration"
izuma_systest_lib/tools.py:103:13: "Comparision" is a misspelling of "Comparison"
@JanneKiiskila JanneKiiskila changed the title Pr checks GitHub actions, component updates (aiohttp, requests) Oct 20, 2023
@JanneKiiskila JanneKiiskila requested a review from jenia81 October 21, 2023 16:33
We have a clean flake8 status now, so let's not check if more
was injected - just fail if any are found.
To shut down a few pylint nags. Pylint needs to be the last imported item.
Runs also pytest --collect-only as a test case.
Pylint seems to hate functions names with any capital letters,
making them lower case.
Python 3.6 is not supported anymore, pytest does not agree to get
installed with the version we're using now.
Seems aiohttp has issues with being able to build with newer
Python versions.

aio-libs/aiohttp#6600
Pytest as the last one to be imported, so pylint is happier.
It's not running the job, though the file has changed...
There are still some issues with that it seems.

aio-libs/aiohttp#6600
Both of these have a vulnerability open, so hike up the version
to patch those up.
The master does not have pylintrc, which breaks the test.
we can add it later, if need be (the file must be there, otherwise
you will have 0 findings from master as it execution fails).

pylint --exit-zero --persistent=n tests/ izuma_systest_lib/ >pylint.log
vs.
pylint --exit-zero --persistent=n --rcfile pylintrc tests/ izuma_systest_lib/ >pylint.log
About the misspell fixes.
Add details on the changes done.
Based on review feedback from Jenia.
Address needs to be owner/repo only.
This fixes the Python 3.11 issue, it depends on a newer version of
cython, which fixes the 'C includes of "longintrepr.h"' issue

Python 3.12 is still broken, however.

Collecting pyyaml==6.0 (from -r requirements.txt (line 9))
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 30.0 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      running egg_info
      writing lib/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@JanneKiiskila JanneKiiskila merged commit a8cf1e6 into main Oct 23, 2023
13 checks passed
@JanneKiiskila JanneKiiskila deleted the pr-checks branch October 23, 2023 12:56
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.

2 participants