Refresh dev environment on deploy - #1361
Conversation
7bb9dff to
a80d6f3
Compare
a80d6f3 to
183ec9e
Compare
af8ea4c to
ee9cb54
Compare
… to return the test user back to normalcy
ee9cb54 to
c46dd53
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…onment to align with what prepare_s3.py does
…-of-sync-between-prod-and-preprod
This comment was marked as low quality.
This comment was marked as low quality.
This comment was marked as outdated.
This comment was marked as outdated.
This isn't a concern, we don't run locally with |
…_id-based indexing
This comment was marked as outdated.
This comment was marked as outdated.
…est_prepare_environment.py and test_prepare_s3.py
This comment was marked as outdated.
This comment was marked as outdated.
…ts, remove stale responses.jsonl assertion
|
Claude finished @252afh's task in 49s —— View job PR Review
Clean implementation — dev-only allowlist (
|
georgia-i-ai
left a comment
There was a problem hiding this comment.
LGTM, apart from the concern about syncing between s3 and db, but not a major issue for dummy data.
| self._seed_consultation(s3_client, bucket, "dummy-s3-only", questions_data, timestamp) | ||
|
|
||
| # SETUP — inputs only | ||
| self._seed_consultation(s3_client, bucket, "dummy-setup", questions_data, timestamp) |
There was a problem hiding this comment.
Right, makes sense. Don't really like that these are set up quite separately - is there a danger of them getting out of sync? I know it's dummy data, but seems like it could get quite messy. Not something we need to fix here, but maybe something to raise as a tech debt issue to think about later if so.
…-of-sync-between-prod-and-preprod
|
Claude finished @252afh's task in 1m 13s —— View job PR Review
Clean implementation —
|
…-of-sync-between-prod-and-preprod
|
Claude finished @252afh's task in 37s —— View job PR Review
Clean implementation. The
|
…-of-sync-between-prod-and-preprod
|
Claude finished @252afh's task in 49s —— View job PR Review
Clean implementation overall —
|
…-of-sync-between-prod-and-preprod
|
Claude finished @252afh's task in 26s —— View job PR Review
Clean implementation —
|
Context
We would like to change the way that we handle and make use of the dev/preprod environments. To do this we want to reset the dev env back to a standard set of consultations in the db and in s3 on every deploy. This originally did include preprod, but there shouldn't be any preprod changes left in the code.
This will allow us to test on a fresh env in dev when we need to, but maintain preprod as a long-lived mirror of prod to enable design reviews and evaluation testing etc.
There will be a follow-up ticket to add all admin users to the created consultations, but this PR is big enough already
Changes proposed in this pull request
Guidance to review
The files that are only ruff changes
These can likely be ignored or quickly reviewed