Skip to content

BUG: hotfix report defects in logs and HTML summaries #2512

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

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

neutrinoceros
Copy link
Contributor

@neutrinoceros neutrinoceros commented Jul 24, 2025

close #2511

disclaimer: I have not attempted to run tests locally yet (I have very limited battery at the moment), but I did run typechecking via pre-commit, which correctly caught a mistake in my initial iteration, so I'm reasonably confident in this patch.

@neutrinoceros
Copy link
Contributor Author

looks like I should have run tests locally after all... sorry for the time this wasted. Let's try again, this time including test changes.

@neutrinoceros neutrinoceros marked this pull request as ready for review July 24, 2025 11:42
@henryiii
Copy link
Contributor

Unrelated to this PR, but @mhsmith all PRs are getting this warning:

 Check notice on line 1 in cibuildwheel/platforms/pyodide.py

 
GitHub Actions
/ Linters (mypy, ruff, etc.)

R0401
Cyclic import (cibuildwheel.platforms -> cibuildwheel.platforms.android)

Pylint is detecting a circular import that Python is able to handle at runtime. Maybe there's a way to remove the circular pattern, or we can just silence the warning.

@henryiii henryiii merged commit 1ac7fa7 into pypa:main Jul 24, 2025
28 checks passed
@neutrinoceros neutrinoceros deleted the hotfix-summaries branch July 24, 2025 16:30
@mhsmith
Copy link
Contributor

mhsmith commented Jul 24, 2025

In this context the circular import is perfectly safe, so I've silenced it in #2515.

@@ -242,11 +242,11 @@ def print_summary(self, *, options: "Options") -> Generator[None, None, None]:
github_summary = self._github_step_summary(duration=duration, options=options)
Path(summary_path).write_text(filter_ansi_codes(github_summary), encoding="utf-8")

n = len(self.summary)
s = "s" if n > 1 else ""
n_wheels = len([info for info in self.summary if not info.filename])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neutrinoceros The not here is looking wrong to me!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my, definitely 🤦🏻‍♂️ I'll fix this in a minute

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2517 👀

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.

BUG: incorrect reporting of the number of wheels produced
4 participants