From 646c1ae935dd34a6459b79d5c933991dc1a29923 Mon Sep 17 00:00:00 2001 From: Gabriel Zurita Date: Mon, 2 Dec 2024 18:01:08 -0700 Subject: [PATCH] Fix CI workflows: continuous-integration.yml This workflow has been failing for the last several months (there is no record of a successful run on abd-vro-internal): https://github.com/department-of-veterans-affairs/abd-vro-internal/actions/workflows/continuous-integration.yml Address longstanding CI failures affecting the following workflows: - `svc-bip-api/integration-test` - `ee-ep-merge-end-to-end/integration-test` Changes: - Explicitly set Java 17 in affected workflows. - Specify default branch for `abd-vro-dev-secrets` checkout to avoid branch resolution issues. Errata: ``` Checkout abd-vro-dev-secrets repo Determining the default branch Retrieving the default branch name Not Found - https://docs.github.com/rest/repos/repos#get-a-repository Waiting 10 seconds before trying again Retrieving the default branch name Not Found - https://docs.github.com/rest/repos/repos#get-a-repository Waiting 10 seconds before trying again Retrieving the default branch name Error: Not Found - https://docs.github.com/rest/repos/repos#get-a-repository ``` ``` * What went wrong: A problem occurred configuring root project 'abd_vro'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.3.3. Required by: root project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.3.3 > Dependency requires at least JVM runtime version 17. This build uses a Java 11 JVM. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.7.14. Required by: root project : > project :gradle-plugins > org.springdoc.openapi-gradle-plugin:org.springdoc.openapi-gradle-plugin.gradle.plugin:1.8.0 > org.springdoc:springdoc-openapi-gradle-plugin:1.8.0 > Dependency requires at least JVM runtime version 17. This build uses a Java 11 JVM. * Try: > Run this build using a Java 17 or newer JVM. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 1m Error: Process completed with exit code 1. ``` NOTE: `svc-bie-kafka-end-to-end` is also experiencing this failure, but is currently inactive, so not making updates there. --- .github/workflows/ee-ep-merge-end-to-end.yml | 7 +++++++ .github/workflows/svc-bip-api-integration-test.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ee-ep-merge-end-to-end.yml b/.github/workflows/ee-ep-merge-end-to-end.yml index fbe9e75aa..31c608e3f 100644 --- a/.github/workflows/ee-ep-merge-end-to-end.yml +++ b/.github/workflows/ee-ep-merge-end-to-end.yml @@ -24,8 +24,15 @@ jobs: # Checkout using a PAT so that we can access the internal repo token: ${{ secrets.ACCESS_TOKEN_CHECKOUT_INTERNAL_REPO }} repository: 'department-of-veterans-affairs/abd-vro-dev-secrets' + ref: main path: "${{ env.VRO_DEV_SECRETS_FOLDER }}" + - name: "Set up Java 17" + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - uses: ./.github/actions/install-docker-compose - name: 'Build the images' diff --git a/.github/workflows/svc-bip-api-integration-test.yml b/.github/workflows/svc-bip-api-integration-test.yml index 5bdb7fac8..f1939ba45 100644 --- a/.github/workflows/svc-bip-api-integration-test.yml +++ b/.github/workflows/svc-bip-api-integration-test.yml @@ -24,8 +24,15 @@ jobs: # Checkout using a PAT so that we can access the internal repo token: ${{ secrets.ACCESS_TOKEN_CHECKOUT_INTERNAL_REPO }} repository: 'department-of-veterans-affairs/abd-vro-dev-secrets' + ref: main path: "${{ env.VRO_DEV_SECRETS_FOLDER }}" + - name: "Set up Java 17" + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: "Set up VRO build env" uses: ./.github/actions/setup-vro