-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added code coverage using mysql #29410
Conversation
codecov shows that mysql code paths are touched - nice - https://codecov.io/gh/owncloud/core/pull/29410/changes Adding --group DB would give us some speed up here as well ... |
I've added it in the last commit, is that ok? |
tests/drone/test-coverage.sh
Outdated
if [[ "${DB_TYPE}" == "none" ]]; then | ||
GROUP="--exclude-group DB" | ||
else | ||
GROUP="--group DB" |
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.
now sqlite is executed with --group DB as well - DB_TYPE none is missing
Some failures in drone after last commit: 1) Test\Encryption\EncryptionWrapperTest::testWrapStorage with data set #0 (true, array())
2) Test\Files\External\PersonalMountTest::testFindByStorageId
3) Test\Files\Mount\ManagerTest::testFind
4) Test\Files\Mount\ManagerTest::testLong
|
I'd say there are some annotations missing then |
Should I add * @group DB to all those tests? |
@DeepDiver1975 Can this be merged? |
no - the code coverage report is 💩 - the expectation is that the coverage increases when adding mysql - not to decrease |
.drone.yml
Outdated
@@ -80,14 +80,27 @@ pipeline: | |||
matrix: | |||
TEST_SUITE: coverage | |||
|
|||
codecov: | |||
codecov_sqlite: |
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.
one step should be enough - the plugin can take multiple files
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.
or even with wild cards
dc45fb1
to
e1140dc
Compare
Hmm flags appear in the report, but the github check doesn't split them Do we need a different approach here? Making steps more explicit separating databases like in 794e529 ? |
e5fc237
to
2badd16
Compare
Removed annotations in unit tests. |
@SergioBertolinSG please enable debug - https://github.com/robertstettner/drone-codecov#configuration |
Codecov Report
@@ Coverage Diff @@
## master #29410 +/- ##
============================================
- Coverage 61.39% 59.8% -1.59%
- Complexity 17472 17477 +5
============================================
Files 1044 1044
Lines 57695 59249 +1554
============================================
+ Hits 35419 35432 +13
- Misses 22276 23817 +1541
Continue to review full report at Codecov.
|
Codecov upload has issues afaik. See the logs. Master Branch is used. |
Yes, adding it here for reference:
Here https://github.com/robertstettner/drone-codecov/blob/master/entrypoint.sh#L44-L45 the plugin uses DRONE_BRANCH. In drone docs it says http://docs.drone.io/environment-reference/ But there is also a variable called DRONE_COMMIT_BRANCH there. Not sure if it is the same. |
@tboerger is there a way to see the actual env vars? THX |
d694bef
to
1ff8d93
Compare
Both DRONE_BRANCH and DRONE_COMMIT_BRANCH are the same : master. This variable contains the current branch name:
|
1ff8d93
to
2347ac8
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently running using mysql 5.7, after #29409 is merged it will run agains mysql 5.5.