Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cumulus 3742 record generation script (#3679)
* little POC * attempting s3 interface * more intelligent naming? * ci specific test target so that we dno't do this locally * expanded boilerplate to check how it works * new delibterate failure * using jq * boilerplate expanded all around * pull out the @Cumulus pprefix * deliberate failure to look at structure * a bunch of chances to fail to get a wider set of errors * guaranteed failure * forced failure in logger * fix pipe failing and fix random failures * fix copypasta * date without slashes to keep from overnesting * remove deliberate test failures * better naming for bucket * works but no tests yet * trim down and parse more info * Initial commit * WIP testing needs new date format * new date format * string format updates and tests turned on * point to the right bucket * remove unneeded import * remove unneeded dev dep * code cleanup * add test:ci to unit failure archive code * small cleanup * switch to scripts to reduce the amount of little bits of code * fix grep symbol * pass in aws credentials from system * remove delibterate failure * add scripts to tsconfig.eslint.json * linter fixes * changelog * how bout this? * push to s3 needs to happen outside docker container * prepare target * refactor to get aws credentials into imgage * remove the aws push from unit-tests * turn off the ci script in this for the moment * get aws tow ork * how bout this to get units to work * tsc:listEmittedFiles * test fixes * remove and ignore the stream output from ci * remove mkdir from package.json * cleanup aws creds leftover * Fix shell script logic * check deliberate failure again * pipe standard error to tee * coverage numbers * random failures * why didn't a real error end up in s3 * creating the target fileexplicitly * why no report? * no typpo backslack * exit more exitly? * correctly call bash function * will this solve my problem * but why don't outputs come out anymore? * explicit build dir? * usr /tmp directory? * see if I Can turn log tailing back on * central set of CUMULUS_UNIT_TEST_DATA * remove delibterate failures * make sure unit-logs file is removed * delete file in docker if it was created in docker * get defaults so local stack still works * Unit test refactor * Refactor pipeline * Revert "Merge branch 'jk/CUMULUS-1/debug/http-test' into CUMULUS-3720-unit-test-failure-archive" This reverts commit f823f24, reversing changes made to 004d7f3. * Revert "Merge branch 'jk/CUMULUS-1/debug/http-test' into CUMULUS-3720-unit-test-failure-archive" This reverts commit 004d7f3, reversing changes made to ac0b449. * WIP breaking tyring to switch to ts * looks like this needs to have specified an environment prefix * why tsc failure * fix ts errors in main.ts * lint fix * lower case enforcement and ensure bucket exists * WIP brought resources into the same directory * hardcoded strings to lowercase * WIP guessing at gran/file/exec upload * changed test coverage * make sure tail is spittin gout all of its data before being killed * adding changelog * DISABLE_PG_SSL * WIP granules, files and executions work but collections don't * puts up many collections/granules/files/executions/granule-executions * works though not user friendly * switch to top level parallelization using pmap * de-parallelize execution-granules upload * flow down from user arguments * less chatty debug * use env vars to set DEPLOYMENT and bucket * proper bucket * changelog * linter error * exeuctions per granule ratio argument * pass around models to share pointers between threads * properly handle granulesK * add tryCatches * temp check what our args are after parsing * stupid log levels * remove debug output * typehints and typing improvements * tests broken wip * much less clujey generator but still doesn't work * tests added * more jsdocs * files better paired to collection configuration * docstring for files * env variable configuration * pg db collections rather than api * error install * move provider to pg model and remove DEPLOYMENT and INTENRAL_BUCKET * add Readme for invocation clarity * cleanup * linter fixes * bugfixes * remove chatty printout * knex typing * missed Knex specification * rounding out unit tests * linter error * don't know where this came in * add progess bar to avoid integer spam but let user know * name fix (it's not pretending) * sampleFileName corrected * lint fixes * fix leftover debug variable * typo fix in readme * refactor to put loaders in separate file * tests expanded and improved * PR feedback on var naming and configurability * PR feedback on generator readability * need longer unique IDs for granule and file, being limited by collisions * typo fix * pr feedback readme fix * pull const declaration outside loop as let * little nit for this to be more realistic * switch to fake collections and providers * coverage update and added superficial tests for colelction/provider * get rid of unnecessary json files * lint fixes * migrate to inserts * varied statuses * cleaned up variance branch * coverage * lint fix * error fix in batch params * fix t yping in insert * test for params returned from iterableGenerator * remove swallowErrors arg and just use pmap stopOn * lint error * add end to end test for the main function * simplify for ci debug, serial end to end --------- Co-authored-by: Jonathan Kovarik <[email protected]> Co-authored-by: Jonathan Kovarik <[email protected]>
- Loading branch information