-
Notifications
You must be signed in to change notification settings - Fork 125
Run GH verification build on Windows too #1163
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
Conversation
|
Can't we just disable automatic conversion of line-endings anyways? I'm not aware of any file where it would be relevant? |
For the CI we could do what is suggested int actions/checkout#135. But we should not do that for the repo in general, because if you only checkout linux-style line-endings on windows over the time most editors will mess that up. Therefore for local builds Tycho should be made smarter in that regard. |
Maybe we should the fix this "editors" (aka Eclipse) :-) |
Test Results 321 files +107 321 suites +107 28m 46s ⏱️ + 11m 45s For more details on these failures and errors, see this check. Results for commit d4d1e47. ± Comparison against base commit a4387fc. ♻️ This comment has been updated with latest results. |
0afc295 to
5094125
Compare
That will probably be a big task. But it is not only Eclipse. It is just every other 'text'-editor you can use. Windows notebap, Notepad++, etc. We can't 'fix' them all. And since CRLF simply is the default line-ending on Windows I'm not even sure it would be a real fix or would just cause more confusion. The root problem is the discrepancy in line-ending between Windows and POSIX OS. But I don't think we have the power to convince the Windows devs to change that (although it would solve many problems). :/ |
5094125 to
afce8bb
Compare
afce8bb to
d874848
Compare
|
@HannesWell can you give a status here? If there are only baseline issues, I think we should probabbly just merge this and then open a ticket at Tycho for every remaining issue to track progress. |
d874848 to
52e67b3
Compare
As far as I can tell, the main issue actions/upload-artifact#240 is still not resolved, but lets see what the build says. |
52e67b3 to
423c980
Compare
423c980 to
d072903
Compare
|
Current failure on Windows is Have not yet checked it, but if I'd have guess, I would say that the windows file sparators are not taken into account in the |
d072903 to
984ac14
Compare
It does not seem to use native seperators, and jar files should always use
as a pattern (would then be required in the tycho-baseline plugin as well)?!? |
|
@HannesWell do you think we should finish this one? I have adapted Tycho now since a while that it should handle line endings more graceful |
984ac14 to
79c2619
Compare
Looks like the ignored path is still not working. I remember to have looked into that at Tycho while ago but then I somehow was not able to reproduce that (although I'm on Windows). I'll look at that again. Nevertheless I think we should also apply your fix from P2's eclipse-equinox/p2#288 here, since I remember that we faced a similar issue. |
79c2619 to
1584e4f
Compare
1584e4f to
763dca4
Compare
763dca4 to
0d5aa7b
Compare
9de192d to
c07088a
Compare
c07088a to
a32efd5
Compare
846e98c to
59efe98
Compare
org.eclipse.m2e.rcptt.tests/pom.xml
Outdated
| <properties> | ||
| <product-extension>tar.gz</product-extension> | ||
| </properties> | ||
| <profiles> | ||
| <profile> | ||
| <id>windows</id> | ||
| <activation> | ||
| <os> | ||
| <family>windows</family> | ||
| </os> | ||
| </activation> | ||
| <properties> | ||
| <product-extension>zip</product-extension> | ||
| </properties> | ||
| </profile> | ||
| </profiles> |
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.
@ptziegler do you know a more elegant solution than this one to adapt the AUT to the different file-extensions used for the archives?
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.
I'm not aware of any way RCPTT can automatically detect the type of archive. Though I wonder if it would be less of a hassle to simply rewrite the test to use e.g. SWTBot...
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.
I think for our purpose it would be okay to always use tar.gz in all cases if it helps (we don't offer the products a user downloads where it would be a bit inconvenient).
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.
I'm not aware of any way RCPTT can automatically detect the type of archive. Though I wonder if it would be less of a hassle to simply rewrite the test to use e.g. SWTBot...
I have no clue about this. I have neither worked with RCPTT nor with SWTBot yet, so I fully trust your assessment on this topic.
I think for our purpose it would be okay to always use
tar.gzin all cases if it helps (we don't offer the products a user downloads where it would be a bit inconvenient).
Yes I thought about this too, but was hoping there might be a more elegant solution.
But lets to it this way for now.
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.
I have no clue about this. I have neither worked with RCPTT nor with SWTBot yet, so I fully trust your assessment on this topic.
The advantage of SWTBot is that it's executed via JUnit, so you don't really have to deal with file extensions, let alone the assembled product.
|
Finally. |
59efe98 to
d4d1e47
Compare
|
I have checked the tests failing on Windows and they are either not reproducible or not easy to fix. |
Follow up of #1081 to enable verification builds for Windows once actions/upload-artifact#240 is resolved.
Once eclipse-tycho/tycho#1891 is resolved disabling the tycho-baseline for Windows should also not be necessary anymore.