-
Notifications
You must be signed in to change notification settings - Fork 238
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
feature: add musllinux_1_2 support #1561
Conversation
The test error on GHA is: I'll try to check what can be done. |
We are reaching disk space limits (14 GB) when running tests. Add a fixture to clean-up docker images after tests. This fixture is applied on tests that pull a specific image for one test only in order not to take too much time pulling that image many times.
@pytest.fixture() | ||
def docker_cleanup() -> Generator[None, None, None]: | ||
def get_images() -> set[str]: | ||
images = subprocess.run( | ||
["docker", "image", "ls", "--format", "{{json .ID}}"], | ||
text=True, | ||
check=True, | ||
stdout=subprocess.PIPE, | ||
).stdout | ||
return {json.loads(image.strip()) for image in images.splitlines() if image.strip()} | ||
|
||
if detect_ci_provider() is None or platform != "linux": | ||
try: | ||
yield | ||
finally: | ||
pass | ||
return | ||
images_before = get_images() | ||
try: | ||
yield | ||
finally: | ||
images_after = get_images() | ||
for image in images_after - images_before: | ||
subprocess.run(["docker", "rmi", image], check=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely!
musllinux_1_2 support has been merged in the manylinux repo.
Now adding this to cibuildwheel.