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

Run e2e in cd pipeline #491

Merged
merged 28 commits into from
Jun 4, 2024
Merged

Run e2e in cd pipeline #491

merged 28 commits into from
Jun 4, 2024

Conversation

brunns
Copy link
Contributor

@brunns brunns commented May 31, 2024

Context

Changes proposed in this pull request

Guidance to review

Relevant links

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed
  • I have run integration tests

@brunns brunns force-pushed the feature/run-e2e-in-cd-pipeline branch from d8b15a8 to 66ef2be Compare May 31, 2024 08:14
@brunns brunns force-pushed the feature/run-e2e-in-cd-pipeline branch from bc0b512 to 215eca4 Compare June 3, 2024 08:34
@brunns brunns force-pushed the feature/run-e2e-in-cd-pipeline branch from 2b2067f to 5ffe539 Compare June 3, 2024 13:52
@brunns brunns force-pushed the feature/run-e2e-in-cd-pipeline branch from e7533a0 to 5df61a9 Compare June 4, 2024 08:48
@brunns brunns marked this pull request as ready for review June 4, 2024 10:19
Copy link
Contributor

@KevinEtchells KevinEtchells left a comment

Choose a reason for hiding this comment

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

Nice one!

@@ -54,8 +54,7 @@ jobs:
cp .env.integration .env
echo AZURE_OPENAI_ENDPOINT=${{ secrets.AZURE_OPENAI_ENDPOINT }} >> .env
echo AZURE_OPENAI_API_KEY=${{ secrets.AZURE_OPENAI_API_KEY }} >> .env
docker compose up -d --wait elasticsearch
docker compose up -d --wait core-api worker
docker compose up -d --wait elasticsearch core-api worker db django_app
Copy link
Collaborator

Choose a reason for hiding this comment

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

annoyingly we have found that the docker-compose depends_on is not sufficient to ensure that elastic is ready to accept connections, this leads to other services (especially the worker for some reason) failing to start, hence why elastic is started before all the others

pip install boto3
pip install python-jose
pip install websockets
poetry install --with dev
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@@ -146,7 +144,7 @@

HOST = (
"redbox.ai.cabinetoffice.gov.uk"
if ENVIRONMENT.lower() == "prod"
if ENVIRONMENT == "prod"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if ENVIRONMENT == "prod"
if ENVIRONMENT == "PROD"

@brunns brunns merged commit 7387cc6 into main Jun 4, 2024
10 checks passed
@brunns brunns deleted the feature/run-e2e-in-cd-pipeline branch June 4, 2024 12:21
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.

3 participants