Repository navigation
ci: Address the Flatpak lint module relative to the job's container (#2705) - #2706
Conversation
…2705) The Flatpak job runs in a container at /__w/obs-studio/obs-studio, but ${{ github.workspace }} in a composite action's run: resolves to the runner host path, so the module never spawns. The pin fails on master.
…2705) The Flatpak job runs inside a container at /__w/obs-studio/obs-studio, while ${{ github.workspace }} and ${{ github.action_path }} interpolate the runner host path (/home/runner/work/...). Passing those as arguments is not translated the way working-directory: is, so #2702's GEN-005 port made the first lint step die with 'Failed to spawn: .../ci/flatpak_builder_lint.py' before the build. Both steps already carry working-directory: ${{ inputs.workingDirectory }} (the workspace by default), so the module and the action's own exceptions.json are now addressed relative to it, matching the neighbouring ci/flatpak_compiler_diagnostics.py step in the same job. Verified locally: the new pin passes, ci/test_flatpak_builder_lint.py stays green, guard exits 0 for manifest and 2 for an unknown kind, and the action YAML parses with both run commands as intended. The Flatpak lane itself only runs from Scheduled/dispatch, so a workflow_dispatch is the real proof.
Dispatch evidence (the acceptance check)
The lint step the issue is about now runs (guard + The later failure is not this change: the job dies at |
|
Handed off to the coordinator (green, clean, queued). |
|
Independent confirmation of this form, from the lane's own image with the worktree mounted exactly as the job mounts it ( and the host path still exits 2 with I also checked the assumption this makes — that callers leave |
Why
#2702 ported the flatpak-builder-lint action's two inline
run:blocks toci/flatpak_builder_lint.py(GEN-005) and invoked the module through${{ github.workspace }}. TheFlatpak 📦job inbuild-project.yamlruns in a container whose working directory is/__w/obs-studio/obs-studio, and a context interpolation inside arun:string is not translated the wayworking-directory:is, so it expanded to the runner host path and the very first lint step died before the build:Evidence: run 40594398865 (
Scheduledon this branch's pre-fix state), job log line showing the docker workspace mount/home/runner/work→/__wand the checkout'sWorking directory is '/__w/obs-studio/obs-studio'.Change
Both steps already carry
working-directory: ${{ inputs.workingDirectory }}(default: the workspace), so the action now addresses everything relative to it:uv run --no-project ci/flatpak_builder_lint.py …(the shape the neighbouringuv run --no-project ci/flatpak_compiler_diagnostics.pystep already uses in the same job);--exceptions '.github/actions/flatpak-builder-lint/exceptions.json'instead of${{ github.action_path }}, which is also a host path in that container.All four call sites (
manifest,appstream,builddir,repo) go through this one action, so no caller changes.RED
8dea76a6e ci: Pin that the Flatpak lint action addresses its module relatively— addsci/test_flatpak_lint_paths.py, which fails on master:GREEN
49fae5533— the action edits plus the module docstring's usage line.uv run python -m unittest discover -s ci -p test_flatpak_lint_paths.py→ 3 tests, OKuv run python -m unittest ci/test_flatpak_builder_lint.py→ 10 tests, OK (itscount("ci/flatpak_builder_lint.py") == 2pin still holds)uv run python -m unittest ci/test_uv_run.py→ 5 tests, OKruff checkclean on both touched Python filesci/flatpak_builder_lint.py guard --artifact manifest→ exit 0;--artifact bogus→::error::Given artifact type is incorrect, exit 2Not verified by PR CI
No PR-triggered lane runs the Flatpak job (
ci_scope.pyfullonly runs from a non-PR path), so the real proof is aworkflow_dispatchofScheduledon this branch, which I am dispatching with this PR open. The lint step's own outcome in that run is the acceptance check; the later compile step is unrelated to this change.Fixes #2705
Refs #2703