Skip to content

Commit ef18e47

Browse files
authored
Merge pull request #3954 from devinleighsmith/master
Release 5.1
2 parents 9d8b06c + ccfe27e commit ef18e47

File tree

1,865 files changed

+187046
-53256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,865 files changed

+187046
-53256
lines changed

.github/workflows/api-dotnetcore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
# Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)
119119
env_vars: C#
120120
# Specify whether or not CI build should fail if Codecov runs into an error during upload
121-
fail_ci_if_error: true
121+
fail_ci_if_error: false
122122

123123
- name: SonarScanner for .NET 8 with pull request decoration support
124124
id: scan

.github/workflows/app-react.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Use Node.js
4343
uses: actions/setup-node@v3
4444
with:
45-
node-version: "16.15.0"
45+
node-version: "20.11.1"
4646
- run: npm ci
4747
working-directory: ${{env.working-directory}}
4848

@@ -71,12 +71,12 @@ jobs:
7171
# Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)
7272
env_vars: javascript
7373
# Specify whether or not CI build should fail if Codecov runs into an error during upload
74-
fail_ci_if_error: true
74+
fail_ci_if_error: false
7575

7676
- name: SonarQube Scan
7777
id: scan
7878
uses: sonarsource/sonarqube-scan-action@master
79-
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'bcgov/PSP' }}
79+
if: false
8080
env:
8181
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8282
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: "16"
21+
node-version: "20"
2222

2323
- name: Setup git
2424
run: |

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: "16"
21+
node-version: "20"
2222

2323
- name: Setup git
2424
run: |

.github/workflows/uat_pre_release_hotfix.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
notification-summary: PIMS UAT Pre-Release Hotfix started.
4949
notification-color: 17a2b8
5050
timezone: America/Los_Angeles
51-
51+
5252
create-builds:
5353
name: create builds
5454
needs: ci-cd-start-notification
@@ -124,8 +124,8 @@ jobs:
124124
namespace: ${{ env.OPENSHIFT_TOOLS_NAMESPACE }}
125125
- name: call scripts to deploy api and frontend
126126
run: |
127-
OC_JOB_NAME=${{github.event.inputs.HOTFIX_BRANCH}} &&./openshift/4.0/player.sh deploy api $DESTINATION -apply
128-
OC_JOB_NAME=${{github.event.inputs.HOTFIX_BRANCH}} &&./openshift/4.0/player.sh deploy app $DESTINATION -apply
127+
RELEASE_TAG=latest-${{github.event.inputs.HOTFIX_BRANCH}} && ./openshift/4.0/player.sh deploy api $DESTINATION -apply
128+
RELEASE_TAG=latest-${{github.event.inputs.HOTFIX_BRANCH}} && ./openshift/4.0/player.sh deploy app $DESTINATION -apply
129129
130130
# the command:
131131
# 1) creates an openshift job with generated name to avoid name conflict, substituting the variables in the template.
@@ -150,8 +150,8 @@ jobs:
150150
run: |
151151
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database-uat -p GIT_BRANCH=${{github.event.inputs.HOTFIX_BRANCH}} -p SERVER_NAME=sqlprd.th.gov.bc.ca -p DB_NAME=PIMS_UAT -p NAMESPACE=3cd915-test | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s)
152152
153-
## Call the mayan sync task three times, once for each mayan sync endpoint. The task will wait for the job to complete before exiting.
154-
## Note: this depends on the mayan-sync configmap for the target namespace being up to date.
153+
## Call the mayan sync task three times, once for each mayan sync endpoint. The task will wait for the job to complete before exiting.
154+
## Note: this depends on the mayan-sync configmap for the target namespace being up to date.
155155
mayan-sync:
156156
name: sync mayan
157157
needs: database-upgrade
@@ -215,7 +215,7 @@ jobs:
215215
notification-summary: PIMS UAT Pre-Release Hotfix complete with status ${{ steps.check.outputs.status }}
216216
notification-color: 17a2b8
217217
timezone: America/Los_Angeles
218-
218+
219219
cleanup-builds:
220220
if: always()
221221
name: cleanup builds

.github/workflows/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: "16"
20+
node-version: "20"
2121

2222
- name: Setup git
2323
run: |

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"request": "launch",
1111
"console": "internalConsole",
1212
"preLaunchTask": "build",
13-
"program": "${workspaceRoot}/tools/keycloak/sync/bin/Debug/net6.0/Pims.Tools.Keycloak.Sync.dll",
13+
"program": "${workspaceRoot}/tools/keycloak/sync/bin/Debug/net8.0/Pims.Tools.Keycloak.Sync.dll",
1414
"cwd": "${workspaceRoot}/tools/keycloak/sync",
1515
"stopAtEntry": false
1616
},
1717
{
18-
"name": ".NET 6 Launch (api)",
18+
"name": ".NET 8 Launch (api)",
1919
"type": "coreclr",
2020
"request": "launch",
2121
"preLaunchTask": "build",
22-
"program": "${workspaceRoot}/source/backend/api/bin/Debug/net6.0/Pims.Api.dll",
22+
"program": "${workspaceRoot}/source/backend/api/bin/Debug/net8.0/Pims.Api.dll",
2323
"args": [],
2424
"cwd": "${workspaceRoot}/source/backend/api",
2525
"stopAtEntry": false,
@@ -32,7 +32,7 @@
3232
}
3333
},
3434
{
35-
"name": ".NET 6 Attach",
35+
"name": ".NET 8 Attach",
3636
"type": "coreclr",
3737
"request": "attach",
3838
"processId": "${command:pickProcess}"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ refresh: | down build up ## Recreates local docker environment
180180
.PHONY: infra
181181
infra: ## Starts infrastructure containers (e.g. database, geoserver). Useful for local debugging
182182
@echo "$(P) Starting up infrastructure containers..."
183-
@"$(MAKE)" start n="database geoserver"
183+
@"$(MAKE)" start n="database geoserver grafana prometheus"
184184

185185
start: ## Starts the local containers (n=service name)
186186
@echo "$(P) Starting client and server containers..."
@@ -316,7 +316,7 @@ generate-tsapi: ## Generates the pims API typescript files
316316
@echo "$(P) Generating pims api Ts files..."
317317
@cd tools/TsModelGenerator; dotnet build; dotnet run;
318318
@make frontend-lint
319-
319+
320320

321321
frontend-lint:
322322
@echo "$(P) Running lint:fix..."

docker-compose.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: "3.5"
22

33
services:
4-
54
####################### Database #######################
65
database:
76
environment:
@@ -87,13 +86,36 @@ services:
8786
restart: on-failure
8887
container_name: psp-clamav
8988
healthcheck:
90-
test: [ "CMD", "./check.sh" ]
89+
test: ["CMD", "./check.sh"]
9190
interval: 60s
9291
retries: 3
9392
start_period: 120s
9493
networks:
9594
- psp
9695

96+
prometheus:
97+
image: ubuntu/prometheus
98+
container_name: psp-prometheus
99+
ports:
100+
- 9000:9090
101+
environment:
102+
- TZ=UTC
103+
volumes:
104+
- ./tools/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
105+
- ./tools/prometheus/alert-rules.yml:/etc/prometheus/alert-rules.yml
106+
command:
107+
- "--config.file=/etc/prometheus/prometheus.yml"
108+
- "--web.enable-lifecycle"
109+
110+
grafana:
111+
image: grafana/grafana-oss
112+
container_name: psp-grafana
113+
restart: on-failure
114+
ports:
115+
- 4000:3000
116+
depends_on:
117+
- prometheus
118+
97119
####################### Networks Definition #######################
98120
networks:
99121
psp:

openshift/4.0/templates/app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Update the configuration file and set the appropriate parameters.
1010
**Example**
1111

1212
```conf
13-
BUILDIMAGE_NAME=nodejs-16
14-
BUILDIMAGE_TAG=1-1
13+
BUILDIMAGE_NAME=nodejs-20
14+
BUILDIMAGE_TAG=1-34
1515
RUNTIMEIMAGE_NAME=nginx-runtime
1616
RUNTIMEIMAGE_TAG=dev
1717
GIT_URL=https://github.com/bcgov/PSP.git

0 commit comments

Comments
 (0)