On PROD, S3watcher currently sends random sample of 1% of images from FTP to the ingest bucket for the lower environment (TEST) so there is a stream of incoming files so we can see the lower environment is working. See https://github.com/guardian/grid/pull/4033.
This PR makes S3 watcher a further random sample (size configurable using env var) to the lower environment's Ingest Queue Bucket to test the new infastructure introduced in https://github.com/guardian/grid/pull/4201
## How should a reviewer test this change?
How can success be measured?
When deployed (after the corresponding platform change on this PR), the TEST environment will get a regular stream of images into the new queue mechanism.
The size of the sample will be configurable by manually changing the environment for s3 watcher lambda.
Who should look at this?
Tested? Documented?
[ ] locally by committer
[ ] locally by Guardian reviewer
[ ] on the Guardian's TEST environment
[ ] relevant documentation added or amended (if needed)
All deployment options
- [Deploy build 12154 to TEST](https://riffraff.gutools.co.uk/deployment/deployAgain?project=media-service%3A%3Agrid%3A%3Aall&build=12154&stage=TEST&updateStrategy=MostlyHarmless&action=deploy)
- [Deploy parts of build 12154 to TEST by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=media-service%3A%3Agrid%3A%3Aall&build=12154&stage=TEST&updateStrategy=MostlyHarmless)
What does this change?
On PROD, S3watcher currently sends random sample of 1% of images from FTP to the ingest bucket for the lower environment (TEST) so there is a stream of incoming files so we can see the lower environment is working. See https://github.com/guardian/grid/pull/4033.
This PR makes S3 watcher a further random sample (size configurable using env var) to the lower environment's Ingest Queue Bucket to test the new infastructure introduced in https://github.com/guardian/grid/pull/4201
## How should a reviewer test this change?How can success be measured?
When deployed (after the corresponding platform change on this PR), the TEST environment will get a regular stream of images into the new queue mechanism.
The size of the sample will be configurable by manually changing the environment for s3 watcher lambda.
Who should look at this?
Tested? Documented?