Skip to content

Commit

Permalink
Fix CI workflows: continuous-integration.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gabezurita committed Dec 3, 2024
1 parent 9164fd1 commit 646c1ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ee-ep-merge-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/svc-bip-api-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 646c1ae

Please sign in to comment.