markus mohrhard 2018-10-26 - the document foundation · 2018-11-06 · cppcheck static analysis...

38
1 Data for LibreOffice developers Data for LibreOffice developerss Markus Mohrhard 2018-10-26

Upload: others

Post on 06-Mar-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

1Data for LibreOffice developers

Data for LibreOffice developerss

Markus Mohrhard2018-10-26

Page 2: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

2Data for LibreOffice developers

Topic

Huge projectA lot of data to make life of a developer easierWhere do I find these information?How do I use them?LimitationsIdeas

Page 3: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

3Data for LibreOffice developers

Current data

Page 4: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

4Data for LibreOffice developers

Devcentral

Devcentral.libreoffice.org

Page 5: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

5Data for LibreOffice developers

devcentral

Page 6: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

6Data for LibreOffice developers

devcentral

Links to many resources for developers

Work in progressNeeds more workNeeds a web developer

Bookmark this page!

Page 7: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

7Data for LibreOffice developers

gerrit

Gerrit.libreoffice.org

Page 8: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

8Data for LibreOffice developers

gerrit

Page 9: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

9Data for LibreOffice developers

gerrit

Same name for two thingsMain git repository

Contains nearly all TDF repositories

Review platformNo commit access => Push to reviewRelease branches, e.g. libreoffice-5-1

All open commits

Page 10: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

10Data for LibreOffice developers

jenkins

ci.libreoffice.org

Page 11: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

11Data for LibreOffice developers

jenkins

Page 12: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

12Data for LibreOffice developers

jenkins

All automated builds

Website with overview

Also contains gerrit verification builds

Logs for builds, ...

Page 13: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

13Data for LibreOffice developers

Tinderboxes

tinderbox.libreoffice.org

Page 14: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

14Data for LibreOffice developers

Tinderboxes

Page 15: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

15Data for LibreOffice developers

Tinderboxes

Part of the CI infrastructure

Build LibreOffice on different platform & configuration

Website + mail when broken

Page 16: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

16Data for LibreOffice developers

Coverity

Scan.coverity.com

Page 17: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

17Data for LibreOffice developers

Coverity

Page 18: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

18Data for LibreOffice developers

Coverity

Static analysis

Not hosted by TDF

Free for us, 2 runs a week

Mail to the developer list with new reports

~0 open issues

Page 19: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

19Data for LibreOffice developers

cppcheck

http://dev-builds.libreoffice.org/cppcheck_reports/master/

Page 20: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

20Data for LibreOffice developers

cppcheck

Page 21: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

21Data for LibreOffice developers

cppcheck

Static analysisOpen source toolRuns on a TDF server weeklyMail to developer list + websiteMany open issues

Many false positivesRead reports with care

Page 22: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

22Data for LibreOffice developers

Performance testing

perf.libreoffice.org

Page 23: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

23Data for LibreOffice developers

Perf.libreoffice.org

Page 24: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

24Data for LibreOffice developers

Perf.libreoffice.org

Automated performance testingRun on TDF CI infrastructureNo mails, only websiteSmall fluctuations in runs

Only look at huge spikesOwn code, always needs new web developers

Talk to Norbert or me

Page 25: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

25Data for LibreOffice developers

Crash testing & Validation testing

dev-builds.libreoffice.org/crashtest/

Page 26: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

26Data for LibreOffice developers

Crash testing & Validation testing

Page 27: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

27Data for LibreOffice developers

Crash testing & Validation testing

Run on huge TDF serverRuns every few daysMail to developer list and archive on dev-www.libreoffice.org

Only csv files and log files~0 open crashes~30k open validation errors

Many duplicatesAllows to add assert to import/export code and see which docs hit it

Page 28: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

28Data for LibreOffice developers

Lcov

Lcov.libreoffice.org

Page 29: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

29Data for LibreOffice developers

lcov

Page 30: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

30Data for LibreOffice developers

lcov

Generates reports about test coverageRuns weekly on TDF serverMail to developer list + websiteCurrently brokenUseful if you want to add tests

Check which features are not covered yet

Page 31: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

31Data for LibreOffice developers

UBSAN

ci.libreoffice.org/job/lo_ubsan/

Page 32: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

32Data for LibreOffice developers

UBSAN

Page 33: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

33Data for LibreOffice developers

UBSAN

Undefined Behavior SanitizerRuns as part of CIOnly jenkins, no mailsFinds coding errorsMonitored by Stephan Bergmann

Similar to Asan (Address Sanitizer) and Lsan (Leak Sanitizer)Find other coding errors

Page 34: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

1LibreOffice Presentation Template (Community)

Crash reporter

http://crashreport.libreoffice.org/stats/

Page 35: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

2LibreOffice Presentation Template (Community)

Crash reporter

Page 36: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

3LibreOffice Presentation Template (Community)

Crash report

Page 37: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

4LibreOffice Presentation Template (Community)

Crash report

Collects report of crashed LibreOffice instances from usersAggregates the reports based on backtracesReferenced to and from bug reports

If you like to improve your detective skills and fix crashes

Page 38: Markus Mohrhard 2018-10-26 - The Document Foundation · 2018-11-06 · cppcheck Static analysis Open source tool Runs on a TDF server weekly Mail to developer list + website Many

34Data for LibreOffice developers

All text and image content in this document is licensed under the Creative Commons Attribution-Share Alike 3.0 License (unless otherwise specified). "LibreOffice" and "The Document Foundation" are registered trademarks. Their respective logos and icons are subject to international copyright laws. The use of these therefore is subject to the trademark policy.

Thank you …

… for listening!… for supporting LibreOffice!