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

#590 bugzilla rest connector #592

Merged
merged 5 commits into from
Aug 11, 2024
Merged

#590 bugzilla rest connector #592

merged 5 commits into from
Aug 11, 2024

Conversation

BeckerFrank
Copy link
Contributor

Bugzilla Rest Connector is not really productive so we can use the connector to demo how we can implement a rule to ignore tests if not in a CI Server environment.

@BeckerFrank BeckerFrank requested a review from gnl42 August 8, 2024 20:10
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/OpenJDK 17.0.4 [17.0.4]"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/OpenJDK 21.0.3 [21.0.3]"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jenkins builds are with 17. I think we should use the same version both locally and remote.

Given that 24-09 compiler level defaults to 21 (or was it 22) do we stay with 17? What are the expectations for staying with 17?

@@ -128,12 +128,14 @@ public AbstractTestFixture getActualFixture() {
}

@Test
@ConditionalIgnoreRule.ConditionalIgnore(condition = MustRunOnCIServerRule.class)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer going straight to JUnit5 end @EnabledIf instead, like I did with #589

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can do that. BugzillaRest Connector is special because we use here a Junit4TestFixtureRunner with a BlockJUnit4ClassRunner to group the unit test per fixture.

Have you the migration of the BugzillaRest Connector on your list or should I do this because I implement the Connector?

@gnl42
Copy link
Contributor

gnl42 commented Aug 10, 2024

I want to replace JUnit 4 with 5 everywhere. I can do it.
Should I work on this branch or have you merge it and then create a new one?

@BeckerFrank
Copy link
Contributor Author

I want to replace JUnit 4 with 5 everywhere. I can do it. Should I work on this branch or have you merge it and then create a new one?

That is up to you. If you prefer we can merge this pull request. Otherwise we can continue or close the pull request.

Without the changes in this branch we already have the Rule MustRunOnApikeyRule

@gnl42
Copy link
Contributor

gnl42 commented Aug 10, 2024

I'll make the changes in this branch

<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/OpenJDK 17.0.4 [17.0.4]"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/OpenJDK 21.0.3 [21.0.3]"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also is specific to the one environment. Something like JavaSE-21 would be better

@gnl42
Copy link
Contributor

gnl42 commented Aug 11, 2024

Actually, thinking about it. It's probably better to create a new branch using #51 for the work.

@BeckerFrank
Copy link
Contributor Author

Actually, thinking about it. It's probably better to create a new branch using #51 for the work.

Yes, if you feel more comfortable with the new Brach, that's fine, especially because these tests are already available as junit4 and they run under jUnit 5

@gnl42
Copy link
Contributor

gnl42 commented Aug 11, 2024

Hmm, just tried with the vintage library with no luck.

Can you merge your PRs then?

@BeckerFrank BeckerFrank merged commit e1658ee into main Aug 11, 2024
4 checks passed
@BeckerFrank BeckerFrank deleted the 590_Bugzilla_Rest_Connector branch August 11, 2024 12:08
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.

2 participants