Skip to content

ci: install rpm + libarchive-tools on Linux CI runners (unbreaks #98 regression)#101

Merged
itsdestin merged 2 commits into
masterfrom
fix/ci-linux-pkg-deps
May 23, 2026
Merged

ci: install rpm + libarchive-tools on Linux CI runners (unbreaks #98 regression)#101
itsdestin merged 2 commits into
masterfrom
fix/ci-linux-pkg-deps

Conversation

@itsdestin

Copy link
Copy Markdown
Owner

Summary

Master CI has been red since PR #98 (`4679cc89`, 2026-05-20) — both Desktop CI and Android CI failing the same way:

```
{message: "Process failed: /bin/bash failed (exit code 127). Full command was:
["/bin/bash", "-c", "LANG=C bsdtar -czf .MTREE ..."]"}
⨯ fpm process failed 1
```

PR #98 added `rpm` and `pacman` targets to `desktop/electron-builder.yml` `linux.target`, and updated `desktop-release.yml` to install `rpm` + `libarchive-tools` (which provides bsdtar) before the build — but missed the four other workflows that also run `npm run build` on `ubuntu-latest`. So every CI run since hit pacman packaging with no bsdtar on the runner → exit 127.

This PR mirrors release.yml's setup step into:

  • `desktop-ci.yml` (per-push verification — main offender)
  • `android-ci.yml` (bundleWebUi → scripts/build-web-ui.sh → npm run build)
  • `android-test-build.yml` (workflow_dispatch parity build)
  • `desktop-test-build.yml` (workflow_dispatch matrix; only Linux matrix slot, gated on runner.os)

No application code or build-output change. Pure CI runner-env fix.

Failure baseline

Last green master CI: `1f9af7da` (PR #97). Every push after PR #98 has been red on both CI workflows with the same trace. Verified via:

```
gh run list --workflow=desktop-ci.yml --branch=master --limit=5
```

Test plan

🤖 Generated with Claude Code

itsdestin and others added 2 commits May 23, 2026 15:55
PR #98 added rpm + pacman targets to electron-builder.yml without updating
the CI workflows that run `npm run build` on ubuntu-latest. electron-builder
shells out to fpm → bsdtar for the pacman target and to rpm for the rpm
target — both binaries are not on the stock ubuntu-latest image. Result:
every Desktop CI and Android CI run since 2026-05-20 (commit 4679cc8)
has been red with `fpm process failed 1` / `bash exit 127` deep inside
the pacman packaging step.

desktop-release.yml already installs both packages (line 68); this commit
mirrors that step into the four workflows that were missing it:

- desktop-ci.yml          (per-push verification)
- android-ci.yml          (bundleWebUi → build-web-ui.sh → npm run build)
- android-test-build.yml  (workflow_dispatch parity build)
- desktop-test-build.yml  (workflow_dispatch matrix; only Linux slot)

No code or build-output change — purely a runner-environment fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
First push of #101 hit a fresh failure: ubuntu-latest's cached package
index pointed to libarchive-tools_3.7.2-2ubuntu0.6 but the mirror had
already rolled to a newer version, so the bare apt-get install died
with HTTP 404 / exit 100 in <20s.

Prepend `apt-get update` so we always resolve against the current
index. Applied to all four workflows touched in this PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@itsdestin itsdestin merged commit 117c05c into master May 23, 2026
2 checks passed
@itsdestin itsdestin deleted the fix/ci-linux-pkg-deps branch May 30, 2026 22:42
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.

1 participant