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
Support plugin compatibility tester (PCT) #1327
Conversation
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.
Note also https://github.com/jenkinsci/plugin-compat-tester/blob/519c0913144424739f2223a1e9b252795eb55100/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/WarningsNGCheckoutHook.java + https://github.com/jenkinsci/plugin-compat-tester/blob/519c0913144424739f2223a1e9b252795eb55100/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/WarningsNGExecutionHook.java
Noted! |
Codecov Report
@@ Coverage Diff @@
## master #1327 +/- ##
=========================================
Coverage 79.78% 79.78%
Complexity 1448 1448
=========================================
Files 251 251
Lines 5611 5611
Branches 427 427
=========================================
Hits 4477 4477
Misses 983 983
Partials 151 151 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Seeing lots of this in tests:
This was fixed in https://github.com/jenkinsci/workflow-cps-plugin/releases/tag/2660.2664.v4c114e93f4c1 and released in https://github.com/jenkinsci/bom/releases/tag/1577.v63609d9cb_5dc. This will need a PR like jenkinsci/analysis-pom-plugin#532 to be merged and released, then adopted here. CC @uhafner |
I guess that was just a warning and not an error, since the build passed: https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/PR-1327/2/ Still didn't get an incremental, I will work on that. But I tested this locally and got the BOM build passing, so I think this is ready to merge and release from my perspective. |
I gave up on incrementalifying this highly non-standard plugin. |
ui-tests/pom.xml
Outdated
@@ -16,7 +16,7 @@ | |||
<name>UI Tests of Warnings Plugin</name> | |||
|
|||
<properties> | |||
<jenkins.version>2.361</jenkins.version> | |||
<jenkins.version>2.362</jenkins.version> |
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.
Sorry but we would like this for 2.361 😄 We want to do PCT testing of the next LTS release.
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.
So you need a single release with this version? My UI tests are typically running vs the latest Jenkins baseline.
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.
Not sure this matters—I think this module would be ignored by PCT anyway?
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.
Thank you, I'm not sure it matters either but a single release on 2.361 would be the safest option. I'll test this out in jenkinsci/bom#1384 once it's released (can't test before that due to lack of incremental).
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.
I think incrementals does not work with plugins that have UI tests. I also would assume that it is sufficient to use the plugin
submodule for the tests in PCT. For all my maven commands I am using cd plugin
before I invoke them.
# Conflicts: # ui-tests/pom.xml
Thanks! Could you post a comment when this is released? (Alas, GitHub does not issue a notification to a watcher of a PR when it first appears in a release tag.) |
Background
See jenkinsci/bom#1384 (comment).
Problem
When plugin compatibility tester (PCT) tests this plugin, it runs
mvn […] hpi:resolve-test-dependencies hpi:test-hpl surefire:test failsafe:integration-test failsafe:integration-test
, expecting all Jenkins plugins to havehpi:resolve-test-dependencies
andhpi:test-hpl
goals in all Maven modules. This plugin does not comply with the expectation, so PCT fails with:Solution
The parent POM layout of this plugin is highly non-standard and would benefit from being standardized. In the short term we simply add the
maven-hpi-plugin
to the two projects in the Maven multi-module build that do not already have it. This chases the PCT problem away.CC @uhafner