Skip to content

Conversation

@anjalitrace2-nhs
Copy link
Contributor

@anjalitrace2-nhs anjalitrace2-nhs commented Jan 13, 2026

  • seed script will now generate the needed input files for perf tests on the fly and upload these to S3 (along with some metadata about when the file was generated e.g. commit hash). This enables the seed script to be run from within our new bastion & saves us the previous computationally expensive generation which scanned the entire pointer table 3 times
  • repurpose generate_pointer_table_extract function to be useful for refreshing these input file based on current table state. Ran this for baseline table.
  • perf tests prepare step will grab the input files from s3 and regenerate distribution info before a test run (cheap to do)
  • get rid of unused input files & steps
  • fix a bug in the seed script where the final batch of writes were never written (patient_counter <= patients_with_pointers rather than <)
  • renamed px > patient(s) for my brain
  • updated readme instructions to reflect updated make commands

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

…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
@github-actions
Copy link

🚀 PR environment successfully deployed.
Commit Hash: 16bda8d3603f0d7adc2374b8e36147c753182cfd
URL: https://nrl1884-01ba47.api.record-locator.dev.national.nhs.uk/

@anjalitrace2-nhs anjalitrace2-nhs changed the title NRL-1884 seed script generates input files NRL-1884 seed script generates perf test input files Jan 13, 2026
@anjalitrace2-nhs anjalitrace2-nhs marked this pull request as ready for review January 13, 2026 16:26
@anjalitrace2-nhs anjalitrace2-nhs requested a review from a team as a code owner January 13, 2026 16:26
Copy link
Contributor

@mattdean3-nhs mattdean3-nhs left a 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`
Copy link
Contributor

@mattdean3-nhs mattdean3-nhs Jan 14, 2026

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)

Copy link
Contributor Author

@anjalitrace2-nhs anjalitrace2-nhs Jan 14, 2026

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 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ✅

@github-actions
Copy link

🚀 PR environment successfully deployed.
Commit Hash: 23cb0216ca2f990cbd8c42079cfc9966c97a9d5e
URL: https://nrl1884-01ba47.api.record-locator.dev.national.nhs.uk/

…n relying on prepare step to copy around. Include table name in info file rather than input file name
@sonarqubecloud
Copy link

@github-actions
Copy link

🚀 PR environment successfully deployed.
Commit Hash: 5cd19394e3f5d2a5f358e343f7718018c1ad933f
URL: https://nrl1884-01ba47.api.record-locator.dev.national.nhs.uk/

@anjalitrace2-nhs anjalitrace2-nhs merged commit 6d08175 into develop Jan 14, 2026
9 checks passed
@anjalitrace2-nhs anjalitrace2-nhs deleted the NRL-1884-seed-script-generates-input-files branch January 14, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants