-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added knownIssue as key for testament spec #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this one. Aside from things I commented on, it looks good to me.
A minor note: please use human-readable PR and issue names, |
A known issue for a specific platform is a tricky problem, because fundamentally, it can be seen as a specific entry (or set of entries) in the build matrix - os, gc, backend and so on. So "disable" and "matrix", "target" provide a specific set of options that narrow down the run matrix entry, and then we mark the set of resulting runs as problematic. I'm not sure if it really makes sense, but for issue like nim-lang/Nim#17552 expected test would look like discard """
knownIssue: "https://github.com/nim-lang/Nim/issues/17552"
matrix: "--gc:orc" If all runs of a known issue pass, it means that issue is fully solved, but individual successful runs should also be noted. At the same time, we have known issues that are not related to specific matrix configuration (general compilation failure like "Accepts invalid", or "rejects valid"), and those are marked as |
So to summarize what I wrote above - I'm not sure if there is even a "case of knownIssue for specific platforms." that need to be handled explicitly. Of course if you had an idea what this should be I would be happy to discuss. |
edd00d4
to
f5ce93b
Compare
There you go. |
No, Ideally |
Have to agree after reviewing, I see two options:
Even though it's less clean in the long run, I think options 1 will be an easier transition. 😕 |
i'm down for the second one. |
If you can do that, awesome! Otherwise, this would put us in a good logical progression point:
|
Conducted a more in-depth investigation for every test that had a "disabled: true". Mind that some of the issues referenced below are not actually the reason the tests were disabled, assign
concepts
cpp
dll
effects
errmsgs
compiler
fragmentation
generics
global
iter
macros
method
misc
modules
navigator
objects
objvariant
parallel
pragmas
proc
stdlib
system
template
typerel
types
|
f5ce93b
to
0c2babb
Compare
tests/misc/tnoinst.nim
Outdated
@@ -1,7 +1,8 @@ | |||
discard """ | |||
errormsg: "instantiate 'notConcrete' explicitly" | |||
line: 12 | |||
disabled: "true" | |||
#knownIssue: "https://github.com/nim-lang/Nim/issues/1708" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the #
?
0c2babb
to
eeaede2
Compare
For now, i'm keeping the ability to use boolean values in the disabled key. I'll be opening a second PR for the remaining 'boolean disabled' tests, so that we can deal with them. |
Heck yeah! Please rebase the commits and include your excellent analysis on a test by test basis as part of it. |
eeaede2
to
c2b828b
Compare
@haxscramper I'm g2g for this PR, how ya feeling about it? |
re-structured the commit message. This should be good to go. |
It looks good to me, I think I will PR follow-up documentation update to reiterate on the explanations from this PR, and some other thoughts that I have (from #59 where I started creating new tests with |
Bors r+ |
Build succeeded: |
This is part of a series of commit with intent to re-organize the test suite. Currently, the 'disabled' key of the testament spec is used both to disable tests on a platform basis and disable buggy tests. Introducing the 'knownIssue' key in the spec allows simplifying the disabled key, and referencing knownIssues whose behaviour could ( and should ) be revisited. Further discussion can be found at nim-works#61. This commit adds a 'knownIssue' key for every test marked with a 'disabled: true' whose disabling could be linked to a knownIssue, be it from git-log messages, or test text.
This references issue 61
KnowIssues is allowed to be mentioned multiple times;
The proposal of no longer accepting boolean values seems to be more intricate, since various tests rely on this option.
Still not handling the case of knownIssue for specific platforms.