Closed ringabout closed 2 years ago
You can see CI result at https://github.com/xflywind/NimYAML
I am a bit confused. You are describing an issue but this PR does not fix that issue, instead it adds a GitHub action for… some reason? And that GitHub action does only run selected tests, not all of them… What is the goal with this? I first thought you want to reproduce the error, but in your fork the action seems to be successful.
Yeah, this PR just added the GitHub action. The issues I mentioned are some regressions on Nim devel. After the issues are solved or workarounded, other tests can be enabled.
Does this GitHub action help Nim development in some way? For NimYAML development it should certainly also execute parserTests
and quickstartTests
so I would add those unless you have a use-case for which that is inconvenient.
For NimYAML development it should certainly also execute parserTests and quickstartTests
I agree, let me test whether these tests work on stable branch.
For parserTests on 1.4.8 branch
/home/runner/.choosenim/toolchains/nim-1.4.8/lib/pure/collections/tables.nim(423, 3) Warning: Cannot prove that 'result' is initialized. This will become a compile time error in the future. [ProveInit]
[tparser] Generating tests from "/home/runner/work/NimYAML/NimYAML/test/yaml-test-suite"
/home/runner/work/NimYAML/NimYAML/test/tparser.nim(93, 9) template/generic instantiation of `genTests` from here
/home/runner/work/NimYAML/NimYAML/test/tparser.nim(85, 22) Error: cannot open file: ls: cannot access '/home/runner/work/NimYAML/NimYAML/test/yaml-test-suite/*': No such file or directory/===
That looks like the GitHub action failed to fetch the yaml-test-suite
git submodule in test
. According to the docs actions/checkout@v2
seems to need
with:
submodules: true
So Windows has two issues:
D:\a\NimYAML\NimYAML\test\tparser.nim(85, 22) Error: cannot open file: ls: cannot access '\d\a\NimYAML\NimYAML\test\yaml-test-suite*': No such file or directory\===
Looks like an error when building the path.
D:\a\NimYAML\NimYAML\test\tquickstart.nim(113, 32) Error: cannot open file: \d\a\NimYAML\NimYAML\doc\snippets\quickstart\title
That seems to miss appending an .exe
.
And the third issue is that, despite those errors, the GitHub action succeeds. I would expect it to fail, not sure why it doesn't.
devel bugs are already fixed. Feel free to close this PR.
Yeah I kinda forgot about this PR, wanted to do some own exploration but didn't really find the time. Nonwithstanding the Windows weirdness, I'll merge this since it's nice to have a github action :).
Hmm there's some choosenim weirdness on macos devel, going to assume that's a transient error in devel since it works with other builds.
hello, @flyx
Some tests are broken on devel.
nim lexerTests
showsnim r test/tserialization
showsRef https://github.com/nim-lang/Nim/issues/18543