Install Qt runtime libraries before the PyPI smoke test - #15
Merged
Conversation
brayer imports PySide6 at package import time, so `import brayer` on a
bare runner fails with:
ImportError: libEGL.so.1: cannot open shared object file
The v0.1.0 release hit exactly this. The upload to PyPI succeeded and
the package is fine; only the post-publish check failed, which reads as
a broken release when it is really a missing system library.
Installs the same Qt runtime packages the test matrix already installs
in code_test.yml, and sets QT_QPA_PLATFORM=offscreen so Qt does not look
for a display.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
v0.1.0release job failed at its final step:The release itself was fine. The upload returned
200 OKand brayer 0.1.0 is live and installable. What broke is the post-publish smoke test:brayerimports PySide6 at package import time, and thepublish-to-pypijob runs on a bareubuntu-latestwith no Qt runtime libraries and no display. A red release job here reads as a broken package when it is really a missing system library.code_test.ymlalready solved this — it has anInstall Qt runtime librariesstep and setsQT_QPA_PLATFORM=offscreenat the workflow level. The publish job never got either. This ports both across.Test plan
code_test.yml, which passesimport PySide6.QtWidgetson Linux across the whole 3.10–3.14 matrix, including a dedicatedVerify Qt imports headlesslystep.publish-to-pypisteps are nowDownload Distributions,Publish to PyPI,Install Qt runtime libraries,Smoke Test on PyPI, with the Qt env vars scoped to the smoke test.release-triggered only, so PR checks cannot exercise it, and Docker was unavailable locally to reproduce the bare-runner import. The evidence is parity with the passing test matrix, not a local run. It executes for real on the next published release.Note
libegl1alone would clear the reported error, but the full list is used deliberately: it matchescode_test.ymlexactly, so the two stay in step and the smoke test cannot pass while the matrix fails on some other missing.so.🤖 Generated with Claude Code