Skip to content

Commit

Permalink
Merge pull request #547 from raft-tech/release/v3.6.4-sprint-109
Browse files Browse the repository at this point in the history
Release/v3.6.4 sprint 109
  • Loading branch information
ADPennington authored Oct 9, 2024
2 parents ae7f06b + 542823f commit 92a7007
Show file tree
Hide file tree
Showing 83 changed files with 9,527 additions and 320 deletions.
4 changes: 2 additions & 2 deletions .circleci/base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ executors:
machine-executor:
machine:
docker_layer_caching: false
image: ubuntu-2204:2024.01.1
image: ubuntu-2204:2024.05.1
large-machine-executor:
machine:
docker_layer_caching: false
image: ubuntu-2204:2024.01.1
image: ubuntu-2204:2024.05.1
resource_class: large

parameters:
Expand Down
9 changes: 8 additions & 1 deletion .circleci/build-and-test/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
- run:
name: Disable npm audit warnings in CI
command: npm set audit false

# This allows us to use the node orb to install packages within other commands
install-nodejs-packages: node/install-packages

docker-login:
steps:
- run:
name: Docker login
command: |
echo "$CIRCI_DOCKER_LOGIN" | docker login https://tdp-docker.dev.raftlabs.tech -u tdp-circi --password-stdin
2 changes: 2 additions & 0 deletions .circleci/build-and-test/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
steps:
- checkout
- docker-compose-check
- docker-login
- docker-compose-up-backend
- run:
name: Run Unit Tests And Create Code Coverage Report
Expand Down Expand Up @@ -46,6 +47,7 @@
steps:
- checkout
- docker-compose-check
- docker-login
- docker-compose-up-backend
- docker-compose-up-frontend
- install-nodejs-machine
Expand Down
32 changes: 29 additions & 3 deletions .circleci/deployment/commands.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
# commands:
init-deploy:
steps:
- checkout
- sudo-check
- cf-check

build-and-tag-images:
parameters:
backend-appname:
default: tdp-backend
type: string
frontend-appname:
default: tdp-frontend
type: string
steps:
- run:
name: Update Docker daemon
command: |
sudo echo '{"max-concurrent-uploads": 1}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- run:
name: Create builder
command: |
docker buildx create --name container-builder --driver docker-container --use --bootstrap
- run:
name: Build and tag images
command: |
./scripts/build-and-tag-images.sh <<parameters.backend-appname>> <<parameters.frontend-appname>> ./tdrs-backend ./tdrs-frontend $CIRCLE_BUILD_NUM $CIRCLE_SHA1 "$CIRCI_DOCKER_LOGIN" tdp-circi
deploy-cloud-dot-gov:
parameters:
environment:
Expand All @@ -25,9 +54,6 @@
default: tdp-frontend
type: string
steps:
- checkout
- sudo-check
- cf-check
- login-cloud-dot-gov:
cf-password: <<parameters.cf-password>>
cf-org: <<parameters.cf-org>>
Expand Down
34 changes: 34 additions & 0 deletions .circleci/deployment/jobs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
build-and-tag-develop:
executor: large-machine-executor
working_directory: ~/tdp-deploy
steps:
- checkout
- sudo-check
- build-and-tag-images:
backend-appname: tdp-backend-develop
frontend-appname: tdp-frontend-develop

build-and-tag-staging:
executor: large-machine-executor
working_directory: ~/tdp-deploy
steps:
- checkout
- sudo-check
- build-and-tag-images:
backend-appname: tdp-backend-staging
frontend-appname: tdp-frontend-staging

build-and-tag-production:
executor: large-machine-executor
working_directory: ~/tdp-deploy
steps:
- checkout
- sudo-check
- build-and-tag-images:
backend-appname: tdp-backend-production
frontend-appname: tdp-frontend-production

