Skip to content

test(printer): wait for both queued jobs before asserting - #57

Merged
pfa230 merged 1 commit into
mainfrom
fix-queued-jobs-wait
Oct 16, 2026
Merged

pfa230 merged 1 commit into
mainfrom
fix-queued-jobs-wait

Conversation

@pfa230

@pfa230 pfa230 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

The queued-trim case in tests/test_driver.c waited only for the follower job, then asserted the first job had completed. PAPPL 1.4.11 starts the newest pending job first (compare_active_jobs sorts by descending id), so the first job finishes last. It passed on amd64 only because the first job completed inside the 10 ms poll gap.

On a Raspberry Pi Zero 2 W (native arm64) and under QEMU arm64, driver_finishings and driver_finishings_p710bt failed every run at the first == COMPLETED assertion, which fails the Dockerfile.deploy build on arm64. PR #52 adds that arm64 build to CI.

The fix waits until both jobs are terminal. Verified:

  • Pi Zero 2 W, native arm64: both driver tests pass 3/3 (failed 3/3 before).
  • amd64 Dockerfile.deploy build: 12/12 suites pass.

Test-only; no behavior change, so no OpenSpec change.

PAPPL 1.4.11 starts the newest pending job first (compare_active_jobs
sorts by descending job id, and _papplPrinterCheckJobsNoLock starts the
first pending entry). The queued-trim case waited only for the follower,
so it passed on amd64 only when the first job finished inside the 10 ms
poll gap. On a Raspberry Pi Zero 2 W, and under QEMU arm64, the first job
was still processing and the assertion failed every run, which also
fails the Dockerfile.deploy build on arm64.

Wait until both jobs reach a terminal state. Verified 3/3 on the Pi and
12/12 suites on amd64.
@pfa230
pfa230 merged commit 72e9464 into main Oct 16, 2026
1 check passed
@pfa230
pfa230 deleted the fix-queued-jobs-wait branch October 16, 2026 16:51
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