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

Update ci to include code coverage after #1215 #1241

Merged
merged 30 commits into from Jan 11, 2020
Merged

Update ci to include code coverage after #1215 #1241

merged 30 commits into from Jan 11, 2020

Conversation

jetersen
Copy link
Member

After #1215 the code coverage was not properly calculated.
Let's have jacoco aggregate the report :)

I'd like to use codecov to report diff coverage.

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

@jetersen jetersen added the chore a PR that adds to maintenance - used by Release Drafter label Dec 27, 2019
report/pom.xml Outdated Show resolved Hide resolved
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

I am not 100% sure it is justified, but why not? :)

@jetersen
Copy link
Member Author

@jetersen jetersen requested a review from timja January 10, 2020 17:25
Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
report/pom.xml Outdated Show resolved Hide resolved
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Not blocking it

@jetersen jetersen changed the title aggregate code coverage for JCasC update ci to include code coverage for JCasC Jan 10, 2020
@jetersen jetersen changed the title update ci to include code coverage for JCasC update ci to include code coverage after #1215 Jan 10, 2020
@jetersen
Copy link
Member Author

jetersen commented Jan 10, 2020

Dropped the aggregating report.

GitHub action does not yet have an API, allowing codecov to whitelist github actions coverage reports ie. going tokenless.

So I changed travis to bionic and build with JDK 11 for faster builds.

@jetersen
Copy link
Member Author

Hmm test coverage is still not properly calculated.
We need the aggregation

@codecov
Copy link

codecov bot commented Jan 10, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@af878f8). Click here to learn what that means.
The diff coverage is 73.2%.

@@            Coverage Diff            @@
##             master    #1241   +/-   ##
=========================================
  Coverage          ?   78.96%           
  Complexity        ?      780           
=========================================
  Files             ?       65           
  Lines             ?     2301           
  Branches          ?      321           
=========================================
  Hits              ?     1817           
  Misses            ?      383           
  Partials          ?      101
Impacted Files Coverage Δ Complexity Δ
...l/configurators/HeteroDescribableConfigurator.java 85.98% <ø> (ø) 47 <0> (?)
...ain/java/io/jenkins/plugins/casc/Configurator.java 71.87% <0%> (ø) 16 <0> (?)
...c/main/java/io/jenkins/plugins/casc/Attribute.java 68.81% <13.33%> (ø) 75 <2> (?)
.../io/jenkins/plugins/casc/ConfigurationContext.java 83.33% <25%> (ø) 16 <0> (?)
...java/io/jenkins/plugins/casc/SchemaGeneration.java 93.97% <97.27%> (ø) 48 <27> (?)

@jetersen
Copy link
Member Author

okay plugin-pom's enable-jacoco does not behave well with multi module

@jetersen
Copy link
Member Author

lots of derping around :D

@timja timja changed the title update ci to include code coverage after #1215 Update ci to include code coverage after #1215 Jan 11, 2020
@timja timja merged commit abfc695 into jenkinsci:master Jan 11, 2020
@jetersen jetersen deleted the fix/aggregateReport branch January 11, 2020 13:44
LinuxSuRen pushed a commit to alauda/configuration-as-code-plugin that referenced this pull request Feb 21, 2020
* Add support to backup and restore automatically

* Fix the potential output resource leak

* Add configs about deploy into alauda update-center

* Set alauda as the main branch

* Add sonarqube properties file

* Fix the potentital issues

* Add a merge strategy extension point for the YAML config (#1)

* Add YAML merge strategy

* Add a new merge strategy

* Remove override merge strategy

* Clean the unused code lines

* Clean the unused imports

* Add test cases for merge strategy

* Fix the wrong test cases

* Take merge strategy name everytime

* Give the default strategy a more readable name

* Validate top README with the Integrations tests (jenkinsci#1229)

* Fix the compilation error caused by merge strategy

* Fix issues which found by spotbugs

* Remove unused imports

* Move profiles from pom.xml into settings file

* Remove empty line

* rename the shared-library

* Schema Generation for nested yml configurations (jenkinsci#1027)

* Trying to diagnose some flaky tests (jenkinsci#1243)

* Update ci to include code coverage after jenkinsci#1215 (jenkinsci#1241)

Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>

* Checkstyle ignore release.properties (jenkinsci#1245)

* [maven-release-plugin] prepare release configuration-as-code-1.35

* [maven-release-plugin] prepare for next development iteration

* Bump jackson.version from 2.10.1 to 2.10.2

Bumps `jackson.version` from 2.10.1 to 2.10.2.

Updates `jackson-databind` from 2.10.1 to 2.10.2
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `jackson-dataformat-yaml` from 2.10.1 to 2.10.2
- [Release notes](https://github.com/FasterXML/jackson-dataformats-text/releases)
- [Commits](FasterXML/jackson-dataformats-text@jackson-dataformats-text-2.10.1...jackson-dataformats-text-2.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Correct spelling of hpi.pluginChangelogUrl tag (jenkinsci#1248)

* Automatically request code reviews from all JCasC plugin developers (jenkinsci#1249)

* [Security] Bump checkstyle from 8.26 to 8.29

Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 8.26 to 8.29. **This update includes a security fix.**
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](checkstyle/checkstyle@checkstyle-8.26...checkstyle-8.29)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* It has been renamed to `master.componentName` (jenkinsci#1256)

Co-authored-by: Tim Jacomb <t.jacomb@kainos.com>

* Fix the version specification for Jenkins 2.199 (jenkinsci#1268)

* Added example for credentials certificate (jenkinsci#1270)

* Use the latest shared-library branch

* Update test to match latest plugin version (jenkinsci#1273)

* Update the integration test for active-directory (jenkinsci#1274)

* Add integration test for pipeline-model-definition (jenkinsci#1276)

* Fix the error when no casc user dir (#5)

* Add missing of mode in the context

* Use the same version of jackson-core

* Use the same version of jackson-core

* Use 2.8 as the major version

* Fix the wrong parent id for the plugin releasing

* Move the user config into a backup dir

* Run build under java pod

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
Co-authored-by: Sladyn <sladynnunes98@gmail.com>
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-authored-by: Tim Jacomb <t.jacomb@kainos.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Co-authored-by: Jhon Mike <jhon.msdev@gmail.com>
Co-authored-by: Dawid Gosławski <50369002+dg-nvm@users.noreply.github.com>
Co-authored-by: choeffer <33625292+choeffer@users.noreply.github.com>
Co-authored-by: Francisco Fernández <31063239+fcojfernandez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore a PR that adds to maintenance - used by Release Drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants