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

Always use virtual environments in CI, because PEP 668 #573

Merged
merged 11 commits into from
Jun 19, 2024
Merged

Always use virtual environments in CI, because PEP 668 #573

merged 11 commits into from
Jun 19, 2024

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Jun 18, 2024

Issue:

CI is not working on some newer OSs (Ubuntu 24.04, OpenBSD 7.5) due to PEP 668 which disallows global installations from pip.

Description of changes:

Always run CI in a virtual environment (using path .venv-builder)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

```
aws-c-common       v0.9.20 -> v0.9.21
aws-lc             v1.28.0 -> v1.29.0
s2n                v1.4.15 -> v1.4.16
```
see: awslabs/aws-c-common#1113

remove the `./scripts/format-c.py` script in favor of having the same `./format-check.py -i` script in the same place as every other repo
@graebm graebm marked this pull request as ready for review June 18, 2024 17:04
graebm added a commit to awslabs/aws-crt-builder that referenced this pull request Jun 18, 2024
**Issue:**
awslabs/aws-crt-python#573 needs python3's `venv` installed on all docker images, due to [PEP 668](https://peps.python.org/pep-0668/).

While trying to update our `raspbian-bullseye` image, I discovered it's been broken for months. We'd been [hacking around this](#256) by not even trying to build it anymore, copy/pasting an old working version instead.

**Description of changes:**

- Install `python3-venv` in Docker images that didn't already have it
- Fix `raspbian-bullseye` image.
    - The old image was getting 404 from some repository while running `apt-get update`
    - Use different base image: https://github.com/dtcooper/raspberrypi-os-docker. This was the only easily available `bullseye` image I could find. The implementation looks simple, and it's working.
    - Remove extra stuff from this docker image, like building additional versions of python. I don't know what these were used for (@xiazhvera do you know?). None of our other docker images go through this trouble to build extra python versions. This is already the slowest docker image, due to being armv7, so removing extra work and complication seems extra good.
@graebm graebm merged commit 1d5103e into main Jun 19, 2024
65 checks passed
@graebm graebm deleted the pep668 branch June 19, 2024 20:12
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