deploy-dev:
parameters:
target_env:
type: string
executor: docker-executor
working_directory: ~/tdp-deploy
steps:
- init-deploy
- deploy-cloud-dot-gov:
backend-appname: tdp-backend-<< parameters.target_env >>
frontend-appname: tdp-frontend-<< parameters.target_env >>
Expand All @@ -13,6 +44,7 @@
executor: docker-executor
working_directory: ~/tdp-deploy
steps:
- init-deploy
- deploy-cloud-dot-gov:
backend-appname: tdp-backend-staging
frontend-appname: tdp-frontend-staging
Expand All @@ -24,6 +56,7 @@
executor: docker-executor
working_directory: ~/tdp-deploy
steps:
- init-deploy
- deploy-cloud-dot-gov:
backend-appname: tdp-backend-develop
frontend-appname: tdp-frontend-develop
Expand Down Expand Up @@ -133,6 +166,7 @@
executor: docker-executor
working_directory: ~/tdp-deploy
steps:
- init-deploy
- deploy-cloud-dot-gov:
environment: production
backend-appname: tdp-backend-prod
Expand Down
27 changes: 24 additions & 3 deletions .circleci/deployment/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,48 @@
- develop
- main
- master
- deploy-develop:
- build-and-tag-develop:
requires:
- deploy-infrastructure-staging
filters:
branches:
only:
- develop
- deploy-staging:
- deploy-develop:
requires:
- build-and-tag-develop
filters:
branches:
only:
- develop
- build-and-tag-staging:
requires:
- deploy-infrastructure-staging
filters:
branches:
only:
- main
- deploy-production:
- deploy-staging:
requires:
- build-and-tag-staging
filters:
branches:
only:
- main
- build-and-tag-production:
requires:
- deploy-infrastructure-production
filters:
branches:
only:
- master
- deploy-production:
requires:
- build-and-tag-production
filters:
branches:
only:
- master
- test-deployment-e2e:
requires:
- deploy-develop
Expand Down
Empty file modified .circleci/generate_config.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions .circleci/owasp/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
steps:
- checkout
- docker-compose-check
- docker-login
- docker-compose-up-backend
- docker-compose-up-frontend
- run:
Expand All @@ -26,6 +27,7 @@
steps:
- checkout
- docker-compose-check
- docker-login
- docker-compose-up-backend
- docker-compose-up-frontend
- run:
Expand Down Expand Up @@ -66,6 +68,7 @@
- sudo-check
- cf-check
- docker-compose-check
- docker-login
- login-cloud-dot-gov:
cf-password: <<parameters.cf_password>>
cf-space: <<parameters.cf_space>>
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/dev-issue-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ assignees: ''

**Description:**
_Provide a brief background and justification for this issue_
_OFA & UX team: Please include bullets capturing the value to STT end users, related guidance, and/or talking points that should be communicated to STTs in release notes_


**Acceptance Criteria:**
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ tfapply
cypress.env.json

# Patches
*.patch
*.patch
tdrs-backend/*.pg
28 changes: 25 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ version: '3'

tasks:

upload-kibana-objs:
desc: Upload dashboards to Kibana server
cmds:
- curl -X POST localhost:5601/api/saved_objects/_import -H "kbn-xsrf: true" --form file=@tdrs-backend/tdpservice/search_indexes/kibana_saved_objs.ndjson

create-network:
desc: Create the external network
cmds:
Expand Down Expand Up @@ -29,7 +34,7 @@ tasks:
desc: Create Sentry service
dir: sentry
cmds:
# limiting the memory to 2GB and CPU to only one cpu @0, for faster response, you can remove the limittask : --cpuset-cpus 0
# limiting the memory to 2GB and CPU to only one cpu @0, for faster response, you can remove the limittask : --cpuset-cpus 0
- (docker run --privileged -p 9001:9000 -d --memory="8g" --memory-swap="8g" --name sentry docker:dind) || true
- docker exec sentry sh -c "git clone https://github.com/getsentry/self-hosted.git || true"

Expand Down Expand Up @@ -109,6 +114,23 @@ tasks:
cmds:
- docker-compose -f docker-compose.yml exec web sh -c "python ./manage.py shell"

backend-exec:
desc: Execute a command in the backend container
dir: tdrs-backend
vars:
CMD: '{{.CMD}}'
cmds:
- docker-compose -f docker-compose.yml exec web sh -c "python manage.py {{.CMD}}"

backend-exec-seed-db:
desc: Execute seed_db command in the backend container
dir: tdrs-backend
vars:
CMD: '{{.CMD}}'
cmds:
- docker-compose -f docker-compose.yml up -d
- docker-compose -f docker-compose.yml exec web sh -c "python manage.py populate_stts; python ./manage.py seed_db"

backend-pytest:
desc: 'Run pytest in the backend container E.g: task backend-pytest PYTEST_ARGS="tdpservice/test/ -s -vv"'
dir: tdrs-backend
Expand Down Expand Up @@ -155,7 +177,7 @@ tasks:
- docker rm $(docker ps -aq) || true
- docker rmi $(docker images -q) || true
- docker volume rm $(docker volume ls -q) || true

clamav-up:
desc: Start clamav service
dir: tdrs-backend
Expand Down Expand Up @@ -187,7 +209,7 @@ tasks:
- task: frontend-up
- task: clamav-up


# need more work
frontend-init:
desc: Initialize the frontend project
Expand Down
2 changes: 1 addition & 1 deletion docs/How-We-Work/team-meetings.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ A typical sprint schedule is described in the table below.
- External factors outside of the author spending time building the ticket (ie need external team's input, see how a feature develops, etc.)
- Ex. Waiting on X ticket to finish the scope of said unrefined ticket, problem found / unsure how big it is and knows other work will unearth it
- If we know the ACs but not the tasks, then its unrefined
- Release Notes summary is empty or incomplete as applicable, to be provided by UX/Product by default.
- Refined: Ticket is complete and is ready to be executed.
- Refined & Ready to Go (Next Sprint)
- "Earmarked" work for the upcoming sprint.
- **Labelling:**
- WIP
- Author knows the 5 W's or darn near (90%)
- Drafted ticket – either still on the author the finish their part or a short team conversation is needed.
- Administrative in nature
- Ex. Stub, ticket that doesn't feel there's enough to warrant an introduction
Expand Down
Loading

0 comments on commit 92a7007

Please sign in to comment.