ci: pin container for self-hosted runner + install Qt runtime libs for pytest-qt #22
No reviewers
Labels
No labels
blocked:needs-attention
blocked:needs-decision
blocked:needs-decompose
blocked:needs-design
blocked:needs-triage
blocked:preflight
blocked:unclassified
bug
documentation
enhancement
gsd-spec
in-progress
lint-cleanup
needs-decompose
priority:high
priority:low
priority:medium
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_local_ai_image_enhancer!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/fix-self-hosted-python-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the failing CI on main.
Root cause
The
forgejo-runner-userself-hosted runner container on blackhole is Alpine Linux with onlygit+bashinstalled; nopython3, nopip, nolsb_release. The old.forgejo/workflows/ci.ymlhad:actions/setup-python@v5ran in the Alpine container, couldn't find Python 3.11 builds for Alpine (nolsb_release, no matching OS in the version manifest), errored out, and skipped every downstream step. Result: every run ended in failure without the test suite ever running.Confirmed by inspection of
podman logs forgejo-runner-user:Fix (two commits on branch
ci/fix-self-hosted-python-setup)catthehacker/ubuntu:act-22.04). setup-python now installs Python 3.11 cleanly, pip install works, and py_compile passes.QT_QPA_PLATFORM=offscreen. Without these the pytest-qt session fails at import time withImportError: libGL.so.1: cannot open shared object file. WithQT_QPA_PLATFORM=offscreenthe GUI tests don't need a real display.Also pinned
shell: bashper step to avoid Dash surprises and switched all pip calls topython3 -m pip(catthehacker's image doesn't always expose a barepipbinary).Verification
782596978259695a1a935ae26dcdae26dcdBoth green runs:
241 passed in 0.58s.No application code touched — workflow only.
Linked task: https://vikunja.tail018ac4.ts.net/tasks/147
Pull request closed