Skip to content

Commit

Permalink
Release-6.0.1 (#2153)
Browse files Browse the repository at this point in the history
* docker cleanup cronjob flag & variable

* release v6.0.1

* increase scroll duration to fix reconciliation specs

* Update tf-modules/cumulus/variables.tf

Co-authored-by: Jonathan Kovarik <[email protected]>

* backport note

* Changes waitForAsyncOperationStatus to fail if status not reached. (#2125)

Co-authored-by: Jonathan Kovarik <[email protected]>
Co-authored-by: Matt Savoie <[email protected]>
  • Loading branch information
3 people authored Mar 25, 2021
1 parent 4617ff8 commit 6a3a3d7
Show file tree
Hide file tree
Showing 65 changed files with 340 additions and 269 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [v6.0.1] 2021-03-23

### MIGRATION NOTES

Cumulus 6.0.1 is a backport release to address urgent, specific issues faced by a DAAC with the Cumulus ECS Cluster.
This fix will not be carried forward in the same form, instead a similar but more useful and configurable change will be worked on the forward release builds.

### Added

- **CUMULUS-2421**
- Added cron job to clean up docker storage blocks to ECS cluster template.
- Added `ecs_include_docker_cleanup_cronjob` boolean variable to the Cumulus module to enable this behavior. Default value is `false`.

## [v6.0.0] 2021-02-16

### MIGRATION NOTES
Expand Down Expand Up @@ -3772,6 +3785,7 @@ Note: There was an issue publishing 1.12.0. Upgrade to 1.12.1.
## [v1.0.0] - 2018-02-23

[unreleased]: https://github.com/nasa/cumulus/compare/v6.0.0...HEAD
[v6.0.1]: https://github.com/nasa/cumulus/compare/v6.0.0...v6.0.1
[v6.0.0]: https://github.com/nasa/cumulus/compare/v5.0.1...v6.0.0
[v5.0.1]: https://github.com/nasa/cumulus/compare/v5.0.0...v5.0.1
[v5.0.0]: https://github.com/nasa/cumulus/compare/v4.0.0...v5.0.0
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
* Phil Osip
* Sara Chaparro Diaz
* Seth Vincent
* Snyk bot
1 change: 1 addition & 0 deletions example/cumulus-tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module "cumulus" {
ecs_cluster_min_size = 2
ecs_cluster_desired_size = 2
ecs_cluster_max_size = 3
ecs_include_docker_cleanup_cronjob = var.ecs_include_docker_cleanup_cronjob
key_name = var.key_name
ecs_custom_sg_ids = var.ecs_custom_sg_ids

Expand Down
5 changes: 5 additions & 0 deletions example/cumulus-tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ variable "ecs_cluster_instance_subnet_ids" {
default = []
}

variable "ecs_include_docker_cleanup_cronjob" {
type = bool
default = false
}

variable "ems_datasource" {
type = string
description = "the data source of EMS reports"
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/asyncOperations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/test-async-operations",
"version": "6.0.0",
"version": "6.0.1",
"description": "AsyncOperations Test Lambda",
"main": "index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/python-processing/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cumulus/python-process-activity",
"private": true,
"version": "6.0.0",
"version": "6.0.1",
"description": "Python reference activity",
"homepage": "https://github.com/nasa/cumulus/tree/master/example/lambdas/python-reference-activity",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/python-reference-activity/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cumulus/python-reference-activity",
"private": true,
"version": "6.0.0",
"version": "6.0.1",
"description": "Python reference activity",
"homepage": "https://github.com/nasa/cumulus/tree/master/example/lambdas/python-reference-activity",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/python-reference-task/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cumulus/python-reference-task",
"private": true,
"version": "6.0.0",
"version": "6.0.1",
"description": "Python reference task",
"main": "index.js",
"homepage": "https://github.com/nasa/cumulus/tree/master/example/lambdas/python-reference-task",
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/s3AccessTest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/test-s3-access",
"version": "6.0.0",
"version": "6.0.1",
"description": "S3 Access Test Lambda",
"main": "index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/snsS3Test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/test-sns-s3",
"version": "6.0.0",
"version": "6.0.1",
"description": "SNS to S3 Test Lambda",
"main": "index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion example/lambdas/versionUpTest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/test-version-up",
"version": "6.0.0",
"version": "6.0.1",
"description": "Version Up Test Lambda",
"main": "index.js",
"private": true,
Expand Down
48 changes: 24 additions & 24 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/cumulus-integration-tests",
"version": "6.0.0",
"version": "6.0.1",
"description": "Cumulus Integration Test Deployment",
"private": true,
"main": "index.js",
Expand Down Expand Up @@ -44,30 +44,30 @@
]
},
"dependencies": {
"@cumulus/api": "6.0.0",
"@cumulus/api-client": "6.0.0",
"@cumulus/aws-client": "6.0.0",
"@cumulus/checksum": "6.0.0",
"@cumulus/cmr-client": "6.0.0",
"@cumulus/cmrjs": "6.0.0",
"@cumulus/common": "6.0.0",
"@cumulus/discover-granules": "6.0.0",
"@cumulus/discover-pdrs": "6.0.0",
"@cumulus/files-to-granules": "6.0.0",
"@cumulus/hello-world": "6.0.0",
"@cumulus/integration-tests": "6.0.0",
"@cumulus/message": "6.0.0",
"@cumulus/move-granules": "6.0.0",
"@cumulus/parse-pdr": "6.0.0",
"@cumulus/pdr-status-check": "6.0.0",
"@cumulus/post-to-cmr": "6.0.0",
"@cumulus/queue-granules": "6.0.0",
"@cumulus/queue-pdrs": "6.0.0",
"@cumulus/sf-sqs-report": "6.0.0",
"@cumulus/sync-granule": "6.0.0",
"@cumulus/test-processing": "6.0.0"
"@cumulus/api": "6.0.1",
"@cumulus/api-client": "6.0.1",
"@cumulus/aws-client": "6.0.1",
"@cumulus/checksum": "6.0.1",
"@cumulus/cmr-client": "6.0.1",
"@cumulus/cmrjs": "6.0.1",
"@cumulus/common": "6.0.1",
"@cumulus/discover-granules": "6.0.1",
"@cumulus/discover-pdrs": "6.0.1",
"@cumulus/files-to-granules": "6.0.1",
"@cumulus/hello-world": "6.0.1",
"@cumulus/integration-tests": "6.0.1",
"@cumulus/message": "6.0.1",
"@cumulus/move-granules": "6.0.1",
"@cumulus/parse-pdr": "6.0.1",
"@cumulus/pdr-status-check": "6.0.1",
"@cumulus/post-to-cmr": "6.0.1",
"@cumulus/queue-granules": "6.0.1",
"@cumulus/queue-pdrs": "6.0.1",
"@cumulus/sf-sqs-report": "6.0.1",
"@cumulus/sync-granule": "6.0.1",
"@cumulus/test-processing": "6.0.1"
},
"devDependencies": {
"@cumulus/test-data": "6.0.0"
"@cumulus/test-data": "6.0.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,21 @@ describe('When there are granule differences and granule reconciliation is run',
});

it('generates reconciliation report through the Cumulus API', async () => {
const asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retries: 100,
});

let asyncOperation;
try {
asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retryOptions: {
retries: 70,
factor: 1.041,
},
});
} catch (error) {
fail(error);
}
expect(asyncOperation.status).toEqual('SUCCEEDED');
reportRecord = JSON.parse(asyncOperation.output);
});

Expand Down Expand Up @@ -563,13 +571,20 @@ describe('When there are granule differences and granule reconciliation is run',
});

it('generates reconciliation report through the Cumulus API', async () => {
const asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retries: 100,
});

let asyncOperation;
try {
asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retryOptions: {
retries: 70,
factor: 1.041,
},
});
} catch (error) {
fail(error);
}
reportRecord = JSON.parse(asyncOperation.output);
});

Expand Down Expand Up @@ -641,12 +656,20 @@ describe('When there are granule differences and granule reconciliation is run',
});

it('generates reconciliation report through the Cumulus API', async () => {
const asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retries: 100,
});
let asyncOperation;
try {
asyncOperation = await waitForAsyncOperationStatus({
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retryOptions: {
retries: 70,
factor: 1.041,
},
});
} catch (error) {
fail(error);
}

reportRecord = JSON.parse(asyncOperation.output);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,10 @@ describe('The S3 Ingest Granules workflow', () => {
id: asyncOperationId,
status: 'SUCCEEDED',
stackName: config.stackName,
retries: 100,
retryOptions: {
retries: 70,
factor: 1.041,
},
});

const reingestOutput = JSON.parse(asyncOperation.output);
Expand Down
8 changes: 4 additions & 4 deletions lambdas/sqs-message-remover/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/sqs-message-remover-lambda",
"version": "6.0.0",
"version": "6.0.1",
"description": "Remove processed messages from SQS queues",
"main": "src/index.js",
"private": true,
Expand Down Expand Up @@ -35,9 +35,9 @@
"author": "Cumulus Authors",
"license": "Apache-2.0",
"dependencies": {
"@cumulus/aws-client": "6.0.0",
"@cumulus/common": "6.0.0",
"@cumulus/logger": "6.0.0",
"@cumulus/aws-client": "6.0.1",
"@cumulus/common": "6.0.1",
"@cumulus/logger": "6.0.1",
"lodash": "^4.17.20"
}
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "3.20.2",
"version": "6.0.0",
"version": "6.0.1",
"packages": [
"example",
"example/lambdas/*",
Expand Down
8 changes: 4 additions & 4 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/api-client",
"version": "6.0.0",
"version": "6.0.1",
"description": "API client for working with the Cumulus archive API",
"keywords": [
"GIBS",
Expand Down Expand Up @@ -38,11 +38,11 @@
"author": "Cumulus Authors",
"license": "Apache-2.0",
"dependencies": {
"@cumulus/aws-client": "6.0.0",
"@cumulus/logger": "6.0.0",
"@cumulus/aws-client": "6.0.1",
"@cumulus/logger": "6.0.1",
"p-retry": "^2.0.0"
},
"devDependencies": {
"@cumulus/types": "6.0.0"
"@cumulus/types": "6.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/api/es/esDefaults.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const defaultESScrollSize = 1000;
const defaultESScrollDuration = '2m';
const defaultESScrollDuration = '6m';

module.exports = {
defaultESScrollSize,
Expand Down
30 changes: 15 additions & 15 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/api",
"version": "6.0.0",
"version": "6.0.1",
"description": "Lambda functions for handling all daac's API operations",
"main": "index.js",
"engines": {
Expand Down Expand Up @@ -45,19 +45,19 @@
"author": "Cumulus Authors",
"license": "Apache-2.0",
"dependencies": {
"@cumulus/aws-client": "6.0.0",
"@cumulus/cmr-client": "6.0.0",
"@cumulus/cmrjs": "6.0.0",
"@cumulus/collection-config-store": "6.0.0",
"@cumulus/common": "6.0.0",
"@cumulus/earthdata-login-client": "6.0.0",
"@cumulus/errors": "6.0.0",
"@cumulus/ingest": "6.0.0",
"@cumulus/launchpad-auth": "6.0.0",
"@cumulus/logger": "6.0.0",
"@cumulus/message": "6.0.0",
"@cumulus/pvl": "6.0.0",
"@cumulus/sftp-client": "6.0.0",
"@cumulus/aws-client": "6.0.1",
"@cumulus/cmr-client": "6.0.1",
"@cumulus/cmrjs": "6.0.1",
"@cumulus/collection-config-store": "6.0.1",
"@cumulus/common": "6.0.1",
"@cumulus/earthdata-login-client": "6.0.1",
"@cumulus/errors": "6.0.1",
"@cumulus/ingest": "6.0.1",
"@cumulus/launchpad-auth": "6.0.1",
"@cumulus/logger": "6.0.1",
"@cumulus/message": "6.0.1",
"@cumulus/pvl": "6.0.1",
"@cumulus/sftp-client": "6.0.1",
"@elastic/elasticsearch": "^5.6.20",
"@mapbox/dyno": "^1.4.2",
"aggregate-error": "^3.0.1",
Expand Down Expand Up @@ -98,6 +98,6 @@
"xml2js": "^0.4.22"
},
"devDependencies": {
"@cumulus/test-data": "6.0.0"
"@cumulus/test-data": "6.0.1"
}
}
8 changes: 4 additions & 4 deletions packages/aws-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cumulus/aws-client",
"version": "6.0.0",
"version": "6.0.1",
"description": "Utilities for working with AWS",
"keywords": [
"GIBS",
Expand Down Expand Up @@ -43,9 +43,9 @@
"author": "Cumulus Authors",
"license": "Apache-2.0",
"dependencies": {
"@cumulus/checksum": "6.0.0",
"@cumulus/errors": "6.0.0",
"@cumulus/logger": "6.0.0",
"@cumulus/checksum": "6.0.1",
"@cumulus/errors": "6.0.1",
"@cumulus/logger": "6.0.1",
"aws-sdk": "^2.585.0",
"jsonpath-plus": "^1.1.0",
"lodash": "~4.17.20",
Expand Down
Loading

0 comments on commit 6a3a3d7

Please sign in to comment.