Skip to content

Commit

Permalink
Merge branch 'main' into feat/1268-add-backup-routine-for-pg
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Campos committed Oct 1, 2024
2 parents a1fef90 + 0f38b55 commit 0f4ebb0
Show file tree
Hide file tree
Showing 14 changed files with 257 additions and 247 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fam-modded-zone: ${{ steps.fam-modded-zone.outputs.fam-modded-zone }}
deploy_core: ${{ steps.triggers.outputs.core }}
deploy_sync: ${{ steps.triggers.outputs.sync }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# Check triggers (omitted or matched)
- name: Check core triggers
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: OpenShift Init
if: steps.triggers.outputs.core == 'true' || steps.triggers.outputs.sync == 'true'
uses: bcgov-nr/[email protected].0
uses: bcgov-nr/[email protected].1
with:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
Expand All @@ -92,7 +92,7 @@ jobs:

- name: Database
if: steps.triggers.outputs.core == 'true' || steps.triggers.outputs.sync == 'true'
uses: bcgov-nr/[email protected].0
uses: bcgov-nr/[email protected].1
with:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
Expand All @@ -110,7 +110,7 @@ jobs:
environment: ${{ inputs.environment }}
if: needs.init.outputs.deploy_core == 'true'
needs: [init]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
verification_path: "actuator/health"

steps:
- uses: bcgov-nr/[email protected].0
- uses: bcgov-nr/[email protected].1
id: deploys
with:
file: ${{ matrix.file }}
Expand All @@ -167,7 +167,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy (sync)
uses: bcgov-nr/[email protected].0
uses: bcgov-nr/[email protected].1
with:
file: sync/openshift.deploy.yml
oc_namespace: ${{ vars.OC_NAMESPACE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
VITE_USER_POOLS_ID: ${{ vars.VITE_USER_POOLS_ID }}
VITE_USER_POOLS_WEB_CLIENT_ID: ${{ secrets.VITE_USER_POOLS_WEB_CLIENT_ID }}
VITE_ZONE: TEST
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# Check triggers (omitted or matched)
- uses: bcgov-nr/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
lint:
name: Typescript lint
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: bcgov-nr/[email protected]
with:
Expand All @@ -29,7 +29,7 @@ jobs:
tests:
name: Java CI
if: ${{ ! github.event.pull_request.draft }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
dir: [backend, oracle-api]
Expand All @@ -56,7 +56,7 @@ jobs:
trivy:
name: Security Scan
if: ${{ ! github.event.pull_request.draft }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
Expand All @@ -78,6 +78,6 @@ jobs:
name: Analysis Results
if: always() && (!failure()) && (!cancelled())
needs: [lint, tests, trivy]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"
3 changes: 3 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
REPO: ${{ github.event.repository.name }}
runs-on: ubuntu-latest
steps:
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: Point DEMO URL to Existing Service
run: |
# Set Up Routing
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/job-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- run: |
# Login to OpenShift
oc login --token=${{ secrets.OC_TOKEN }} --server=${{ vars.OC_SERVER }}
Expand Down
24 changes: 6 additions & 18 deletions .github/workflows/job-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ jobs:
name: Sync (TEST)
runs-on: ubuntu-latest
steps:
- name: Override OpenShift version
env:
OC: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.13/openshift-client-linux.tar.gz
run: |
# Download and extract with retry, continuing on error
(wget ${{ env.OC }} -qcO - | tar -xzvf - oc)|| !! || true
oc version
working-directory: /usr/local/bin/

- uses: actions/checkout@v4
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: ETL (TEST)
run: ./sync/oc_run.sh test ${{ secrets.oc_token }}

Expand All @@ -32,15 +26,9 @@ jobs:
name: Sync (PROD)
runs-on: ubuntu-latest
steps:
- name: Override OpenShift version
env:
OC: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.13/openshift-client-linux.tar.gz
run: |
# Download and extract with retry, continuing on error
(wget ${{ env.OC }} -qcO - | tar -xzvf - oc)|| !! || true
oc version
working-directory: /usr/local/bin/

- uses: actions/checkout@v4
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: ETL (PROD)
run: ./sync/oc_run.sh prod ${{ secrets.oc_token }}
4 changes: 2 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
builds:
name: Builds
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
triggered: ${{ steps.build.outputs.triggered }}
permissions:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
if: always()
# Include all needs that could have failures!
needs: [builds, deploys, tests]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: |
# View results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Initialize
outputs:
mod-tag: ${{ steps.mod-tag.outputs.mod-tag }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Get PR Number Mod 50
id: mod-tag
Expand All @@ -33,6 +33,6 @@ jobs:
name: Validate Results
if: always() && (!failure()) && (!cancelled())
needs: [validate]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: echo "Success!"
10 changes: 5 additions & 5 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>ca.bc.gov</groupId>
Expand Down Expand Up @@ -39,7 +39,7 @@
<sonar.organization>bcgov-sonarcloud</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<oci.revision>${project.version}</oci.revision>
<hibernate.version>6.5.2.Final</hibernate.version>
<hibernate.version>6.5.3.Final</hibernate.version>
</properties>

<profiles>
Expand Down Expand Up @@ -403,7 +403,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.0</version>
<version>3.10.1</version>
<configuration>
<source>17</source>
<doctitle>Javadoc Documentation for ${project.name} ${project.version}</doctitle>
Expand Down Expand Up @@ -459,7 +459,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.18.1</version>
<version>10.18.2</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -506,7 +506,7 @@
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>9.40</version>
<version>9.41.2</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public PtCalculationResDto calculatePtVals(PtValsCalReqDto ptVals) {
parentPropOrchPoll = zero;
} else {
parentPropOrchPoll =
parentTreeRow.coneCount().divide(totalPollenCount, DIVISION_SCALE, halfUp);
parentTreeRow.pollenCount().divide(totalPollenCount, DIVISION_SCALE, halfUp);
}

// --col:X
Expand Down
Loading

0 comments on commit 0f4ebb0

Please sign in to comment.