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

add ci-reporting, errorprone profile and record static code analysis #3

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

olamy
Copy link
Member

@olamy olamy commented Feb 26, 2022

do not maven.test.failure.ignore per default as we do not even recommend using it (https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore)

@olamy olamy changed the title running per default on 2 last release series should be enough default run on Jenkins should be faster (only 2 last series of maven releases, site with only one jdk) Feb 26, 2022
// def failFast = params.containsKey('failFast') ? params.failFast : true
// Just temporarily
def failFast = false;
def siteJdks = params.containsKey('siteJdk') ? params.siteJdk : ['8','17']
def siteMvn = params.containsKey('siteMvn') ? params.siteMvn : '3.6.x'
def siteJdks = params.containsKey('siteJdk') ? params.siteJdk : ['8']
Copy link
Member

Choose a reason for hiding this comment

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

should be at minimum 11, there are difference for javadoc

Copy link
Member Author

Choose a reason for hiding this comment

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

uhm not sure as javadoc can fail with jdk 1.8 and not 11. and the other way around :)
as we are 1.8 for most of the plugins etc maybe we need to ensure it works with this at least (as release folks might use 1.8 to build their release.

]
if (!first) {
cmd += '-Dfindbugs.skip=true'
// } else { // Requires authorization on SonarQube first
// cmd += 'sonar:sonar'
}
if (Integer.parseInt(jdk) >= 11 && !taskContext['ciReportingRunned']) {
cmd += "-Pci-reporting -Perrorprone"
Copy link
Member

Choose a reason for hiding this comment

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

ci-reporting , errorprone are is some new profiles, I didn't see those before

Copy link
Member Author

Choose a reason for hiding this comment

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

test branch ci-reporting with maven-compiler-plugin

recordIssues id: "${os}-jdk${jdk}", name: "Static Analysis", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), spotBugs(), pmdParser(), errorProne()]
jacoco inclusionPattern: '**/org/apache/maven/**/*.class',
exclusionPattern: '',
execPattern: '**/target/jacoco.exec',
Copy link
Member

Choose a reason for hiding this comment

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

jacoco-it.exec should also be included

Copy link
Member Author

Choose a reason for hiding this comment

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

good point to include IT test in coverage.
I have setup this to be in the same file with apache/maven-compiler-plugin@7e83e0d and covered lines increased from build #16 here https://ci-maven.apache.org/job/Maven/job/maven-compiler-plugin-test-olamy/job/ci-reporting/

@olamy olamy changed the title default run on Jenkins should be faster (only 2 last series of maven releases, site with only one jdk) add ci-reporting, errorprone profile and record static code analysis Mar 6, 2022
@olamy olamy marked this pull request as draft March 6, 2022 23:51
@olamy olamy closed this Mar 12, 2022
@olamy olamy deleted the reduce-to-only-2-last-mvn-series branch March 12, 2022 04:19
@olamy olamy restored the reduce-to-only-2-last-mvn-series branch March 12, 2022 04:34
@olamy olamy reopened this Mar 12, 2022
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