Issue #11816: Added windows cmd script for git-diff validation#13696
Conversation
1b02881 to
b3d1666
Compare
romani
left a comment
There was a problem hiding this comment.
For testing , create second commit for same PR where you remove any ord at
It should trigger git diff after
mvn test
Items to improve:
b3d1666 to
45b3c57
Compare
Done |
|
CI does not like your update https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/47962839 please show textual copy of terminal output from your local to show how it works, you can change any file you want (without commit) and run a script. Two outputs are required with error and without error. Please also show that in case of diff script return error code to let CI fail. |
aa0bb09 to
043454b
Compare
I am trying out something. If it doesn't work. I will do as per your suggestion |
328c45a to
53fb91f
Compare
|
@romani. This is the output you asked for. |
22fb982 to
557833b
Compare
|
https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/47995477/job/k9s9pby4sq58vbfl#L339 lets improve error message to make it clear for any new contributor on what is wrong and what should be fixed. please make it something like this: |
Sure. On it. Will be pushing changes soon! |
4d3b72d to
88b382e
Compare
There was a problem hiding this comment.
it should be failed on first job - https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/47997876/job/d8kr55f48af3um3j#L344 , but it is not failed. it is not validation that is not chaning files - all good.
Items
fdac749 to
044e832
Compare
@romani Have a look. I made some changes and now its failing in appveyor. Kindly check if it meets the expectations. |
|
https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/47998600/job/32id656n29ij6ip3#L1862 this is supper scary failure that is hard to understand even for me. can we avoid this warning on line ends? |
Actually, these warnings are generated because the mvn build OR git is somehow modifying the EOF characters from CRLF to LF. I am not sure, how to handle these warnings as of now. But I feel that something similar to issue #8884 is happening here! If you can provide me some hints and clues. I might try them out! |
147da08 to
3a36615
Compare
8c39cfe to
a0d7c33
Compare
|
Done |
|
@kalpadiptyaroy, please remove second commit and rebase, we are very close to finish line. |
a0d7c33 to
d9e9461
Compare
|
Hmm, we still have problems with line endings Did we missed something ? |
|
@romani - Yes, we did miss! I debugged the entire process once again and the findings are following. See the XdocTemplateSink class calls the Going into Now the So final conclusion is we should have overriden |
|
Also, I am quite surprised that Apache Doxia is only using Now we have to come to concrete decision. Since we are left with 2 ways.
Let me know your thoughts! I know option 1 is the easiest as of now - but still other maintainers' opinion also matters! |
|
Issue is reopened on our side. We can share feedback at https://issues.apache.org/jira/browse/DOXIA-707 for them to improve. |
Cool |
|
All CIs are green, confirmed. Please remove commit. |
5c674df to
937f27f
Compare
|
Appveyor Test is passed. We are good to merge. Only closed issue reference check has failed. I don't know why. |
1e42650 to
284bd1d
Compare
|
@rnveach , please finalize review |
| ) | ||
|
|
||
| if "%OPTION%" == "git_diff" ( | ||
| for /f "delims=" %%a in ('git status ^| findstr /c:"Changes not staged"') do set output=%%a |
There was a problem hiding this comment.
Just pointing out that this command relies on the english locale.
There was a problem hiding this comment.
So is there any locale compliance that I haven't complied with?
I have tried to keep it at par with
https://github.com/checkstyle/checkstyle/blob/master/.ci/validation.sh#L1078-L1086
There was a problem hiding this comment.
We have a lot of scripts that rely on English locale. We can presume for now that CI will be English only for next few years for sure
There was a problem hiding this comment.
Ok. Let's merge then.
|
@kalpadiptyaroy thanks for all your work on this, it is a big win for windows users. |
Welcome Nick. This appreciation is a great motivation for me. |
Issue #11816: Added cmd script for git-diff validation for windows environment