diff --git a/.github/workflows/step-jlink.yml b/.github/workflows/step-jlink.yml index 4f71a427b..b1db575b4 100644 --- a/.github/workflows/step-jlink.yml +++ b/.github/workflows/step-jlink.yml @@ -38,7 +38,15 @@ jobs: echo ${{ inputs.project-version }} > VERSION - name: Build - run: ./gradlew -Prelease=true -PreproducibleBuild=true build -S + run: ./gradlew -Prelease=true -PreproducibleBuild=true build aggregateTestReports -S + + - name: Upload test reports + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-reports + path: | + build/reports/aggregate-tests/ - name: Jlink uses: jreleaser/release-action@v2 diff --git a/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java b/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java index 96564119d..a45edfc6f 100644 --- a/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java +++ b/plugins/riot/src/test/java/com/redis/riot/cli/AbstractRiotTests.java @@ -102,10 +102,12 @@ public abstract class AbstractRiotTests extends AbstractTestBase { private final Logger log = LoggerFactory.getLogger(getClass()); + public static final String BEERS_JSON_URL = "https://storage.googleapis.com/jrx/beers.json"; public static final int BEER_CSV_COUNT = 2410; public static final int BEER_JSON_COUNT = 216; private static final Duration IDLE_TIMEOUT = Duration.ofSeconds(1); + private static final Duration COMPARE_TIMEOUT = Duration.ofSeconds(3); protected static String name(Map beer) { return beer.get("name"); @@ -735,7 +737,7 @@ void hyperLogLog() throws Throwable { } private void awaitCompare() { - Awaitility.await().timeout(Duration.ofSeconds(1)).until(this::compare); + Awaitility.await().timeout(COMPARE_TIMEOUT).until(this::compare); } @Test