Skip to content

Commit 58538ad

Browse files
BCDA-9665: Allow for EOY mode in smoke test workflows (#1281)
1 parent 665ba23 commit 58538ad

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/deploy-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ jobs:
286286
smoke_tests: true
287287
postman_tests: true
288288
v3_tests: false
289+
eoy_mode: false
289290
secrets: inherit
290291

291292
notify_newrelic:

.github/workflows/smoke-tests.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ on:
3838
- 'dev'
3939
- 'paca'
4040
default: 'dev'
41+
eoy_mode:
42+
description: Flag which indicates if smoke tests should be run in EOY mode
43+
required: true
44+
type: boolean
45+
default: false
4146
smoke_tests:
4247
description: Flag which indicates if smoke integration tests should be run
4348
required: true
@@ -75,6 +80,11 @@ on:
7580
required: true
7681
type: 'string'
7782
default: 'dev'
83+
eoy_mode:
84+
description: Flag which indicates if smoke tests should be run in EOY mode
85+
required: true
86+
type: boolean
87+
default: false
7888
smoke_tests:
7989
description: Flag which indicates if smoke integration tests should be run
8090
required: true
@@ -99,6 +109,7 @@ env:
99109
RELEASE_ENV: ${{ inputs.env || 'dev' }}
100110
COMPOSE_INTERACTIVE_NO_CLI: 1
101111
TEST_ACO: ${{ inputs.test_aco || 'dev' }}
112+
EOY_MODE: ${{ (inputs.eoy_mode && 'eoy') || '' }}
102113

103114
jobs:
104115
smoke_tests:
@@ -167,7 +178,7 @@ jobs:
167178
--global-var clientId=${CLIENT_ID} --global-var clientSecret=${CLIENT_SECRET} \
168179
--global-var v2Disabled=false \
169180
--global-var blacklistedClientId=${DENYLIST_CLIENT_ID} --global-var blacklistedClientSecret=${DENYLIST_CLIENT_SECRET} \
170-
--global-var maintenanceMode=""
181+
--global-var maintenanceMode="${{ env.EOY_MODE }}"
171182
- name: Run Smoke Tests
172183
if: ${{ inputs.smoke_tests }}
173184
run: |
@@ -177,7 +188,9 @@ jobs:
177188
-e test/postman_test/${{ env.RELEASE_ENV }}.postman_environment.json \
178189
--global-var clientId=$CLIENT_ID \
179190
--global-var clientSecret=$CLIENT_SECRET \
180-
--global-var maintenanceMode=""
191+
--global-var maintenanceMode="${{ env.EOY_MODE }}"
192+
# Sleep a bit to hopefully prevent intermittent failures
193+
- run: sleep 60
181194
- name: Run PACA Tests
182195
run: |
183196
CLIENT_ID=$(echo $PACA_CLIENT_CREDENTIALS_PARAMS | jq -r .client_id)
@@ -186,7 +199,7 @@ jobs:
186199
-e test/postman_test/${{ env.RELEASE_ENV }}.postman_environment.json \
187200
--global-var clientId=$CLIENT_ID \
188201
--global-var clientSecret=$CLIENT_SECRET \
189-
--global-var maintenanceMode=""
202+
--global-var maintenanceMode="${{ env.EOY_MODE }}"
190203
- name: Run v3 Tests
191204
if: ${{ inputs.v3_tests }}
192205
run: |
@@ -197,7 +210,7 @@ jobs:
197210
--global-var clientId=${CLIENT_ID} \
198211
--global-var clientSecret=${CLIENT_SECRET} \
199212
--global-var v3Disabled=false \
200-
--global-var maintenanceMode=""
213+
--global-var maintenanceMode="${{ env.EOY_MODE }}"
201214
- name: Success Alert
202215
if: ${{ success() }}
203216
uses: slackapi/slack-github-action@v2.0.0

bcda/service/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Config struct {
4242

4343
type RunoutConfig struct {
4444
CutoffDurationDays int `conf:"RUNOUT_CUTOFF_DATE_DAYS" conf_default:"180"`
45-
ClaimThruDate string `conf:"RUNOUT_CLAIM_THRU_DATE" conf_default:"2024-12-31"`
45+
ClaimThruDate string `conf:"RUNOUT_CLAIM_THRU_DATE" conf_default:"2025-12-31"`
4646
CutoffDuration time.Duration
4747
// Un-exported fields that are computed using the exported ones above
4848
claimThru time.Time

0 commit comments

Comments
 (0)