NRL-1884 seed script generates perf test input files#1119
NRL-1884 seed script generates perf test input files#1119anjalitrace2-nhs merged 16 commits intodevelopfrom
Conversation
…om:NHSDigital/NRLF into NRL-1884-seed-script-generates-input-files
… extract was taken. Zip & save to s3 per table name
…es for refreshing input files. Will not be used much but helpful in case something goes wrong producing these files
…y generated from prep steps
…make tests read newly downloaded file
|
🚀 PR environment successfully deployed. |
mattdean3-nhs
left a comment
There was a problem hiding this comment.
Love this 😍 it works a treat.
Only issue I hit while running was that the seed-pointers-extract.csv file wasn't there (see comment for client_perftest.js).
| const csvPath = __ENV.DIST_PATH | ||
| ? `../../../${__ENV.DIST_PATH}/producer_reference_data.csv` | ||
| : "../producer_reference_data.csv"; | ||
| ? `../../../${__ENV.DIST_PATH}/seed-pointers-extract.csv` |
There was a problem hiding this comment.
should this be the .csv file in the ./dist/nft directory? the one that comes out of the .zip file? (same in consumer/client_perftest.js too)
There was a problem hiding this comment.
this is that same file - it's copied out of the unzipped directory in the prepare step (mostly to remove the table name from the file name).
This is a bit confusing though! I'll skip the copy step and use the file inside the ./dist/nft instead 👍
|
🚀 PR environment successfully deployed. |
…n relying on prepare step to copy around. Include table name in info file rather than input file name
23cb021 to
5cd1939
Compare
|
|
🚀 PR environment successfully deployed. |



patient_counter <= patients_with_pointersrather than<)Tested seed stuff works using a tiny test table anjali-test-2 by seeding ~20 pointers and checking files generated. Ran prepare step and ran (most - all successes 30 mins in) perf tests and it was all able to use the newly generated input files & download them from s3