From e81ff58f10eb4cba9feb761fba792fe2e4f6f545 Mon Sep 17 00:00:00 2001 From: Jonathan Kovarik Date: Mon, 28 Oct 2024 10:44:18 -0600 Subject: [PATCH] Ecarton/cumulus 3928 imf work (#3831) (#3842) * guarantee non-numeric nonNumericString * bringing in pg8.13 snyk suggestion * trying to kcik up the sync-granules task error * trying to get repeatable tries to sync-granules * focus on just the important part in syncgranule * trying to get publish to work * does only this need to change to import? * move to import function import * reverting bad code for testing reasons * changelog * keep string length the same, no reason to twiddle this Co-authored-by: etcart <37375117+etcart@users.noreply.github.com> --- CHANGELOG.md | 5 +++++ lambdas/db-migration/package.json | 2 +- lambdas/db-provision-user-database/package.json | 2 +- packages/db/package.json | 2 +- packages/db/tests/test-config.js | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8680f913813..236719bafc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,11 @@ included in the future will have a corresponding CHANGELOG entry in future relea ### Changed +- **CUMULUS-3928** + - updated publish scripting to use cumulus.bot@gmail.com for user email + - updated publish scripting to use esm over common import of latest-version + - updated bigint testing to remove intermitted failure source. + - updated postgres dependency version - **CUMULUS-3838** - Updated python dependencies to latest: - cumulus-process-py 1.4.0 diff --git a/lambdas/db-migration/package.json b/lambdas/db-migration/package.json index 9bccadcdf33..14588ccacd0 100644 --- a/lambdas/db-migration/package.json +++ b/lambdas/db-migration/package.json @@ -22,6 +22,6 @@ "dependencies": { "@cumulus/db": "18.5.1", "knex": "2.4.1", - "pg": "~8.10" + "pg": "~8.13" } } diff --git a/lambdas/db-provision-user-database/package.json b/lambdas/db-provision-user-database/package.json index 26cc36a178a..e58313d401a 100644 --- a/lambdas/db-provision-user-database/package.json +++ b/lambdas/db-provision-user-database/package.json @@ -32,7 +32,7 @@ "@cumulus/common": "18.5.1", "@cumulus/db": "18.5.1", "knex": "2.4.1", - "pg": "~8.10" + "pg": "~8.13" }, "devDependencies": { "@types/pg": "^7.14.4" diff --git a/packages/db/package.json b/packages/db/package.json index 447dd02727f..2b5e81a50da 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -43,7 +43,7 @@ "is-valid-hostname": "1.0.2", "knex": "2.4.1", "lodash": "^4.17.21", - "pg": "~8.10", + "pg": "~8.13", "snake-camel": "^1.0.6", "uuid": "8.3.2" }, diff --git a/packages/db/tests/test-config.js b/packages/db/tests/test-config.js index 50023a04ef9..da4a6f22a1d 100644 --- a/packages/db/tests/test-config.js +++ b/packages/db/tests/test-config.js @@ -442,7 +442,7 @@ test('canSafelyConvertBigInt() throws exception if number exceeds safe range', ( }); test('canSafelyConvertBigInt() throws exception for non-numeric string', (t) => { - const nonNumericString = cryptoRandomString({ length: 10 }); + const nonNumericString = `a${cryptoRandomString({ length: 9 })}`; t.throws( () => canSafelyConvertBigInt(nonNumericString), {