Skip to content

Enable sonarcloud scanning and coverage - #663

Merged
phil-davis merged 1 commit into
masterfrom
enable-sonarcloud
Oct 9, 2020
Merged

phil-davis merged 1 commit into
masterfrom
enable-sonarcloud

Conversation

@micbar

@micbar micbar commented Oct 7, 2020 •

Copy link
Copy Markdown
Contributor

Description

Enable Sonarcloud Scanning

@phil-davis It shows ~18% oc coverage. codacy shows more than 50% ?

I cannot figure that out.

@micbar
micbar force-pushed the enable-sonarcloud branch 9 times, most recently from 85b5b17 to 4a048ef Compare October 8, 2020 08:41
@micbar micbar changed the title [WIP] Enable sonarcloud scanning and coverage Enable sonarcloud scanning and coverage Oct 8, 2020
@micbar
micbar requested a review from phil-davis October 8, 2020 09:56
@phil-davis

Copy link
Copy Markdown
Contributor

https://drone.owncloud.com/owncloud/ocis/425/13/6

INFO: Sensor Go Cover sensor for Go coverage [go]
INFO: Load coverage report from '/drone/src/coverage/store_coverage.out'
ERROR: Error parsing coverage info for file /drone/src/coverage/store_coverage.out: Invalid go coverage, expect 'mode:' on the first line.
INFO: Load coverage report from '/drone/src/coverage/ocis-phoenix_coverage.out'
ERROR: Error parsing coverage info for file /drone/src/coverage/ocis-phoenix_coverage.out: Invalid go coverage, expect 'mode:' on the first line.
INFO: Load coverage report from '/drone/src/coverage/accounts_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/ocs_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/storage_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/settings_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/proxy_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/thumbnails_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/ocis-pkg_coverage.out'
INFO: Load coverage report from '/drone/src/coverage/glauth_coverage.out'
ERROR: Error parsing coverage info for file /drone/src/coverage/glauth_coverage.out: Invalid go coverage, expect 'mode:' on the first line.
INFO: Load coverage report from '/drone/src/coverage/webdav_coverage.out'
ERROR: Error parsing coverage info for file /drone/src/coverage/webdav_coverage.out: Invalid go coverage, expect 'mode:' on the first line.
INFO: Load coverage report from '/drone/src/coverage/konnectd_coverage.out'
ERROR: Error parsing coverage info for file /drone/src/coverage/konnectd_coverage.out: Invalid go coverage, expect 'mode:' on the first line.
WARN: File 'github.com/owncloud/ocis/accounts/pkg/assets/embed.go' is not included in the project, ignoring coverage
INFO: Sensor Go Cover sensor for Go coverage [go] (done) | time=332ms

I think the messages about Invalid go coverage, expect 'mode:' on the first line are because those extensions do not have any tests, and so the *_coverage.out is a completely empty file.

The overall coverage etc still seems to get reported - so it is not a fatal error.

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine and has produced SonarCloud data.

The actual coverage is quite low - because it is based on "unit" tests. Actually at the moment most of the coverage is by running the core API end-to-end test suite, and we don't have a way to collect coverage stats while that runs.

Comment thread .drone.star Resolved
Comment thread .drone.star Resolved
@micbar
micbar force-pushed the enable-sonarcloud branch from 4a048ef to 11fd4ed Compare October 8, 2020 15:38
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2020

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@phil-davis
phil-davis merged commit 674b58d into master Oct 9, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the enable-sonarcloud branch October 9, 2020 03:05
ownclouders pushed a commit that referenced this pull request Oct 9, 2020
Merge: d46d69e 11fd4ed
Author: Phil Davis <[email protected]>
Date:   Fri Oct 9 08:50:30 2020 +0545

    Merge pull request #663 from owncloud/enable-sonarcloud

    Enable sonarcloud scanning and coverage
@phil-davis

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants