Sitelet https://github.com/msgwing/ZeroSMTP/pull/233
Skip to content

fix(ci): pyyaml instalowany przed krokami, ktore go importuja - #233

Merged
msgwing merged 1 commit into
mainfrom
fix-ci-pyyaml
Aug 23, 2026
Merged

msgwing merged 1 commit into
mainfrom
fix-ci-pyyaml

Conversation

@msgwing

@msgwing msgwing commented Aug 23, 2026

Copy link
Copy Markdown
Owner

tools/check-action.py dodany wczoraj importuje yaml. Instalacja pyyaml siedziała wewnątrz ostatniego kroku tego samego zadania — więc każdy przebieg device-table od tamtej pory umiera na ModuleNotFoundError, zanim do niej dojdzie.

Pierwszą osobą, która na to trafiła, był kontrybutor z zewnątrz — przy swoim pierwszym pull requeście, na zmianie w pliku JSON, która nie ma z tym nic wspólnego. Zobaczył czerwone wymagane sprawdzenie z moim błędem w środku.

Instalacja jest teraz osobnym krokiem, zaraz po setup-python, więc dodanie kroku wymagającego zależności nie może po cichu zależeć od kolejności kroków pod nim.

Warto nazwać kształt tego błędu, a nie tylko go naprawić: wsadzenie instalacji do kroku, który akurat jej potrzebował, działało dokładnie tak długo, jak długo był to jedyny taki krok. Było poprawne, gdy powstawało, i stało się błędne, gdy coś dodano wyżej — a nic tego nie pilnowało. To ta sama porażka co nieaktualny komentarz, tyle że w pliku workflow.

tools/check-action.py was added yesterday and imports yaml. The pip install for
pyyaml lived inside the last step of the same job, so every run of device-table
since has died on ModuleNotFoundError before reaching it.

The first person to hit it was an outside contributor, on their first pull
request, on a change to a JSON file that has nothing to do with any of this.
Their pull request showed a red required check with my defect in it.

The install is its own step now, directly after setup-python, so adding a step
that needs a dependency cannot silently depend on the order of steps below it.

Worth naming the shape of this one rather than just fixing it: putting setup
inside the step that happened to need it worked for exactly as long as that
step was the only one. It was correct when written and became wrong when
something was added above it, and nothing was watching for that - the same
failure as a stale comment, in a workflow file.
@github-actions github-actions Bot added the ci label Aug 23, 2026
@msgwing
msgwing merged commit 1886aa0 into main Aug 23, 2026
36 checks passed
@msgwing
msgwing deleted the fix-ci-pyyaml branch August 23, 2026 09:34
@msgwing msgwing mentioned this pull request Aug 23, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant