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

[ISSUE #8668] Improve CI pipeline reliability with better log viewing and test fixes #8667

Merged
merged 4 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ jobs:
- name: Run integration tests with Maven
run: mvn clean verify -Pit-test -Pskip-unit-tests


- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: 'test/target/failsafe-reports/TEST-*.xml'
annotate_only: true
include_passed: true
detailed_summary: true
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
import org.mockito.Spy;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.junit.MockitoJUnitRunner;
import org.mockito.quality.Strictness;
import org.mockito.junit.jupiter.MockitoSettings;
import org.mockito.stubbing.Answer;

import static org.assertj.core.api.Assertions.assertThat;
Expand All @@ -81,8 +79,7 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@RunWith(MockitoJUnitRunner.class)
@MockitoSettings(strictness = Strictness.LENIENT)
@RunWith(MockitoJUnitRunner.Silent.class)
public class DefaultLitePullConsumerTest {
@Spy
private MQClientInstance mQClientFactory = MQClientManager.getInstance().getOrCreateMQClientInstance(new ClientConfig());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ public PullResult answer(InvocationOnMock mock) throws Throwable {

@AfterClass
public static void terminate() {
pushConsumer.shutdown();
if (pushConsumer != null) {
pushConsumer.shutdown();
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public void test3ConsumerAndCrashOne() {
MQWait.waitConsumeAll(CONSUME_TIME, producer.getAllMsgBody(), consumer1.getListener(),
consumer2.getListener(), consumer3.getListener());
consumer3.shutdown();
TestUtils.waitForSeconds(WAIT_TIME);

producer.clearMsg();
consumer1.clearMsg();
consumer2.clearMsg();
Expand Down
Loading