Commit Graph

14 Commits

Author SHA1 Message Date
David Arthur af5d6c2578
MINOR Fix some test-catalog issues (#18272)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-12-20 08:42:57 -05:00
David Arthur 441a6d0b79
MINOR fix test-catalog generation (#17866)
Fixes another issue introduced in #17725 where the streaming XML parser would skip over tests that followed a SKIPPED test. This caused a large number of tests to be removed from the test catalog e4a5eb8

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-19 15:37:41 -05:00
David Arthur a334b1b6fd
MINOR Fix build scan artifact name in ci-complete (#17863)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-19 09:48:37 -05:00
David Arthur 5f4cbd4aa4
KAFKA-17767 Automatically quarantine new tests [5/n] (#17725)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-19 09:56:36 +08:00
David Arthur cbf440dfd0
KAFKA-17767 Parse quarantined tests and display them [4/n] (#17661)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-11-04 23:33:55 +08:00
David Arthur ef6c950b88
KAFKA-17767 Extract test catalog from JUnit output [1/n] (#17397)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-10-17 14:09:22 +08:00
David Arthur ef567bcc3f
MINOR: Group the junit parser console logs (#17229)
Use ::group:: feature of GitHub Actions to hide some of the verbose output from Parse JUnit Tests step.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-20 00:50:07 +08:00
David Arthur 420f69abbd
MINOR Add a thread dump on build timeout (#17181)
In the case of a CI timeout, this patch uses jstack to capture thread dumps from the Gradle test workers.
These thread dumps are stored in files which are later archived by the CI workflow.

This patch also increases the compression level to 9 for our "actions/upload-artifact" steps to save a bit of storage space. 

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-13 11:16:50 -04:00
xijiu ac4784ec0c
KAFKA-17418: Improve markdown formatting in junit.py (#17071)
Newline characters in the failure message of tests were causing the Markdown tables to be malformed.
This patch fixes that by replacing newlines with "<br>" tags and escaping other HTML that may appear in message.

Reviewers: David Arthur <mumrah@gmail.com>
2024-09-10 09:25:03 -04:00
David Arthur 040ae26472
KAFKA-17479 Fail the whole pipeline if junit step times out [4/n] (#17121)
Fixes an issue where the CI workflow could appear to be successful in the event of a timeout and no failing tests. Instead of using Github Action's timeout, this patch makes use of the linux `timeout` command. This lets us capture the exit code and handle timeouts separately from a failed execution.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-07 15:13:20 -04:00
David Arthur 84aa5d7a63
KAFKA-17479 Relocate junit XML files [2/n] (#17098)
Recently, we fixed caching for ":jar" and ":test" tasks. A side effect of this is that the test results will be restored as part of the Gradle cache resolution. This means test tasks which are skipped (as a result of FROM-CACHE) will still have test results in their build directory. To avoid incorrectly reporting these results in the job summary, this patch uses a doLast task handler to relocate JUnit XML files into a new directory.

This patch also removes the "continue-on-error" from the JUnit test step which caused timed-out builds to appear successful.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-05 13:50:33 -04:00
David Arthur 0294b1402d
KAFKA-17479 Allow ":jar" tasks to be cached [1/n] (#17066)
For several modules, we include a kafka-version.properties in the Jar file. This file includes the Git SHA of the project at the time of the build. This means that even if no source files change, the :jar task will never be UP-TO-DATE between two git commits. Ultimately, this breaks Gradle caching.

This patch marks all of the createVersionFile tasks as cacheable and also changes our Gradle invocation to override the commit ID to a dummy static value. This will allow the :jar task to be cacheable and reusable between builds.

This patch also configures the trunk build to only write to the build cache and not read from it. This will prevent any cache pollution/corruption from propagating from build to build.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-09-04 15:06:11 -04:00
David Arthur 3efa785a65
MINOR: Handle test re-runs in junit.py (#17034)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-08-31 23:34:29 +08:00
David Arthur be3e674e78
MINOR: Add JUnit parser for GH Actions (#16966)
A few improvements for JUnit in the Actions workflow:

* Generate a human readable job summary of the tests 
* Fail the workflow if JUnit tests fail
* Archive the HTML JUnit reports

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2024-08-23 10:09:59 -04:00