Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment of 2024-12-05 #16717

Merged
merged 44 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e560ca8
Update OML mappings (#15910)
JFisk42 Oct 8, 2024
9b4f36c
Update ORM mappings (#16299)
JFisk42 Oct 25, 2024
e077e8a
[16144] Modifications for user story 16144 - Implement Translate Step…
wcutshall Nov 12, 2024
3322852
[16144] Change to attempt fix for existing unit and integration tests.
wcutshall Nov 13, 2024
9606328
[16144] Fixed unit tests in FHIRTranslatorTests.
wcutshall Nov 13, 2024
1102247
[16144] Fixed integration tests by modifying FHIRTranslator.
wcutshall Nov 13, 2024
d0517ec
[16144] Added code for tests.
wcutshall Nov 14, 2024
c860dd9
[16144] Added code to account for blob digest properly.
wcutshall Nov 18, 2024
978c899
Merge branch 'main' into platform/bill/16144
wcutshall Nov 18, 2024
6cdc85c
[16144] Checking in WIP.
wcutshall Nov 19, 2024
260604b
[16144] Checking in WIP.
wcutshall Nov 20, 2024
e1c5a70
[16144] Made change to FHIREngine to account for nullable reportEvent…
wcutshall Nov 20, 2024
c2de374
Merge branch 'main' into platform/bill/16144
wcutshall Nov 20, 2024
74b67f7
[16144] Updates based on PR review.
wcutshall Nov 20, 2024
9dc4049
[16144] Update based on PR review.
wcutshall Nov 20, 2024
8b29996
[16144] Changed url and digest to use correct reportdocument.
wcutshall Nov 20, 2024
7ce035d
[16144] Added additional checks to integration test.
wcutshall Nov 21, 2024
7f92ba3
Merge branch 'main' into platform/bill/16144
arnejduranovic Nov 21, 2024
97b21ad
[16144] Added additional check to integration tests.
wcutshall Nov 21, 2024
39e79a8
Remaining ORM/OML Updates (#16539)
JFisk42 Nov 21, 2024
ad28996
Merge pull request #16550 from CDCgov/platform/bill/16144
wcutshall Nov 22, 2024
5b0d24a
21 nov 24 dependabot (#16625)
david-navapbc Nov 22, 2024
4869b13
Un-skip E2E test: receiver-status-page-user-flow.spec.ts (#16603)
jpandersen87 Nov 22, 2024
7e63ee8
16307 orm and oml java classes (#16549)
jack-h-wang Nov 25, 2024
cefbd59
Merge branch 'main' into OML-Updates-Base
jack-h-wang Nov 25, 2024
8170ff1
integration and smoke test data updates (#16549)
jack-h-wang Nov 25, 2024
7c04a53
Merge pull request #16659 from CDCgov/OML-Updates-Base
jack-h-wang Nov 27, 2024
2c45e5f
reset pagination upon filtering
etanb Dec 3, 2024
1d9438d
Merge branch 'main' into experience/16385/daily-filter-bug
etanb Dec 3, 2024
494cdf5
Bump the css group in /frontend-react with 2 updates (#16564)
dependabot[bot] Dec 3, 2024
7ea7c45
Bump the e2e-testing group across 1 directory with 3 updates (#16636)
dependabot[bot] Dec 3, 2024
ba5fe5d
Bump the sanitizers group across 1 directory with 2 updates (#16670)
dependabot[bot] Dec 3, 2024
d2129bd
Bump the typescript group across 1 directory with 4 updates (#16675)
dependabot[bot] Dec 3, 2024
0d339e8
Merge branch 'main' into experience/16385/daily-filter-bug
etanb Dec 3, 2024
f81e452
Merge pull request #16689 from CDCgov/experience/16385/daily-filter-bug
etanb Dec 3, 2024
2eaf879
Bump the analytics group in /frontend-react with 2 updates (#16466)
dependabot[bot] Dec 3, 2024
24461c2
Bump the utils group across 1 directory with 3 updates (#16561)
dependabot[bot] Dec 3, 2024
ba4d996
Update platform-epic-template.md (#16702)
MichaelEsuruoso Dec 3, 2024
e78bd7f
Bump the storybook group across 1 directory with 14 updates (#16706)
dependabot[bot] Dec 3, 2024
34a481c
Bump the fetching group across 1 directory with 4 updates (#16708)
dependabot[bot] Dec 4, 2024
62207ec
Updating the azure/login version to latest (v2) and adding a validati…
emvaldes Dec 4, 2024
6c6b77b
16394 add ack functionality (#16552)
jalbinson Dec 4, 2024
b1f131d
Bump the unit-testing group across 1 directory with 7 updates (#16712)
dependabot[bot] Dec 4, 2024
8ea297c
Merge branch 'production' into deployment/2024-12-05
adegolier Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/platform-epic-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ assignees: ''
---

## Outcome/Objective
<!--- State the high-level business or product outcome you want to achieve.-->

## Description
<!---Links to product(s) brief or description of the work involved.-->

## Product Requirement(s)
<!---Outline the specific business tasks or changes needed to achieve the outcome. (can be a link)-->

## Use Case(s)
<!---Give specific use cases of what needs to be achieved or supported-->

## Dependencies
<!---Identify any systems, teams, or external factors that need to be in place-->

## Acceptance criteria
<!---List measurable criteria that will confirm when the technical /business requirements have been met-->

## Technical Requirement(s)
<!---
- Architecture: What existing patterns and frameworks will be used for this work? What new ones will be added? What additional libraries need to be used?
- Architecture: What existing patterns and frameworks will this work use? What new ones will be added? What additional libraries need to be used?
- Data model: What changes are there to the data model, and how will those changes be implemented (i.e. requires migration)?
- APIs: What existing services are involved? What new ones will be added?
- Technical Constraint(s)
- Integrations: What integrations are involved?
-->
-->
6 changes: 3 additions & 3 deletions .github/actions/build-vars/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ runs:
- 'frontend-react/**/!(*.md)'
- '.github/actions/build-vars/action.yml'
- '.github/actions/build-frontend/action.yml'
- '.github/workflows/frontend_ci.yml'
- '.github/workflows/frontend_ci.yml'
terraform:
- 'operations/app/terraform/**/!(*.md)'
- '.github/workflows/validate_terraform.yml'
Expand Down Expand Up @@ -215,7 +215,7 @@ runs:
else
echo "has_router_change=${{ steps.filter.outputs.router }}" >> $GITHUB_OUTPUT
fi

- name: Determine if frontend changed
if: github.event_name != 'schedule'
id: frontend_change_result
Expand All @@ -234,7 +234,7 @@ runs:
echo "has_frontend_change=${{ steps.filter.outputs.frontend_react }}" >> $GITHUB_OUTPUT
fi

- uses: azure/login@a65d910e8af852a8061c627c456678983e180302
- uses: azure/login@v2
if: inputs.sp-creds != 'false'
with:
creds: ${{ inputs.sp-creds }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/vpn-azure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ runs:
fi
shell: bash

- uses: azure/login@a65d910e8af852a8061c627c456678983e180302
- uses: azure/login@v2
if: inputs.sp-creds
with:
creds: ${{ inputs.sp-creds }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/alert_cert_expire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# The workflow runs every day at 8:07am
- cron: "7 13 * * *" #UTC-5

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
check-certificates:
runs-on: ubuntu-latest
Expand All @@ -23,7 +26,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: Add Runner IP to Key Vault Firewall
run: |
Expand All @@ -48,7 +51,7 @@ jobs:
echo "LIST<<$EOF" >> $GITHUB_OUTPUT
cat certificates.json >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT

- name: Slack Notification
if: ${{ steps.format_out.outputs.LIST != '' }}
uses: ./.github/actions/notifications
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/alert_resource_costs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
env:
ALERT_THRESHOLD: 60
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
alert_costs:
Expand All @@ -23,7 +24,7 @@ jobs:
- name: Login into Azure
uses: ./.github/actions/vpn-azure
with:
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: Run Az Cost CLI
id: az-cost
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
message: |
Resource Group \`${{ matrix.rg }}\` is exceeding the cost threshold and is ${{ steps.env-age.outputs.age_in_days }} days old.
If still running and no longer needed, please [destroy](https://github.com/CDCgov/prime-reportstream/actions/workflows/destroy_demo_environment.yml).

* **Cost per day: 💲${{ steps.az-cost.outputs.result }}**
* **Provisioned by: \`${{ steps.last-pusher.outputs.username }}\`**
* **Last Change Date: \`${{ steps.last-pusher.outputs.last_change_date }}\`**
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/alert_terraform_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
# The workflow runs every day at 8:20am
- cron: "7 13 * * *" #UTC-5

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
alert_tf_changes:
name: Check Terraform plan for ${{ matrix.env }}
Expand All @@ -24,7 +28,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: true

- name: Collect Terraform stats
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:
# These are for CI and not credentials of any system
DB_USER: prime
DB_PASSWORD: changeIT!
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
pre_job:
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
version: ${{ github.run_id }}
upload-build: false
run-integration-tests: true
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: Generate New Schema Docs
working-directory: ./
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/cleanup_acr_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC


env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
cleanup_images:
runs-on: ubuntu-latest
Expand All @@ -22,7 +26,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: List ${{ matrix.env }} repository images
run: |
Expand All @@ -35,7 +39,7 @@ jobs:

- name: Delete old images in ${{ matrix.env }} env
env:
IMAGE_FILE: ${{ matrix.env }}-images.txt
IMAGE_FILE: ${{ matrix.env }}-images.txt
run: |
if [ -e "$IMAGE_FILE" ]; then
while IFS= read -r image_id; do
Expand All @@ -49,9 +53,9 @@ jobs:
else
echo "File not found: $IMAGE_FILE"
fi
# Pushing a modified image using an existing tag untags the previously pushed image,
# resulting in an orphaned (or "dangling") image.

# Pushing a modified image using an existing tag untags the previously pushed image,
# resulting in an orphaned (or "dangling") image.
# The previously pushed image's manifest--and its layer data--remains in the registry.
# They still need to be removed

Expand All @@ -65,7 +69,7 @@ jobs:

- name: Delete image manifest in ${{ matrix.env }} env
env:
UNTAGED_FILE: ${{ matrix.env }}-untaged-images.txt
UNTAGED_FILE: ${{ matrix.env }}-untaged-images.txt
run: |
if [ -e "$UNTAGED_FILE" ]; then
while IFS= read -r manifest_id; do
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
paths:
- '**.tf'

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
pre_job:
name: Set Build Environment
Expand Down Expand Up @@ -48,7 +51,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: true
- name: Collect Terraform stats

Expand Down Expand Up @@ -101,7 +104,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: true
- name: Use specific version of Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deployment_rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- staging
- test
type: choice

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
DeployToCandidateSlot:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: Add runner IP to Function App firewall
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/destroy_demo_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- demo3
type: choice


env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
destroy_demo_environment:
name: "Destroy Environment: ${{ github.event.inputs.env_name }}"
Expand All @@ -36,7 +40,7 @@ jobs:
uses: ./.github/actions/vpn-azure
with:
env-name: ${{ github.event.inputs.env_name }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: true

- name: Destroy demo environment
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/export_cost_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
# The workflow runs every day at 3PM
- cron: "0 19 * * *" #UTC-5

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
export_cost_data:
name: Export Azure Cost Data to Storage
Expand All @@ -27,7 +31,7 @@ jobs:
uses: ./.github/actions/vpn-azure
with:
env-name: ${{ matrix.env }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: false
- name: Run Az Cost CLI
id: az-cost
Expand Down Expand Up @@ -76,7 +80,7 @@ jobs:
user: prime
database: prime_data_hub
output-file: result.txt
query: |
query: |
CREATE TABLE IF NOT EXISTS Azure_Costs (
Date date,
Cost NUMERIC(13, 8),
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release_chatops_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
paths:
- "operations/slack-boltjs-app"

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
pre_job:
name: Set Build Environment
Expand Down Expand Up @@ -40,9 +43,9 @@ jobs:
with:
submodules: true

- uses: azure/login@a65d910e8af852a8061c627c456678983e180302
- uses: azure/login@v2
with:
creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
creds: ${{ env.AZURE_CREDENTIALS }}

- name: Set environment variables
shell: bash
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release_to_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ defaults:
run:
working-directory: prime-router

env:
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'

jobs:
pre_job:
name: "Set Build Environment"
Expand All @@ -33,7 +36,7 @@ jobs:
id: build_vars
uses: ./.github/actions/build-vars
with:
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

build_router_release:
name: "Release: Build Router"
Expand Down Expand Up @@ -102,7 +105,7 @@ jobs:
uses: ./.github/actions/vpn-azure
with:
env-name: ${{ needs.pre_job.outputs.env_name }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
tf-auth: true

- name: Provision demo environment
Expand Down Expand Up @@ -138,7 +141,7 @@ jobs:
uses: ./.github/actions/vpn-azure
with:
env-name: ${{ needs.pre_job.outputs.env_name }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}

- name: Get function app checksum
env:
Expand Down Expand Up @@ -194,7 +197,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
dns-ip: ${{ needs.pre_job.outputs.dns_ip }}

- name: Deploy backend
Expand Down Expand Up @@ -233,7 +236,7 @@ jobs:
ca-cert: ${{ secrets.CA_CRT}}
user-crt: ${{ secrets.USER_CRT }}
user-key: ${{ secrets.USER_KEY }}
sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }}
sp-creds: ${{ env.AZURE_CREDENTIALS }}
dns-ip: ${{ needs.pre_job.outputs.dns_ip }}

- name: Deploy frontend
Expand Down
Loading
Loading