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

Hack for io.jenkins.configuration-as-code:test-harness #344

Closed
wants to merge 3 commits into from

Conversation

timja
Copy link
Member

@timja timja commented Jan 30, 2022

  • Hack for io.jenkins.configuration-as-code:test-harness
  • Handle new JEP-229 versioning
  • Remove broken powermock test

alternate to #343

Copy link
Contributor

@raul-arabaolaza raul-arabaolaza left a 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")) {
Copy link
Contributor

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

Copy link
Member Author

@timja timja Jan 31, 2022

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

Copy link
Member

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?

Copy link
Member

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)

Copy link
Member Author

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?

Yes

@timja timja marked this pull request as draft January 31, 2022 09:39
@jglick jglick mentioned this pull request Jan 31, 2022
@jglick
Copy link
Member

jglick commented Jul 28, 2022

Presumed obsolete after jenkinsci/bom#1336.

@jglick jglick closed this Jul 28, 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.

3 participants