-
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 #344
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.
I personally prefer to have a hook instead of adding special cases to default logic but I do not feel strongly enough about it.
@@ -1016,6 +1016,12 @@ private void addSplitPluginDependencies(String thisPlugin, MavenRunner.Config mc | |||
toAddTest = difference(pluginDeps, toAddTest); | |||
toAddTest = difference(toAdd, toAddTest); | |||
|
|||
if (toReplaceTest.containsKey("configuration-as-code")) { |
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.
Given this is a special case, wouldn't it be better to use a hook instead of hacking the default logic? TBH I am missing the context so whatever you believe is better. The hook approach means easier code but at the same time is harder to follow what is happening unless you are aware of the PCT hook mechanism. No feeling strongly to push for it if you prefer this way
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.
unsure, this isn't really for merge it's a continuation of #276
Which just has 7269bed applied on top of it
Integration tests fail I think because the tests need to be updated to use newer configuration as code as it's trying to always add the test harness but the test harness doesn't exist on the old version pinned in the config here.
And can't merge master in because #299 breaks bom quite badly.
A number of InjectedTest
fail in bom and we're okay with that (other plugins need updating in the pom file and need to override bom as well for it to work properly I think), but that PR 'correctly' catches that there was an error in test startup
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.
A number of
InjectedTest
fail in bom and we're okay with that
jenkinsci/bom#341 you mean?
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 comment in jenkinsci/bom#610)
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.
A number of
InjectedTest
fail in bom and we're okay with thatjenkinsci/bom#341 you mean?
Yes
Presumed obsolete after jenkinsci/bom#1336. |
alternate to #343