PureScript tests not running

The PureScript test runner is always returning an error without running tests.
This happens irrespective of exercise with previously passing exercises showing the error. It happens on both the online editor and on CLI submitted exercises.
The error is as follows:

spago: 
Error: Remote host not found

URL: https://github.com/purescript/package-sets/releases/download/psc-0.15.15-20250201/packages.dhall

This problem has persisted since the Track and Test runner were updated (Forum topic on that)

Previously working Hello World exercise code

module HelloWorld where

helloWorld :: String
helloWorld = "Hello, World!"

I wonder why it’s failing.

The GitHub Actions test way back passed: Update package set and sync with track · exercism/purescript-test-runner@6c6c05f · GitHub

and

are apparently pointing to different files with different checksums. I’d assume the test runner is trying to pull down psc-0.15.15-20250201 while running the student’s code, and that’s destined to fail because it doesn’t have network access by design.

Ah, it sounds plausible that stuff is supposed to be cached, to avoid needing network access, hence the mismatch causing a failure. Should I go ahead and sync up all the packages.dhall copies in exercism/purescript and exercism/purescript-test-runner?

1 Like

I have created pull requests Sync up purescript and purescript-test-runner packages.dhall by FranklinChen · Pull Request #57 · exercism/purescript-test-runner · GitHub and Sync up purescript and purescript-test-runner packages.dhall by FranklinChen · Pull Request #314 · exercism/purescript · GitHub that should be merged simultaneously.

2 Likes

PRs are merged, and the Hello World exercise is working for me now.

1 Like