Repository navigation
ci: Run the check-appdir step from Python (#962) - #2596
Conversation
RED: ci/test_check_appdir.py drives build-aux/appimage/check_appdir.py, which does not exist yet — 18 errors, the module is loaded by path and setUp fails. The wiring is pinned too: check-appdir.sh is still present, assemble-appdir.sh and test-appimage.sh still call the shell script, and the ci.toml GEN-005 exception is still there.
GEN-005 burn-down: build-aux/appimage/check-appdir.sh (136 lines of shell) → build-aux/appimage/check_appdir.py. The shell script is deleted; both callers run the Python, and the ci.toml GEN-005 exception is removed. GREEN keeps every check the shell made, failing closed on a missing file: - the top-level `export NAME="$HERE..."` lines of AppRun are expanded (HERE and PATH, the only names they use) and every path whose first component is under the AppDir must exist, and a directory must be non-empty (GIO_MODULE_DIR excepted); - client.conf loads only bundled PipeWire modules (an `ifexists` one is a note, not an error) and only bundled SPA plugins, and the three required modules plus support/libspa-support.so must be present; - gconv-modules when the AppImage bundles glibc, and the X11 and Wayland Qt plugins; - exactly one libsrt, at least 1.5.7 (read from .rodata without binutils), and no bundled ELF file asks for a second libsrt soname. Local: `uv run python -m unittest ci/test_check_appdir.py` → 22 OK; `ci.test_ci_toml` 19 OK; `ci.test_uv_run` and `ci.test_no_sys_path_edits` OK; `uvx ruff check` on both files clean.
|
Handed off to the coordinator: rebased on |
|
Blocking concern: the Evidence:
The Either install |
Refs #962
GEN-005 burn-down:
build-aux/appimage/check-appdir.sh(136 lines of shell) →build-aux/appimage/check_appdir.py. The shell script is deleted;assemble-appdir.shandtest-appimage.shrun the Python throughuv run --no-project, and the ci.toml GEN-005 exception is removed.RED
8fd4cbab3(local evidence, no remote run needed for a focused CI/config change):uv run python -m unittest ci/test_check_appdir.py→ 22 tests, 18 errors — the module is loaded by path andsetUpfails becausebuild-aux/appimage/check_appdir.pydoes not exist. The wiring is pinned too:check-appdir.shis still present, both callers still run the shell, and the ci.toml exception is still there.GREEN
174113329:build-aux/appimage/check_appdir.py— the port. Runsuv run --no-project build-aux/appimage/check_appdir.py <AppDir>.build-aux/appimage/assemble-appdir.shandbuild-aux/appimage/test-appimage.sh— both call sites nowuv run --no-project …/check_appdir.py.ci.toml— the GEN-005 exception forcheck-appdir.shremoved.build-aux/appimage/README.mdandplugins/obs-ffmpeg/cmake/dependencies.cmakename the Python file.What the port keeps
Every check the shell made, failing closed on a missing file, with the same messages:
export NAME="$HERE..."lines ofAppRunare expanded (HEREandPATH— the only names they use) and every path whose first component is under the AppDir must exist; a directory must be non-empty (GIO_MODULE_DIRexcepted, andAPPDIR="$HERE"carries no trailing path so the shell'scase "$APPDIR"/*skipped it);client.confloads only bundled PipeWire modules (anifexistsone is a note, not an error) and only bundled SPA plugins; the three required modules andsupport/libspa-support.somust be present;GCONV_PATHfrom the export block, which never carries it, so an empty value globs from/— kept as-is), and the X11 and Wayland Qt plugins;.rodatawithout binutils, so a second match fails closed), and no bundled ELF file asks for a second libsrt soname.Tests
ci/test_check_appdir.pybuilds a small AppDir (a syntheticAppRun, aclient.conf, the PipeWire modules, SPA plugins, Qt plugins and one libsrt) and drivescheck()over it: a complete AppDir passes, and a missing or empty exported path, a missingclient.conf, a missing required module or SPA plugin, a client.conf module that is not bundled, a missing Qt plugin, and a missing, duplicated, too-old, unreadable or second-referenced libsrt each fail with the shell's own message. The wiring is pinned too: the shell script is gone, both callers run the Python throughuv, and no GEN-005 exception is left.Local:
uv run python -m unittest ci/test_check_appdir.py→ 22 OK;ci.test_ci_toml19 OK;ci.test_uv_runOK;ci.test_no_sys_path_editsOK;uvx ruff check build-aux/appimage/check_appdir.py ci/test_check_appdir.pyclean.Not run locally
./lint'stest_local_gate_proberust lane errors in this environment (the host'ssoldris older than the repo pins), unrelated to this change — PR CI is the gate.No user-visible change: CI tooling only, so no
docs/features.mdline.