diff --git a/CHANGELOG.md b/CHANGELOG.md index 2351eb624db..70340119074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - **CUMULUS-331:** Fix aws.downloadS3File to handle non-existent key - Using test ftp provider for discover-granules testing [CUMULUS-427] - **CUMULUS-304: "Add AWS API throttling to pdr-status-check task"** Added concurrency limit on SFN API calls. The default concurrency is 10 and is configurable through Lambda environment variable CONCURRENCY. +- **CUMULUS-414: "Schema validation not being performed on many tasks"** revised npm build scripts of tasks that use cumulus-message-adapter to place schema directories into dist directories. - **CUMULUS-271: "Empty response body from rules PUT endpoint"** Added the updated rule to response body. - Increased memory allotment for `CustomBootstrap` lambda function. Resolves failed deployments where `CustomBootstrap` lambda function was failing with error `Process exited before completing request`. This was causing deployments to stall, fail to update and fail to rollback. This error is thrown when the lambda function tries to use more memory than it is allotted. diff --git a/cumulus/tasks/discover-granules/package.json b/cumulus/tasks/discover-granules/package.json index b9583a1a641..445629397f6 100644 --- a/cumulus/tasks/discover-granules/package.json +++ b/cumulus/tasks/discover-granules/package.json @@ -13,8 +13,8 @@ "scripts": { "test": "ava", "local": "node index.js | pino", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "publishConfig": { diff --git a/cumulus/tasks/discover-pdrs/package.json b/cumulus/tasks/discover-pdrs/package.json index 2a5f41da51a..0bf7faef33a 100644 --- a/cumulus/tasks/discover-pdrs/package.json +++ b/cumulus/tasks/discover-pdrs/package.json @@ -12,8 +12,8 @@ }, "scripts": { "test": "ava", - "build": "mkdir -p dist && cp cumulus.json dist/ && webpack --progress", - "watch": "mkdir -p dist && cp cumulus.json dist/ && webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "publishConfig": { diff --git a/cumulus/tasks/discover-s3-granules/package.json b/cumulus/tasks/discover-s3-granules/package.json index 1061fe29fc5..b38b4cec9f5 100644 --- a/cumulus/tasks/discover-s3-granules/package.json +++ b/cumulus/tasks/discover-s3-granules/package.json @@ -16,8 +16,8 @@ "scripts": { "test": "ava", "local": "node index.js | pino", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "ava": { diff --git a/cumulus/tasks/hello-world/package.json b/cumulus/tasks/hello-world/package.json index 5c5efc30f58..6273b71f850 100644 --- a/cumulus/tasks/hello-world/package.json +++ b/cumulus/tasks/hello-world/package.json @@ -12,8 +12,8 @@ }, "scripts": { "test": "ava tests/*.js --serial --no-color", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "publishConfig": { diff --git a/cumulus/tasks/parse-pdr/package.json b/cumulus/tasks/parse-pdr/package.json index b9a282125b2..fd2d5d43b34 100644 --- a/cumulus/tasks/parse-pdr/package.json +++ b/cumulus/tasks/parse-pdr/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "author": "Cumulus Authors", diff --git a/cumulus/tasks/pdr-status-check/package.json b/cumulus/tasks/pdr-status-check/package.json index 74aa7aa4e83..a9d53082110 100644 --- a/cumulus/tasks/pdr-status-check/package.json +++ b/cumulus/tasks/pdr-status-check/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "author": "Cumulus Authors", diff --git a/cumulus/tasks/post-to-cmr/package.json b/cumulus/tasks/post-to-cmr/package.json index 311975ed78c..872a54c928b 100644 --- a/cumulus/tasks/post-to-cmr/package.json +++ b/cumulus/tasks/post-to-cmr/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "ava": { diff --git a/cumulus/tasks/queue-granules/package.json b/cumulus/tasks/queue-granules/package.json index a25280af232..c82495cae90 100644 --- a/cumulus/tasks/queue-granules/package.json +++ b/cumulus/tasks/queue-granules/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "ava": { diff --git a/cumulus/tasks/queue-pdrs/package.json b/cumulus/tasks/queue-pdrs/package.json index 8a942046557..cb668df09ca 100644 --- a/cumulus/tasks/queue-pdrs/package.json +++ b/cumulus/tasks/queue-pdrs/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "ava": { diff --git a/cumulus/tasks/sf-sns-report/package.json b/cumulus/tasks/sf-sns-report/package.json index a7c6bdb2e09..b7e98de5c39 100644 --- a/cumulus/tasks/sf-sns-report/package.json +++ b/cumulus/tasks/sf-sns-report/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "ava": { diff --git a/cumulus/tasks/sync-granule/package.json b/cumulus/tasks/sync-granule/package.json index aed87eb41c6..d534e03a6d2 100644 --- a/cumulus/tasks/sync-granule/package.json +++ b/cumulus/tasks/sync-granule/package.json @@ -15,8 +15,8 @@ }, "scripts": { "test": "ava", - "build": "webpack --progress", - "watch": "webpack --progress -w", + "build": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress", + "watch": "rm -rf dist && mkdir dist && cp -R schemas dist/ && webpack --progress -w", "postinstall": "npm run build" }, "author": "Cumulus Authors",