Skip to content

Conversation

@steve-the-edwards
Copy link
Contributor

@steve-the-edwards steve-the-edwards commented Aug 28, 2025

We were using jvmTest previously for the tests where we specify the runtime via the environment arg, but the jvmTest task is only for KMP modules. Those KMP modules (namely workflow-runtime) already accounted for multiple runtimes using Burst, so we were just running the same tests multiple times (it was not even using the JvmTestRuntimeConfigTools to pull the arg).

We should be running the regular java/android test task with the runtime specification, then the arg will be picked up.

Also some other fixes for the proper targets - e.g., iosSimulatorArm64 and jsBrowserTest.

AND fixes the failure-path-upload usage so that we upload the test report successfully (the html one) when there is a failure (whether JVM or Android tests). (I've tested this when the tests were failing that I fixed).

I had to modify two tests to check for particular runtime configs that are incompatible with the test structure, but everything else is working. yay!

@steve-the-edwards steve-the-edwards force-pushed the sedwards/unit-tests-action-update branch 4 times, most recently from f1237e8 to c762f60 Compare August 28, 2025 14:58
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: specified-upload
name: ${{inputs.failure-upload-name}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zach-klippenstein I also fixed test report upload on failure - so you can download the typical .html report and see the reasons for all your different test failures in CI.

restore-cache-key: build-logic
write-cache-key: main-build-artifacts
failure-path-upload: '**/build/reports/tests/*[tT]est'
failure-upload-name: 'unit-tests-report'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is where we specify failure-path-upload (what to upload when there is a failure on the job).

@steve-the-edwards steve-the-edwards changed the title Clean up Unit Tests in Actions Clean up Test Specification in our Github Actions Aug 28, 2025
@steve-the-edwards steve-the-edwards force-pushed the sedwards/unit-tests-action-update branch from c762f60 to d1d9b43 Compare August 28, 2025 20:48
@steve-the-edwards steve-the-edwards merged commit eab82ae into main Aug 28, 2025
73 checks passed
@steve-the-edwards steve-the-edwards deleted the sedwards/unit-tests-action-update branch August 28, 2025 21:25
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.

3 participants