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

Enable code coverage for system tests #970

Merged
merged 1 commit into from Apr 26, 2019

Conversation

FilipB
Copy link
Contributor

@FilipB FilipB commented Apr 3, 2019

** Describe the change **

This commit adds possibility to build kiali which can produce code coverage report even for system tests which run against kiali deployed in OpenShift. Note this does not do anything for code coverage of unit tests.

@rhqci
Copy link

rhqci commented Apr 3, 2019

Jenkins CI: kiali-core-pr-e2e-test #793

  • ✔️ run-kiali-e2e-tests #[1604]

@FilipB FilipB force-pushed the system-tests-code-coverage branch from bd45ae2 to de63e1b Compare April 3, 2019 12:21
@rhqci
Copy link

rhqci commented Apr 3, 2019

Jenkins CI: kiali-core-pr-e2e-test #795

  • ✔️ run-kiali-e2e-tests #[1606]

@lucasponce
Copy link
Contributor

cc @gbaufake

@FilipB
Copy link
Contributor Author

FilipB commented Apr 5, 2019

Do not merge, waiting for changes from #974

@FilipB
Copy link
Contributor Author

FilipB commented Apr 5, 2019

kialiqeci

@rhqci
Copy link

rhqci commented Apr 5, 2019

Jenkins CI: kiali-core-pr-e2e-test #843

  • ✔️ run-kiali-e2e-tests #[1664]

@FilipB FilipB force-pushed the system-tests-code-coverage branch 2 times, most recently from 7366e51 to 1c885f7 Compare April 15, 2019 12:22
@rhqci
Copy link

rhqci commented Apr 15, 2019

Jenkins CI: kiali-core-pr-e2e-test #912

  • ✔️ run-kiali-e2e-tests #[1715]

@FilipB
Copy link
Contributor Author

FilipB commented Apr 15, 2019

kialiqeci

@rhqci
Copy link

rhqci commented Apr 15, 2019

Jenkins CI: kiali-core-pr-e2e-test #913

@FilipB
Copy link
Contributor Author

FilipB commented Apr 15, 2019

kialiqeci

@rhqci
Copy link

rhqci commented Apr 15, 2019

Jenkins CI: kiali-core-pr-e2e-test #915

  • ✔️ run-kiali-e2e-tests #[1720]

@FilipB
Copy link
Contributor Author

FilipB commented Apr 15, 2019

kialiqeci

@rhqci
Copy link

rhqci commented Apr 15, 2019

Jenkins CI: kiali-core-pr-e2e-test #916

  • ✔️ run-kiali-e2e-tests #[1721]

@FilipB
Copy link
Contributor Author

FilipB commented Apr 15, 2019

This is ready to be merged. @gbaufake @jmazzitelli could you please review?

Copy link
Collaborator

@jmazzitelli jmazzitelli left a comment

Choose a reason for hiding this comment

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

we need to figure out a better way to do this. All of this just to inject code-coverage? Not only that, but community members don't even have access to our coverage tests - its all internal to our jenkins no? So they don't even get any benefit.

We need to figure out a better way to do this - extract this out of the user-facing pieces and put it into independent test components.

operator/deploy/deploy-kiali-operator.sh Outdated Show resolved Hide resolved
operator/deploy/kiali/kiali_cr.yaml Outdated Show resolved Hide resolved
@jmazzitelli
Copy link
Collaborator

See #1032 for my recommendation on how we should do something like this.

This commit adds possibility to build kiali which can
produce code coverage report even for system tests which run against
kiali deployed in OpenShift. Note this does not do anything
for code coverage of unit tests.
@FilipB FilipB force-pushed the system-tests-code-coverage branch from 1c885f7 to 892cfba Compare April 26, 2019 09:57
@rhqci
Copy link

rhqci commented Apr 26, 2019

Jenkins CI: kiali-core-pr-e2e-test #986

  • ✔️ run-kiali-e2e-tests #[1800]

@FilipB
Copy link
Contributor Author

FilipB commented Apr 26, 2019

@jmazzitelli This PR now contains only minimal changes. I will keep deployment logic in our internal scripts. If we don't want to push anything related to code coverage of system tests to kiali repo that's fine too. I'm always building kiali from sources so I can include main_test.go file while building. In that case we can close this PR.
If you are ok with main_test.go being part of kiali repo, please merge so we can continue with other tasks related to reporting. Thank you.

@jmazzitelli jmazzitelli merged commit e3772de into kiali:master Apr 26, 2019
@ghost ghost added this to the v0.20.0 milestone Apr 26, 2019
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.

None yet

4 participants