Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven and run tests
run: mvn -B package --file pom.xml -fae ${{ matrix.os == 'windows-latest' && '-DskipDockerTests=true' || '' }}
run: mvn -B install --file pom.xml -fae ${{ matrix.os == 'windows-latest' && '-DskipDockerTests=true' || '' }}
- name: Upload Test Reports
if: failure()
uses: actions/upload-artifact@v7
Expand Down
37 changes: 37 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,43 @@
<quarkus.jvm.args></quarkus.jvm.args>
</properties>
</profile>
<profile>
<id>flaky-test-retry</id>
<activation>
<file>
<!--
Activated per-module: only modules containing a .flaky-tests-marker file
get the two-phase surefire execution that retries @Tag("flaky") tests if they fail.
-->
<exists>.flaky-tests-marker</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludedGroups>flaky</excludedGroups>
</configuration>
</execution>
<execution>
<id>flaky-tests</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<groups>flaky</groups>
<rerunFailingTestsCount>3</rerunFailingTestsCount>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Comment thread
kabir marked this conversation as resolved.
Comment thread
kabir marked this conversation as resolved.
</profiles>

</project>
3 changes: 3 additions & 0 deletions reference/grpc/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
3 changes: 3 additions & 0 deletions reference/jsonrpc/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
3 changes: 3 additions & 0 deletions reference/rest/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
3 changes: 3 additions & 0 deletions tests/multiversion/grpc/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
3 changes: 3 additions & 0 deletions tests/multiversion/jsonrpc/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
3 changes: 3 additions & 0 deletions tests/multiversion/rest/.flaky-tests-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This marker file activates the "flaky-test-retry" profile defined in the root pom.xml.
When present, tests annotated with @Tag("flaky") are excluded from the default surefire
execution and run in a separate execution with up to 3 retries on failure.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
import org.a2aproject.sdk.spec.UnsupportedOperationError;
import org.a2aproject.sdk.spec.UpdateEvent;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;

Expand Down Expand Up @@ -782,6 +783,7 @@ public void testSendMessageStreamExistingTaskSuccess() throws Exception {
}

@Test
@Tag("flaky")
@Timeout(value = 3, unit = TimeUnit.MINUTES)
public void testSubscribeExistingTaskSuccess() throws Exception {
saveTaskInTaskStore(MINIMAL_TASK);
Expand Down Expand Up @@ -1711,6 +1713,7 @@ public void testDeletePushNotificationConfigSetWithoutConfigId() throws Exceptio
}

@Test
@Tag("flaky")
@Timeout(value = 1, unit = TimeUnit.MINUTES)
public void testNonBlockingWithMultipleMessages() throws Exception {
AtomicReference<String> generatedTaskIdRef = new AtomicReference<>();
Expand Down Expand Up @@ -3076,6 +3079,7 @@ public void testAgentToAgentDelegation() throws Exception {
* </ul>
*/
@Test
@Tag("flaky")
public void testAgentToAgentLocalHandling() throws Exception {
// No taskId - server generates one; routing is by message content prefix "a2a-local:"
Message localMessage = Message.builder()
Expand Down
Loading