Closed bridgetkromhout closed 3 years ago
Hi @bridgetkromhout Thanks for the investigation and write-up!
I expect the released binaries of htmltest to be named in a way that's compatible with the recommended installation procedure.
:grin: Love this
It seems I tried to fix this in Jan by re-generating the godownloader script. The copy on htmltest.wjdp.uk is hosted on S3 and I updated this while failing to update the repo copy. The PR linked fixes this.
A silly mistake which has cost a few people time looking into, sorry for this and thanks again for raising.
The PR linked fixes this.
Great! Looking forward to seeing that merged. Thanks!
Describe the bug
There's a subtle silent failure on macOS that I think is caused by an unexpected discrepancy in how darwin is referenced (as
osx
or asmacos
). In this bug report I outline how it fails and how to make it succeed.I think that @shelbyspees in https://github.com/wjdp/htmltest/issues/146#issuecomment-818876938 is describing the problem I'm encountering. It's a different problem than that issue originally covered, so I'm opening this issue to isolate that specific problem and to propose a solution.
Looks like on 15 Jan 2021, this PR https://github.com/wjdp/htmltest/pull/157 was merged to implement github CI. There was also a small change to how the darwin releases are identified.
For the releases,
darwin: osx
was replaced bydarwin: macos
. This means that the 0.14.0 release in https://github.com/wjdp/htmltest/releases/tag/v0.14.0 (released on 23 Jan 2021) uses https://github.com/wjdp/htmltest/releases/download/v0.14.0/htmltest_0.14.0_macos_amd64.tar.gz for the mac assets.Unfortunately, we now have a mismatch, because the godownloader.sh script specifies
osx
in two places:darwin) OS=osx ;;
on https://github.com/wjdp/htmltest/blob/master/godownloader.sh#L122darwin) ARCH=osx ;;
on https://github.com/wjdp/htmltest/blob/master/godownloader.sh#L133I could submit a PR to the godownloader.sh script but it seems you prefer to generate it, and it also seems that this change may have been accidental, as that change from
osx
tomacos
doesn't appear to be discussed at all in the issue or PR - it just happened without commentary or discussion.Suggested fix: either change the name of the released file, or change the script - whichever you choose, making them match will fix this problem.
To Reproduce
Steps to reproduce the behaviour:
Here's the failure I get when testing locally on a mac.
It's failing, but why? I can see more detail if I download the script and run it manually with the debug flag. Looks like we are looking for a file under a name where it does not exist:
The failure is because of the change from
osx
tomacos
as explained above. To make the script succeed, I can make it look for the release under the name that currently exists:.htmltest.yml
Please copy in your config file
Source files
My source files aren't relevant to this bug.
Expected behaviour
I expect the released binaries of htmltest to be named in a way that's compatible with the recommended installation procedure.
Actual behaviour
Due to the name mismatch, testing on a mac requires an undocumented additional step of
s/osx/macos/g
as shown above.Versions