-
Notifications
You must be signed in to change notification settings - Fork 161
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
Do not ignore #@
comments after empty line at start of test file
#3931
Conversation
71c4c1b
to
fac6565
Compare
Thanks for this PR. It looks very reasonable. I'm going to wait until the travis-ci tests have all executed, just to check no exists tests are failing because of this. |
2458f86
to
d34e575
Compare
The CI has timed out multiple times, that's why I have done multiple force pushes to re-trigger it. Now it has finally passed :-) |
Thanks! If you notice it happening again (it seems be to having lots of bad days recently, we are working to improve it), drop a message, as some of us can selectively restart individual CI tests. This all looks good, I'll leave it here a short while just in case anyone else has an opinion before merging. |
Could we please get a test case for this, too? Possibly in |
Also, I am not quite sure I understand your remark about the "missing" |
Here is a test case for my remark (of course, the empty line is again deliberate):
When running this, GAP currently shows I can add tests for all of this tomorrow. |
d34e575
to
81e3fd4
Compare
81e3fd4
to
4598663
Compare
I have now added a testcase, but Coveralls still says the coverage is decreasing. I have checked locally that the new lines are executed by my test. Do you know what could be wrong? |
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.
LGTM, thanks!!!
And don't worry about the coverage, it's all good.
Ah, I just noticed that "testspecial" coverage is not recorded/uploaded to coveralls, that's why it does not show up. Is this deliberate? I think it would be nice to backport this PR to the |
I am fine with backporting this. Regarding coverage tracking for testspecial: well, @ChrisJefferson and me are mainly the only ones we fiddle with that stuff these days, and already spent countless hours to make things work, and some of these are super annoying to debug indirectly on Travis... that said it'd be awesome if that coverage was tracked. PRs welcome (that's not meant cheeky, if you have time to look into, that'd be great, if not, feel free to add an issue to remind about it) |
Description
Consider the following test file (the empty line is deliberate):
When executing this testfile with
ignoreComments := false
, GAP complainsInvalid test file: #@fi without #@if
. This is fixed by not skipping lines which start with "#@".Note regarding the
Add(pos, i);
: I think this should always have been there. Without it,pos[i]
will NOT be the line corresponding toinp[i]
. This did not cause any errors sinceign
is appended topos
in line 147, sopos
had the correct length, and ifign
is the empty list, this is not a problem. However, when using@if
,ign
is not the empty list anymore, so theInt
call in line 213 fails because it is now applied to a non-empty list.General note: I did not try to understand all cases in
ParseTestInput
, so this PR might break other corner cases I am not aware of.Text for release notes
Do not ignore
#@
comments after empty line at start of test file.Checklist for pull request reviewers
If your code contains kernel C code, run
clang-format
on it; thesimplest way is to use
git clang-format
, e.g. like this (don'tforget to commit the resulting changes):
usage of relevant labels
release notes: not needed
orrelease notes: to be added
bug
orenhancement
ornew feature
stable-4.X
add thebackport-to-4.X
labelbuild system
,documentation
,kernel
,library
,tests
runnable tests
lines changed in commits are sufficiently covered by the tests
adequate pull request title
well formulated text for release notes
relevant documentation updates
sensible comments in the code