-
Notifications
You must be signed in to change notification settings - Fork 4
NRL-1884 seed script generates perf test input files #1119
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
NRL-1884 seed script generates perf test input files #1119
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done ✅
|
🚀 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