-
Notifications
You must be signed in to change notification settings - Fork 16
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
CAPT-1702 Migrate test environment to AKS #2815
CAPT-1702 Migrate test environment to AKS #2815
Conversation
a4267ec
to
b9b0cde
Compare
Review app deployed to https://s118d02-app-pr-2815-as.azurewebsites.net/additional-payments/claim |
bd5a1a7
to
21a21a5
Compare
b9b0cde
to
78cedf7
Compare
Had a look at the currently deployed test environment:
|
Tested and working: Issues: ✅ Admin login with DfE Sign In ✅ HMRC API integration Untested (need admin login): Other things needed:
|
ab4b726
to
5d06201
Compare
"canonical_hostname": "claim-additional-payments-for-teaching-test-web.test.teacherservices.cloud", | ||
"startup_command": ["/bin/sh", "-c", "bin/rails server -b 0.0.0.0"], | ||
"worker_command": ["/bin/sh", "-c", "bin/bundle exec bin/delayed_job run -n 4"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the claim-additional-payments-for-teaching-test-web deployment should have 2 replicas
shell: bash | ||
run: | | ||
make ci test-aks get-cluster-credentials | ||
kubectl exec -n srtl-test deployment/claim-additional-payments-for-teaching-test-worker -- sh -c "DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bin/prepare-database" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We normally have a smoke test post deployment for permanent env deployments (i.e. test/prod), and also look to have a slack msg generated on workflow failure (of perm env deploy/smoke test failure)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smoke test PR: #2875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slack message PR: #2864
terraform/application/variables.tf
Outdated
variable "app_replicas" { | ||
description = "Number of replicas of the web app" | ||
default = 1 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder about calling this web_replicas
to match the web_application
/worker_application
convention - I need to introduce worker_replicas
in production to scale them independently...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that sounds like a good way to go! i'll update :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
71901c2
to
79b655f
Compare
79b655f
to
e9bc91a
Compare
This reverts commit 2d0b531.
* Add slack notification on failure step to build_and_deploy workflow * Remove old slack-alert
* Add smoke test * Run in workflow * Update rspec command to not run smoke tests automatically
e9bc91a
to
d3cd5c4
Compare
Changes in this PR
Create test environment, so we can have proper testing before deploying to production
Guidance to review
Run
make test-aks terraform-plan-aks
and check output is correctTesting URLS (created by running make commands locally):
https://claim-additional-payments-for-teaching-test-web.test.teacherservices.cloud/additional-payments/claim
https://claim-additional-payments-for-teaching-test-web.test.teacherservices.cloud/student-loads/claim
https://claim-additional-payments-for-teaching-test-web.test.teacherservices.cloud/admin