Skip to content

bug: Flatpak lane fails to spawn ci/flatpak_builder_lint.py β€” the action passes ${{ github.workspace }} where the job runs in /__w (#2702 regression)Β #2705

Closed

Description

@zackees

Build 🧱 / Flatpak πŸ“¦ now dies on the very first lint step, before the build: the composite action the GEN-005 port created invokes the module through ${{ github.workspace }}, and inside that job the path does not resolve.

Evidence

Scheduled Repository Actions dispatched on infra/2703-scripting-missing-prototypes at a59ab09e (run 40594398865, job 122506633843):

##[group]Run uv run --no-project "/home/runner/work/obs-studio/obs-studio/ci/flatpak_builder_lint.py" guard --artifact 'manifest'
uv run --no-project "/home/runner/work/obs-studio/obs-studio/ci/flatpak_builder_lint.py" guard --artifact 'manifest'
error: Failed to spawn: /home/runner/work/obs-studio/obs-studio/ci/flatpak_builder_lint.py
  cause: No such file or directory (os error 2)
##[error]Process completed with exit code 2.

The same job's earlier steps operate on /__w/obs-studio/obs-studio (Vendoring … to /__w/obs-studio/obs-studio/.flatpak-rust/vendor/…), so the workspace the job actually runs in is not the path the action passes. ci/flatpak_builder_lint.py exists in the checkout at both refs, so this is a path-resolution failure, not a missing file.

This is new with #2702 (merged as c96cd57d0): the same dispatched run on a SHA before that merge (fix/2699-app-build-soldr at c7769380, run 40591042433) got past the lint step and failed later in the actual compile. No PR-triggered lane runs the Flatpak job, so #2702's own CI could not see it.

Fix shape

.github/actions/flatpak-builder-lint/action.yaml already sets working-directory: ${{ inputs.workingDirectory }} (default ${{ github.workspace }}) on both steps, so the module should be addressed relative to the step's own directory β€” uv run --no-project ci/flatpak_builder_lint.py … β€” exactly as the neighbouring uv run --no-project ci/flatpak_compiler_diagnostics.py step in the same job does (build-project.yaml:828). Alternatively pass an explicit github.workspace-independent path from the caller. Whichever route, the four call sites (artifact: manifest, appstream, builddir, repo in build-project.yaml:831,949,962,968) all need the same treatment, and only a workflow_dispatch of Scheduled can prove it.

Found while verifying #2703 (the -Wmissing-prototypes exemption for shared/obs-scripting); the Flatpak lane cannot reach its compile step until this is fixed, so that lane's verification is blocked on this issue rather than on the exemption.

Activity

  1. added
    bug
    ready
    on Oct 27, 2026
  2. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: fix the Flatpak lint action's module path (#2705)

    Plan (one PR):

    1. Address ci/flatpak_builder_lint.py relative to the step's own directory in .github/actions/flatpak-builder-lint/action.yaml (both guard and lint steps), matching the neighbouring ci/flatpak_compiler_diagnostics.py step, so all four call sites (manifest, appstream, builddir, repo) resolve in the /__w/... container workspace.
    2. Check every other ${{ github.workspace }}-prefixed module invocation in composite actions that run inside that job.
    3. Verify with a workflow_dispatch of Scheduled on the branch, since no PR lane runs the Flatpak job; RED is the ci: Port the flatpak-builder-lint action to Python (GEN-005)Β #2702 spawn failure, GREEN is the lint step passing.
  3. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Fix is up as #2706 and the dispatch proves it: in run 40597879476 the Validate Flatpak manifest step (guard + flatpak-builder-lint) is now success instead of Failed to spawn. The job then fails later, at Build Flatpak Manifest 🧾, with /app/bin/xvfb-run exit 1 β€” the same failure the pre-#2702 dispatch (run 40591042433) had, so the lane can finally reach its compile step and that error is a separate, intermittent problem (the job passed at 21:18 and 05:07 today, failed at 20:48/21:05/21:57/22:23 on other heads).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions