-
Notifications
You must be signed in to change notification settings - Fork 53
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
Hack for io.jenkins.configuration-as-code:test-harness #276
Conversation
Need to get this updated, and then #299 verified in |
@jglick it seems there are some IT failures: https://ci.jenkins.io/job/jenkinsci-libraries/job/plugin-compat-tester/job/PR-276/9/. I recently fixed them on |
|
Still
|
Hmm so ConfigurationAsCode.get().configure(ConfigAsCodeTest.class.getResource("configuration-as-code.yml").toString());
// assertions about ċonfig… Apparently this patch breaks that mode. |
weird, could either patch that here or just switch it to use the test harness, nothing in bom hits this case at least |
Trying to reproduce in a more development-friendly mode than the Docker IT, so far without success (running tests normally): mvn -f plugins-compat-tester-cli -Dexec.vmArgs= '-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}' '-Dexec.appArgs=-overridenPlugins io.jenkins:configuration-as-code=1.20 -includePlugins artifact-manager-s3 -reportFile /tmp/pct/report.xml -workDirectory /tmp/pct' -Dexec.mainClass=org.jenkins.tools.test.PluginCompatTesterCli -Dexec.executable=$(which java) exec:exec This does <dependency>
<groupId>io.jenkins</groupId>
<artifactId>configuration-as-code</artifactId>
<scope>test</scope>
+ <version>1.20</version>
</dependency> as expected. However it also does this, which is clearly wrong: + <dependency>
+ <groupId>io.jenkins</groupId>
+ <artifactId>configuration-as-code</artifactId>
+ <version>1.20</version>
+ </dependency> And this (twice!): + <dependency>
+ <groupId>io.jenkins.configuration-as-code</groupId>
+ <artifactId>test-harness</artifactId>
+ <version>1.53</version>
+ <scope>test</scope>
+ </dependency> PCT is such a train wreck… |
Even without my patch, PCT is wrong: $ mvn dependency:tree|fgrep configuration-as-code
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: io.jenkins:configuration-as-code:jar -> duplicate declaration of version 1.20 @ line 324, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: io.jenkins:configuration-as-code:jar -> version 1.20 vs 1.53 @ line 413, column 17
[INFO] +- io.jenkins:configuration-as-code:jar:1.53:test since besides adding the + <dependency>
+ <groupId>io.jenkins</groupId>
+ <artifactId>configuration-as-code</artifactId>
+ <version>1.20</version>
+ </dependency>
+ <dependency>
+ <groupId>io.jenkins</groupId>
+ <artifactId>configuration-as-code</artifactId>
+ <version>1.53</version>
+ <scope>test</scope>
+ </dependency> |
Will try merging with |
It's already merged |
Oh right, I get thrown off guard when other people push to my PRs… |
Still true after merging |
@timja do you even remember at this point what fails in |
no this was a long time ago |
Rather than merging in #341, it may be cleaner to file a separate draft PR combining the two just to get an incremental deployment. |
Possibly, does this version actually work though or is there stuff from master that needs backing out in this PR? |
Uh…not sure. Should be tracked in jenkinsci/bom#657. |
I’ll try it out tomorrow unless you happen to have time :) |
causes bom to fail in injected test which we normally ignore failures in bisect shows that's what is causing the failure atm in jenkinsci/bom#863 |
Presumed obsolete after jenkinsci/bom#1336. |
Same as #261 but with whitespace cleaned up. Apparently needed for
bom
though I do not know the details.If we at least get an incremental deployment from this, #261 and #275 could be closed.