Skip to content

Fix CI: expect v3 results.json and run on amd64#190

Merged
keiravillekode merged 1 commit into
exercism:mainfrom
keiravillekode:expect-v3
May 10, 2026
Merged

Fix CI: expect v3 results.json and run on amd64#190
keiravillekode merged 1 commit into
exercism:mainfrom
keiravillekode:expect-v3

Conversation

@keiravillekode
Copy link
Copy Markdown
Contributor

Summary

  • bin/.test-in-docker now reads top-level .status from the v3 results.json instead of grepping for the old v1 shape, so passing example solutions are recognised again. On failure it surfaces either the top-level .message (error case) or the per-test .message values (fail case).
  • .github/workflows/test.yml runs on ubuntu-24.04 rather than ubuntu-24.04-arm, matching the amd64-only image currently published on Docker Hub. This avoids running the Factor VM under QEMU emulation.

The May rewrite of factor-test-runner switched the runner's output to {"version":3, ...}. The integration check in this repo still grepped for {"version":1,"status":"pass"}, which never matched — so every exercise printed Solution is incorrect: null (a passing v3 result has no top-level .message, so jq -r '.message' yields null). Last green CI run was 2026-05-02 (#188), immediately before those runner changes landed.

Test plan

  • CI on this PR runs Track Exercises on Runner to green

The factor-test-runner image was rewritten in May to emit
{"version":3, ...}, but bin/.test-in-docker still grepped for
{"version":1,"status":"pass"} — so every example solution was
reported "Solution is incorrect: null" (the v3 pass payload has no
top-level .message). Switch the check to read top-level .status and
build the failure message from .message (error case) or per-test
.message values (fail case).

The image is now amd64-only on Docker Hub. Run the workflow on
ubuntu-24.04 instead of ubuntu-24.04-arm so the Factor VM runs
natively rather than under QEMU emulation.
@keiravillekode keiravillekode merged commit ddb42cd into exercism:main May 10, 2026
7 checks passed
@keiravillekode keiravillekode deleted the expect-v3 branch May 10, 2026 23:17
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