Closed GeoWill closed 9 hours ago
Two quick thoughts on this, I've not thought either through fully:
DC_ENVIRONMENT
in settings rather than passing it through the application like you're doing? e.g we look for it here, so we could just set it there as well, and then see if settings.DC_ENVIRONMENT
is set elsewhere?Good points.
This does what you suggest, which is also easier to test!
I changed the region we use in tests to eu-west-2 which meant touching the wdiv-s3-trigger
tests too.
Few more tidy ups. Now when the command tries to get the LAST_IMPORT_SHA
from parameter store it checks if the sha exists in the tree. If it doesn't and the environment is development
it just returns the sha for the HEAD of master branch. If the sha doesn't exist in the tree and the environment is something else, it throws an error.
This should fix and issue we were having where dev deploys would 'fail' CI because the 'LAST_IMPORT_SHA' in parameter store had been updated to a value which wasn't in the tree anymore, meaning we couldn't git diff against it.