Hello, we are having a very strange issue and there have been no code changes to make it happen!
We are using the setup-java action to build a Kotlin app with Gradle running on ubuntu-latest. This has been working for over a year. Sudenly yesterday it started failing on two of our unit tests. Since nothing had changed I went back and re-ran branches that previously had passed and they too are failing! I am at a loss for how to troubleshoot this, any suggestions would be appreciated.
The errors are
Error 1
Test test processFunction when ActionLogs has an error() FAILED
java.lang.AssertionError: Verification failed: call 1 of 1: WorkflowEngine(#467).isDuplicateItem(any())) was not called
Error 2
Test test processFunction duplicate override true to false() FAILED
java.lang.AssertionError: Verification failed: call 1 of 1: ReportFunction(#608).doDuplicateDetection$prime_router(any(), any())) was not called.
Calls to same mock:
1) ReportFunction(#608).processRequest$prime_router(gov.cdc.prime.router.azure.MockHttpRequestMessage@2d3aa5e5, gov.cdc.prime.router.CovidSender@5944991a)
2) ReportFunction(#608).validateRequest$prime_router(gov.cdc.prime.router.azure.MockHttpRequestMessage@2d3aa5e5)
The relevant portions of the workflow:
build_router:
name: Build Router
runs-on: ubuntu-latest
needs: pre_job
if: ${{ needs.pre_job.outputs.has_router_change == 'true' }}
defaults:
run:
working-directory: prime-router
steps:
- name: "Check out changes"
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
- name: Set up JDK 11
uses: actions/setup-java@4fe61d24fe5472910b93bdeffb8aad49f979d862
with:
java-version: '11'
distribution: 'adopt'
cache: 'gradle'
- uses: gradle/wrapper-validation-action@859c33240bd026ce8d5f711f5adcc65c2f8eafc1
- name: Spin up build containers
run: docker-compose -f docker-compose.postgres.yml up -d
- name: Build Prime Router Package
run: ./gradlew package -Pshowtests
Really just looking for pointers on how to troubleshoot this - it works locally.