matrix-1.3.0.9: unregistering (local file changes: src/Matrix.hs)
matrix> build (lib + test) with ghc-9.2.7
Preprocessing library for matrix-1.3.0.9…
Building library for matrix-1.3.0.9…
[2 of 2] Compiling Matrix
Preprocessing test suite ‘test’ for matrix-1.3.0.9…
Building test suite ‘test’ for matrix-1.3.0.9…
[1 of 2] Compiling Main [Matrix changed]
Linking .stack-work/dist/x86_64-linux/ghc-9.2.7/build/test/test …
matrix> copy/register
Installing library in /home/colin/exercism/haskell/matrix/.stack-work/install/x86_64-linux/47afc0288963800c23584c154290d38e772ba14b41ba2c472dc4ee37d127b285/9.2.7/lib/x86_64-linux-ghc-9.2.7/matrix-1.3.0.9-37rWMrdQUnJ8cvvQeI0p4h
Registering library for matrix-1.3.0.9…
matrix> test (suite: test)
extract row from one number matrix []
can extract row []
extract row where numbers have different widths []
can extract row from non-square matrix with no corresponding column []
extract column from one number matrix []
can extract column []
can extract column from non-square matrix with no corresponding row []
extract column where numbers have different widths []
shape []
rows & cols []
eq []
fromList []
transpose []
reshape []
shape of a reshaped matrix should match specified shape []
+++ OK, passed 100 tests.
flatten []
Finished in 0.0054 seconds
16 examples, 0 failures
matrix> Test suite test passed
Completed 2 action(s).
After submit via cli tests reports
An error occurred while running your tests. This might mean that there was an issue in our infrastructure, or it might mean that you have something in your code that’s causing our systems to break.
Please check your code, and if nothing seems to be wrong, try running the tests again.
I have checked my code, and nothing seems to be wrong. I tried resubmitting but obtained the same error.
The initial stub and the example solution are also error-ing here. The dependencies and imports look ok at a glance.
One thing of note is that this exercise (I think all of them in the repo) lists the resolver as lts-20.18, but the test-runner is now using lts-22.44. That might explain the difference between running the tests locally and online.
On the server, we have about 20s to compile and run the tests. I asked an LLM why matrix takes longer.
There’s a package called matrix in Stackage lts-22.44. When the exercise’s local
package is also named matrix, stack shadows/drops that snapshot package, which
changes the computed snapshot-install hash. …, so the matrix build gets a
brand-new empty snapshot dir … and recompiles ~55 dependency packages
(QuickCheck, aeson, vector, hspec…) from scratch.
Three exercises collide with Stackage lts-22.44 package names and all suffer the same ~60s recompile:
matrix (collides with the matrix math library)
binary-search (collides with the binary-search package)
» for i in matrix anagram say darts; do echo $i; time bash ../test_examples $i; done
matrix
matrix: testing...
matrix: done
real 1m39.591s
matrix: pass
---
anagram
anagram: testing...
anagram: done
real 0m5.679s
anagram: pass
---
say
say: testing...
say: done
real 1m37.034s
say: pass
---
darts
darts: testing...
darts: done
real 0m5.323s
darts: pass
Checks out. Those exercises might just need package renaming.
Does that configlet change alone resolve the Haskell timeouts, or will the track still need a follow-up change such as test/package naming? Also, once it ships, should affected users resubmit, or will the runner retry old submissions automatically?