-
Notifications
You must be signed in to change notification settings - Fork 194
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
#610 slicer requirements failure reproduction case #622
Conversation
@vaclavHala can you please sign the ECA? |
@vaclavHala do you want to try to provide a fix as you already debugged this? Maybe we should simply resolve all items together even in slicer mode? |
I have signed the ECA. As for the fix, I will try a few things though I have to say I'm not an experienced eclipse/tycho user so I do not know all the intentions behind the code. So It is possible I will "fix" it by breaking something else.
That would solve my immediate problem but I think the underlying problem would remain - the way I understand slicer is it should not fail even if some requirements are completely missing (not just in different location as is my case) as opposed to planner. This is what Location wizard has to say about planner/slicer directly in eclipse |
Correct so maybe we are calling the resolver in a wrong way here... just give it a try, there are a lot of test that should cover most use cases. |
@laeubi please how do I write a test which verifies that some maven invocation actually fails with some expected error?
and for the last one I wanted to have verification like this
but the Obviously I can do this
but that is ugly and might catch some exception I'd actually want to make the test fail, like this one
|
Yeah but I don't know of a better way here. With any other error your second verification will most likely fail. |
Ok so I looked into it a bit more and the best way I found was to not treat warnings from Slicer as failure. Now behavior of the target resolution by tycho is consistent with what I see in the target editor of my eclipse when I open the four target files from the four test cases I added. |
Great, can you squash the both commits and make sure there are no unintentional changes? |
Sure I can do that. It seems however that there are tests in other projects (I only tried running the tycho-it before pushing) which explicitly assert the current behavior
Furthermore in
which seems to suggest the resolution should work the same way for planner and slicer, that makes me a bit confused |
I think it should never fail for WARNINGS (thats how PDE behaves) |
Ok, so should I try to modify the existing tests which expect the wrong behavior? I think it may be a relatively safe change as all builds using tycho which previously worked should still work and some which failed may now start to work, but I'd definitely need a go ahead on this from you or other maintainers. |
Yes please if the assert a warning that is wrong. We should still print warnings to the lo if possible and if you can change the test to assert the warning in the log that would be perfect.
Just go ahead as you said it should be safe to do so. |
I have pushed the updated tests. There were two things which I think still don't behave as they should but would require more serious modification which could actually lead to breaking builds for some tycho users so I just left a TODO and commented-out assertion in the affected tests |
It seems there is a conflict can you resolve it and maybe rebase/squash your change? |
make SlicerResolutionStrategy not consider warnings from slicer as failure to be consistent with eclipse update tests for target resolution to expect that slicer does not fail if dependencies are missing
39c2af8
to
6d432f5
Compare
No description provided.