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

Various CI fixes for 2023-11 #29

Merged
merged 3 commits into from Nov 14, 2023

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Nov 13, 2023

This PR fixes several CI issues which have arisen on this project lately:

  • missing "apt-get update" during package installation
  • incorrect failure from mypy
  • using too old versions of pre-commit hooks

See each of the included commits for more info.

We should be using "apt-get update" to update package lists before
installing any new packages. This has never mattered before, but
recently the installation of various packages started to fail with
404 errors, which are resolved by updating the package lists first.
Manually ran "pre-commit autoupdate". The new version of isort in
particular is necessary to fix install on some newer Python
environments.
mypy started to complain with:

    pubtools/exodus/gateway.py:8: error: Library stubs not installed for "requests.packages.urllib3.util.retry"  [import-untyped]
    pubtools/exodus/gateway.py:8: note: Hint: "python3 -m pip install types-requests"

...despite that types-requests *is* already installed. Other projects
have seen similar issues.

As we do not seem to detect any genuine issues with mypy in practice,
let's drop it from the default CI configuration to reduce the CI
maintenance cost. mypy currently remains in the test-requirements.txt
file to enable running the tool locally.
@rohanpm rohanpm changed the title [ci] fix install of OS packages in CI workflows Various CI fixes for 2023-11 Nov 13, 2023
@rohanpm rohanpm marked this pull request as ready for review November 13, 2023 23:17
@rohanpm rohanpm merged commit 302e795 into release-engineering:main Nov 14, 2023
2 checks passed
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.

None yet

2 participants