exercism / go-test-runner

GNU Affero General Public License v3.0
15 stars 17 forks source link

`elons-toys` getting error fetching go-cmp #43

Closed jmrunkle closed 3 years ago

jmrunkle commented 3 years ago

Here is the error message:

go: github.com/google/go-cmp@v0.5.3: Get "https://proxy.golang.org/github.com/google/go-cmp/@v/v0.5.3.mod": dial tcp: lookup proxy.golang.org on 10.0.2.3:53: dial udp 10.0.2.3:53: connect: network is unreachable '/usr/local/go/bin/go test --short --json .' returned exit code 1: exit status 1

This occurs even when copy-pasting the exemplar solution into the web editor and running the tests.

jmrunkle commented 3 years ago

I cannot find any reason why it would be trying to contact the network... I cannot find anything special about elons-toys that would trigger this.

junedev commented 3 years ago

I cannot reproduce this. Can you try again and see whether you still get the error?

image

junedev commented 3 years ago

The only scenario I see is that a student imported that package and submitted this (maybe even incl. the new go.mod via CLI) and the test runner got compromised somehow into thinking that package is still needed for the next test run. Test runners are recycled over night so if there was a problem, it might be gone by now (I mean the symptoms, not the underlying bug that caused this of course).

andrerfcsantos commented 3 years ago

@jmrunkle Are you using an updated version of the exercise? The go.mod for this exercise did have this dependency, but that was fixed with https://github.com/exercism/go/pull/1535.

The only reason I see this happening is it is using an old version of the exercise. But updating the exercise should fix it.

jmrunkle commented 3 years ago

@jmrunkle Are you using an updated version of the exercise? The go.mod for this exercise did have this dependency, but that was fixed with https://github.com/exercism/go/pull/1535.

The only reason I see this happening is it is using an old version of the exercise. But updating the exercise should fix it.

I even tried reverting the exercise to the base then pasting the exemplar solution. No dice. Maybe resetting to base does not reset the base files like go.mod?

andrerfcsantos commented 3 years ago

If you do exercism download --exercise=elons-toys --track=go --force, which go.mod do you get?

jmrunkle commented 3 years ago

If you do exercism download --exercise=elons-toys --track=go --force, which go.mod do you get?

I am not using the CLI, this is entirely through the web UI. It may not be a problem with the test runner at all, this could be that the web UI provides no way to reset those auxiliary files.

jmrunkle commented 3 years ago

OK, something appears to have changed because I just reloaded the exercise changed nothing (added a space) and re-ran the tests and they pass now. I do not doubt that the issue was a pre-existing go.mod issue, I was just concerned that there seemed to be no way to complete this in the web UI. Something appears to have triggered an update to the exercise (perhaps the introduction changed or something like that). In any case, it is working now so I can go ahead and close this.