Skip to content

fix: repair the 0.1.21 rpm failure, and stop the two workflows racing - #36

Merged
Spacefreak18 merged 3 commits into
Spacefreak18:masterfrom
MrDavid5465:fix/rpm-prep-stale-source
Sep 9, 2026
Merged

fix: repair the 0.1.21 rpm failure, and stop the two workflows racing#36
Spacefreak18 merged 3 commits into
Spacefreak18:masterfrom
MrDavid5465:fix/rpm-prep-stale-source

Conversation

@MrDavid5465

Copy link
Copy Markdown
Contributor

0.1.21 failed build-simapi-rpms (fedora-43) with simd.c:12:10: fatal error: yder.h: No such file or directory. 0.1.18, 0.1.19 and 0.1.20 all passed, so this is a regression from my packaging PR. Sorry — two separate mistakes, both mine.

1. %prep stopped starting from a clean checkout

I made the clone conditional and dropped the rm -rf $RPM_SOURCE_DIR/simapi that preceded it:

 rm -rf $RPM_BUILD_DIR/simapi
-rm -rf $RPM_SOURCE_DIR/simapi
-cd $RPM_SOURCE_DIR
-git clone https://github.com/spacefreak18/simapi
+if [ ! -d $RPM_SOURCE_DIR/simapi ]; then
+    cd $RPM_SOURCE_DIR
+    git clone https://github.com/spacefreak18/simapi
+fi

On a GitHub-hosted runner that is harmless because the directory never exists. The fedora-43 job runs on a self-hosted runner where ~/rpmbuild/SOURCES persists between builds, so the clone was skipped and a stale tree was built. I tested this only on hosted runners, where the bug is invisible.

Staging is now opt-in via --define "staged 1". Without it the behaviour is exactly as before: remove the old checkout, clone fresh.

2. The two workflows upload the same filenames

packages.yml and ci.yaml build the same artifacts and attach them to the same release as libsimapi-fedora-43.rpm, simd-debian-stable.deb and so on — identical names. On a tag they race. I added packages.yml without noticing this workflow already released those names.

This drops build-simapi and build-simapi-rpms, keeping the two nix jobs. packages.yml covers everything they did, in containers on ubuntu-latest:

ci.yaml packages.yml
debs ubuntu-latest, debian-latest, debian-stable (self-hosted labels) same three, in containers
rpms fedora-43 (self-hosted) fedora-43 and fedora-44, in containers

It also removes the dependency that broke 0.1.21. build-simapi-rpms installs nothing — it creates rpmbuild dirs, curls the spec and runs rpmbuild, relying entirely on what was hand-installed on that machine. Fedora packages neither yder nor orcania, so those must have been placed there manually and were gone three months later. packages.yml vendors both as static libraries, so there is nothing to maintain by hand and nothing to silently rot.

Drop the second commit if you would rather keep those jobs — the first two fix the failure on their own, though the filename collision would remain.

🤖 Generated with Claude Code

MrDavid5465 and others added 3 commits September 7, 2026 19:51
My packaging change made the clone in %prep conditional on
$RPM_SOURCE_DIR/simapi being absent, and dropped the `rm -rf` that used to
remove it. On a GitHub-hosted runner that is harmless -- the directory never
exists -- but the fedora-43 job runs on a self-hosted runner where
~/rpmbuild/SOURCES persists between builds, so the clone was skipped and
whatever tree was left over from the previous release got built instead.

Staging is now opt-in via --define "staged 1". Without it the behaviour is
exactly what it was before: remove any previous checkout, clone fresh.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
%prep now clones unless --define "staged 1" is passed, so the job that
stages the checkout has to say so. Without this the rpm would be built from
a fresh clone of the default branch rather than the commit being released.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
These two jobs and the ones in packages.yml build the same artifacts and
upload them to the same release under the same filenames -- libsimapi-
fedora-43.rpm, simd-debian-stable.deb and the rest. On a tag they race. That
is my fault: I added packages.yml without noticing this workflow already
released those names.

They are also the last self-hosted jobs here. build-simapi-rpms is what
failed on 0.1.21, with simd.c:12 unable to find yder.h: the job installs no
dependencies at all, relying on whatever was hand-installed on that machine,
and Fedora packages neither yder nor orcania. Three months after the last
release the runner no longer had them. packages.yml builds fedora-43 and 44
in containers and vendors both as static libraries, so the same rpm is
produced on an ordinary GitHub-hosted runner with nothing to maintain by
hand. It also adds fedora-44, which was never covered here.

The deb matrix is the same story: ubuntu-latest, debian-latest and
debian-stable are runner labels resolving to self-hosted machines, and
packages.yml builds all three in containers.

The nix jobs stay -- they run on ubuntu-latest and nothing else covers them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Spacefreak18
Spacefreak18 merged commit 243e810 into Spacefreak18:master Sep 9, 2026
7 checks passed
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.

2 participants