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

CAPT-1702 Migrate test environment to AKS #2815

Merged
merged 14 commits into from
Jun 21, 2024

Conversation

AbigailMcP
Copy link
Contributor

@AbigailMcP AbigailMcP commented Jun 7, 2024

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 correct

Testing 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

@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from a4267ec to b9b0cde Compare June 7, 2024 13:52
Copy link

github-actions bot commented Jun 7, 2024

@RMcVelia RMcVelia force-pushed the 1853-claims-create-test-env-base-resources branch 2 times, most recently from bd5a1a7 to 21a21a5 Compare June 10, 2024 07:59
Base automatically changed from 1853-claims-create-test-env-base-resources to master June 10, 2024 08:05
@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from b9b0cde to 78cedf7 Compare June 10, 2024 08:34
@AbigailMcP AbigailMcP marked this pull request as ready for review June 10, 2024 10:20
@slorek
Copy link
Contributor

slorek commented Jun 10, 2024

Had a look at the currently deployed test environment:

  • We need to add claim-additional-payments-for-teaching-test-web.test.teacherservices.cloud to the DfE Sign In white list on their test environment (unable to log in to admin)
  • I'm getting 404 errors on /additional-payments/landing-page and /additional-payments/claim

@AbigailMcP
Copy link
Contributor Author

AbigailMcP commented Jun 12, 2024

Tested and working:
✅ Basic auth
✅ Claim submission
✅ Exception reporting to Rollbar
✅ Ordnance survey API address lookup
✅ Notify emails sent
✅ Checked application and deployment logs for errors
✅ DQT integration (tested in rails console)

Issues:
✅ DfE Identity sign in
the specified 'redirect_uri' is not valid for this client application
@AbigailMcP whitelisting requested
working now, flow tested

✅ Admin login with DfE Sign In
redirect_uri did not match any of the client's registered redirect_uris
whitelisting requested
redirect uri added, working now

✅ HMRC API integration
@AbigailMcP - updated client secret, needs redeploy to test
working now

Untested (need admin login):
🟠 Levelling Up Premium Payments awards upload
🟠 TPS data upload
🟠 School data import

Other things needed:

  • Testing of the deploy workflow - @vacabor
  • BigQuery integration - @AbigailMcP
  • StatusCake integration - made new ticket
  • Update documentation (accessing cluster, running rake tasks etc) - made new ticket

@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from ab4b726 to 5d06201 Compare June 12, 2024 15:23
@AbigailMcP AbigailMcP added the deploy Deploy a review app for this PR label Jun 14, 2024
"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"]
}
Copy link
Contributor

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"
Copy link
Contributor

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)

Copy link
Contributor Author

@AbigailMcP AbigailMcP Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smoke test PR: #2875

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slack message PR: #2864

Comment on lines 63 to 66
variable "app_replicas" {
description = "Number of replicas of the web app"
default = 1
}
Copy link
Contributor

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...

Copy link
Contributor Author

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 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbigailMcP AbigailMcP removed the deploy Deploy a review app for this PR label Jun 20, 2024
@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from 71901c2 to 79b655f Compare June 20, 2024 13:36
@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from 79b655f to e9bc91a Compare June 21, 2024 09:22
@AbigailMcP AbigailMcP force-pushed the CAPT-1702-migrate-test-environment-to-aks branch from e9bc91a to d3cd5c4 Compare June 21, 2024 09:44
@AbigailMcP AbigailMcP merged commit a4b19f4 into master Jun 21, 2024
16 checks passed
@AbigailMcP AbigailMcP deleted the CAPT-1702-migrate-test-environment-to-aks branch June 21, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants