Skip to content
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

remove deprecated fromIOFile #631

Merged
merged 1 commit into from
Sep 16, 2015
Merged

remove deprecated fromIOFile #631

merged 1 commit into from
Sep 16, 2015

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Sep 12, 2015

@guwirth
Copy link
Collaborator Author

guwirth commented Sep 13, 2015

@jmecosta & @Bertk: PR is ready to review and test. Are there any changes in performance on your environment?

@jmecosta
Copy link
Member

I will try during this week and report back

@guwirth
Copy link
Collaborator Author

guwirth commented Sep 14, 2015

Did a comparison between SQ 3.7.4 / CXX plugin 0.9.1 and SQ 5.1.1 / CXX plugin 0.9.4 & this PR:
SQ 5.1.1 & this PR is between 30% and 200% faster.

@jmecosta
Copy link
Member

got 1 failed tests in the bullseye coverage test in windows, will comment and proceed with test in server

//@test
public void shoulParseTopLevelFiles() {

@guwirth
Copy link
Collaborator Author

guwirth commented Sep 14, 2015

@jmecosta Strange. Developing and testing only on Windows and it is working fine on my system?

@jmecosta
Copy link
Member

java 8?

@jmecosta
Copy link
Member

ok, so its because of this:

22:15:11.133 [main] INFO CxxPlugin - Added report 'D:\Development\SonarQube\cxx\sonar-cxx\sonar-cxx-plugin\target\test-classes\org\sonar\plugins\cxx\reports-project\coverage-reports\bullseye\bullseye-coverage-drive-letter-without-slash-win.xml' (parsed by: BullseyeParser) to the coverage data
22:15:13.879 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\anotherincludeattop.h'
22:15:13.892 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\test2\test2.c'
22:15:13.893 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\main.c'
22:15:13.895 [main] WARN CxxPlugin - Cannot find the file 'E:\Test\test.c', ignoring coverage measures

Test is capital, not totally sure why does it work there... using windows 10 btw

@guwirth
Copy link
Collaborator Author

guwirth commented Sep 14, 2015

Have to test this tomorrow again. But I think was only working on my system with capital drive letter? But no more sure... also don't know why drive letter is on some system upper case and on some lower case? Strange is also that DefaultFileSystem is not able to handle this?

Am 14.09.2015 um 21:16 schrieb Jorge Costa [email protected]:

ok, so its because of this:

22:15:11.133 [main] INFO CxxPlugin - Added report 'D:\Development\SonarQube\cxx\sonar-cxx\sonar-cxx-plugin\target\test-classes\org\sonar\plugins\cxx\reports-project\coverage-reports\bullseye\bullseye-coverage-drive-letter-without-slash-win.xml' (parsed by: BullseyeParser) to the coverage data
22:15:13.879 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\anotherincludeattop.h'
22:15:13.892 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\test2\test2.c'
22:15:13.893 [main] DEBUG CxxPlugin - Saving coverage measures for file 'E:\main.c'
22:15:13.895 [main] WARN CxxPlugin - Cannot find the file 'E:\Test\test.c', ignoring coverage measures

Test is capital


Reply to this email directly or view it on GitHub.

@jmecosta
Copy link
Member

nothing big for me found, time are almost the same as with previous versions

@guwirth
Copy link
Collaborator Author

guwirth commented Sep 15, 2015

@jmecosta Thanks for testing.

Will try to find a solution for the drive letter miracle an merge it then.

- close #629
- replace File.fromIOFile with FileSystem.inputFile
- replace org.sonar.api.resources.File with org.sonar.api.batch.fs.InputFile
- use org.sonar.api.batch.fs.internal.DefaultFileSystem in unit tests
- add addInputFile to TestUtils: all files listed in report files must be added to DefaultFileSystem
   - for reports with absolute paths there are two versions needed: one for Window and one for Linux
- close #611, close #600, close #625: add fix for https://jira.sonarsource.com/browse/SONAR-6792
@guwirth guwirth added this to the M 0.9.4 milestone Sep 16, 2015
@guwirth guwirth self-assigned this Sep 16, 2015
guwirth added a commit that referenced this pull request Sep 16, 2015
@guwirth guwirth merged commit 64bbf0a into SonarOpenCommunity:master Sep 16, 2015
@guwirth guwirth deleted the enhancement/629_remove_fromIOFile branch September 16, 2015 16:37
@guwirth guwirth mentioned this pull request Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants