-
Notifications
You must be signed in to change notification settings - Fork 52
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
Build passes even after PCT fails to run on a plugin #895
Comments
Reproducible as of 129e836 via PLUGINS=script-security LINE=weekly bash local-test.sh (note not setting I suppose this is a bug in PCT. Lines 38 to 49 in 129e836
pct-report.xml does not claim that PCT failed at all:
<status>SUCCESS</status>
<errorMessage>Message : [mvn, --show-version, --batch-mode, -ntp, --define=failIfNoTests=false, --define=forkCount=.75C, --define=jth.jenkins-war.path=…bom/target/local-test/megawar.war, --define=surefire.excludesFile=…bom/target/local-test/excludes.txt, --define=types=failsafe,surefire, --define=forkCount=.75C, hpi:resolve-test-dependencies, hpi:test-hpl, surefire:test, failsafe:integration-test, -Djenkins.version=2.335, -Denforcer.skip=true] failed in …bom/target/local-test/pct-work/script-security
Executed plugins : [maven-hpi-plugin, maven-hpi-plugin, maven-compiler-plugin]
Stacktraces :
</errorMessage> Cannot tell what the root error is in Surefire since PCT is not passing |
(jenkinsci/script-security-plugin#387 is supposed to fix the plugin incompatibility, but the point here is that PCT in |
jenkinsci/plugin-compat-tester#347 makes the problem clearer from the build log. Maybe also fixes this problem? Seems to produce <status>INTERNAL_ERROR</status> though I am not sure how |
Have some proposed fixes in PCT. If those are both accepted, need to merge trunk into jenkinsci/plugin-compat-tester#345 and check that update here to see if it correctly catches errors such as that from |
Why is this filed under |
Possibly, pending evaluation that the fault does not lie in Lines 29 to 47 in 3e42bee
|
At minimum Line 47 in 4989785
failsafe-reports/TEST-InjectedTest.xml .
|
PLUGINS=mailer TEST=InjectedTest bash local-test.sh seems to leave behind no indication of a failure after #1160 despite output clearly showing that PCT generated an invalid POM that could not be compiled, much less tested:
PCT seems to have been at fault in this case: <status>SUCCESS</status>
<compatTestExecutedOn>2022-07-19 12:56:20.64 UTC</compatTestExecutedOn>
<errorMessage>Message : [mvn, --show-version, --batch-mode, -ntp, --define=failIfNoTests=false, --define=forkCount=.75C, --define=jth.jenkins-war.path=…/target/local-test/megawar.war, --define=surefire.excludesFile=…/target/local-test/excludes.txt, --define=test=InjectedTest, --define=types=failsafe,surefire, --define=forkCount=.75C, hpi:resolve-test-dependencies, hpi:test-hpl, surefire:test, failsafe:integration-test, -Djenkins.version=2.359, -Denforcer.skip=true] failed in …/target/local-test/pct-work/mailer
Executed plugins : [maven-compiler-plugin]
Stacktraces :
</errorMessage>
<warningMessages/> To do: compare behavior under #1059. |
Same error for <version>2.2</version> |
Was unable to confirm that this was fixed, insofar as neither of the previously reported examples produce an error at all now. Good enough. |
This time, closing the issue was the expected behavior. :-) |
https://github.com/jenkinsci/bom/pull/893/checks?check_run_id=5266351579 did not run any tests. https://ci.jenkins.io/job/Tools/job/bom/job/PR-893/1/execution/node/5973/log/ “passed” yet
The text was updated successfully, but these errors were encountered: