Skip to content

Commit cd7e523

Browse files
Merge pull request #520 from nasa/v1.9.1-release-lf
V1.9.1 release lf
2 parents b53aa03 + 0a73809 commit cd7e523

File tree

28 files changed

+125
-100
lines changed

28 files changed

+125
-100
lines changed

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [v1.9.1] - 2018-08-22
10+
11+
**Please Note** To take advantage of the added granule tracking API functionality, updates are required for the message adapter and its libraries. You should be on the following versions:
12+
- `cumulus-message-adapter` 1.0.9+
13+
- `cumulus-message-adapter-js` 1.0.4+
14+
- `cumulus-message-adapter-java` 1.2.7+
15+
- `cumulus-message-adapter-python` 1.0.5+
16+
917
### Added
1018

11-
- **CUMULUS-687** Added logs endpoint to search for logs from a specific workflow execution. Added integration test
19+
- **CUMULUS-687** Added logs endpoint to search for logs from a specific workflow execution in `@cumulus/api`. Added integration test.
1220
- **CUMULUS-836** - `@cumulus/deployment` supports a configurable docker storage driver for ECS. ECS can be configured with either `devicemapper` (the default storage driver for AWS ECS-optimized AMIs) or `overlay2` (the storage driver used by the NGAP 2.0 AMI). The storage driver can be configured in `app/config.yml` with `ecs.docker.storageDriver: overlay2 | devicemapper`. The default is `overlay2`.
1321
- To support this configuration, a [Handlebars](https://handlebarsjs.com/) helper `ifEquals` was added to `packages/deployment/lib/kes.js`.
1422
- **CUMULUS-836** - `@cumulus/api` added IAM roles required by the NGAP 2.0 AMI. The NGAP 2.0 AMI runs a script `register_instances_with_ssm.py` which requires the ECS IAM role to include `ec2:DescribeInstances` and `ssm:GetParameter` permissions.
1523

1624
### Fixed
25+
1726
- **CUMULUS-836** - `@cumulus/deployment` uses `overlay2` driver by default and does not attempt to write `--storage-opt dm.basesize` to fix [this error](https://github.com/moby/moby/issues/37039).
1827
- **CUMULUS-413** Kinesis processing now captures all errrors.
1928
- Added kinesis fallback mechanism when errors occur during record processing.
@@ -25,15 +34,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2534
- **CUMULUS-855** Adds integration test for kinesis' error path.
2635
- **CUMULUS-686** Added workflow task name and version tracking via `@cumulus/api` executions endpoint under new `tasks` property, and under `workflow_tasks` in step input/output.
2736
- Depends on `cumulus-message-adapter` 1.0.9+, `cumulus-message-adapter-js` 1.0.4+, `cumulus-message-adapter-java` 1.2.7+ and `cumulus-message-adapter-python` 1.0.5+
28-
29-
### Fixed
3037
- **CUMULUS-771**
3138
- Updated sync-granule to stream the remote file to s3
3239
- Added integration test for ingesting granules from ftp provider
3340
- Updated http/https integration tests for ingesting granules from http/https providers
3441
- **CUMULUS-862** Updated `@cumulus/integration-tests` to handle remote lambda output
3542

3643
### Changed
44+
3745
- In `@cumulus/deployment`, changed the example app config.yml to have additional IAM roles
3846

3947
## [v1.9.0] - 2018-08-06
@@ -444,7 +452,8 @@ We may need to update the api documentation to reflect this.
444452

445453
## [v1.0.0] - 2018-02-23
446454

447-
[Unreleased]: https://github.com/nasa/cumulus/compare/v1.9.0...HEAD
455+
[Unreleased]: https://github.com/nasa/cumulus/compare/v1.9.1...HEAD
456+
[v1.9.1]: https://github.com/nasa/cumulus/compare/v1.9.0...v1.9.1
448457
[v1.9.0]: https://github.com/nasa/cumulus/compare/v1.8.1...v1.9.0
449458
[v1.8.1]: https://github.com/nasa/cumulus/compare/v1.8.0...v1.8.1
450459
[v1.8.0]: https://github.com/nasa/cumulus/compare/v1.7.0...v1.8.0

example/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@
2323
]
2424
},
2525
"dependencies": {
26-
"@cumulus/api": "^1.9.0",
27-
"@cumulus/common": "^1.9.0",
28-
"@cumulus/deployment": "^1.9.0",
29-
"@cumulus/discover-granules": "^1.9.0",
30-
"@cumulus/discover-pdrs": "^1.9.0",
31-
"@cumulus/hello-world": "^1.9.0",
32-
"@cumulus/integration-tests": "^1.9.0",
33-
"@cumulus/move-granules": "^1.9.0",
34-
"@cumulus/parse-pdr": "^1.9.0",
35-
"@cumulus/pdr-status-check": "^1.9.0",
36-
"@cumulus/post-to-cmr": "^1.9.0",
37-
"@cumulus/queue-granules": "^1.9.0",
38-
"@cumulus/queue-pdrs": "^1.9.0",
39-
"@cumulus/sf-sns-report": "^1.9.0",
40-
"@cumulus/sync-granule": "^1.9.0",
41-
"@cumulus/test-data": "^1.9.0",
42-
"@cumulus/test-processing": "^1.9.0",
26+
"@cumulus/api": "^1.9.1",
27+
"@cumulus/common": "^1.9.1",
28+
"@cumulus/deployment": "^1.9.1",
29+
"@cumulus/discover-granules": "^1.9.1",
30+
"@cumulus/discover-pdrs": "^1.9.1",
31+
"@cumulus/hello-world": "^1.9.1",
32+
"@cumulus/integration-tests": "^1.9.1",
33+
"@cumulus/move-granules": "^1.9.1",
34+
"@cumulus/parse-pdr": "^1.9.1",
35+
"@cumulus/pdr-status-check": "^1.9.1",
36+
"@cumulus/post-to-cmr": "^1.9.1",
37+
"@cumulus/queue-granules": "^1.9.1",
38+
"@cumulus/queue-pdrs": "^1.9.1",
39+
"@cumulus/sf-sns-report": "^1.9.1",
40+
"@cumulus/sync-granule": "^1.9.1",
41+
"@cumulus/test-data": "^1.9.1",
42+
"@cumulus/test-processing": "^1.9.1",
4343
"aws-sdk": "^2.227.1",
4444
"child-process-promise": "^2.2.1",
4545
"sleep-promise": "^8.0.1"

example/spec/helpers/kinesisHelpers.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function kinesisEventFromSqsMessage(message) {
226226
catch (error) {
227227
console.log('Error parsing KinesisEventFromSqsMessage(message)', JSON.stringify(message));
228228
console.log(error);
229-
kinesisEvent = { identifier: 'Bad Message' };
229+
kinesisEvent = { identifier: 'Fake Wrong Message' };
230230
}
231231
return kinesisEvent;
232232
}
@@ -244,29 +244,28 @@ function isTargetMessage(message, recordIdentifier) {
244244
}
245245

246246
/**
247-
* Wait until a kinesisRecord appears in an SQS message who's identifier matches the input recordIdentifier. Wait up to 5 minutes.
247+
* Wait until a kinesisRecord appears in an SQS message who's identifier matches the input recordIdentifier. Wait up to 10 minutes.
248248
*
249249
* @param {string} recordIdentifier - random string to match found messages against.
250250
* @param {string} queueUrl - kinesisFailure SQS url
251-
* @param {number} maxNumberElapsedPeriods - number of timeout intervals to wait.
251+
* @param {number} maxNumberElapsedPeriods - number of timeout intervals (5 seconds) to wait.
252252
* @returns {Object} - matched Message from SQS.
253253
*/
254-
async function waitForQueuedRecord(recordIdentifier, queueUrl, maxNumberElapsedPeriods = 60) {
254+
async function waitForQueuedRecord(recordIdentifier, queueUrl, maxNumberElapsedPeriods = 120) {
255255
const timeoutInterval = 5000;
256256
let queuedRecord;
257257
let elapsedPeriods = 0;
258258

259259
while (!queuedRecord && elapsedPeriods < maxNumberElapsedPeriods) {
260260
const messages = await receiveSQSMessages(queueUrl);
261261
if (messages.length > 0) {
262-
263262
const targetMessage = messages.find((message) => isTargetMessage(message, recordIdentifier));
264263
if (targetMessage) return targetMessage;
265264
}
266265
await timeout(timeoutInterval);
267266
elapsedPeriods += 1;
268267
}
269-
return {};
268+
return { waitForQueuedRecord: 'never found record on queue' };
270269
}
271270

272271
module.exports = {

example/spec/kinesisTests/KinesisTestErrorSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe('The kinesisConsumer receives a bad record.', () => {
3636
beforeAll(async () => {
3737
this.defaultTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
3838
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10 * 60 * 1000;
39+
this.maxNumberElapsedPeriods = jasmine.DEFAULT_TIMEOUT_INTERVAL / 5000;
3940
await tryCatchExit(async () => {
4041
await createOrUseTestStream(streamName);
4142
console.log(`\nWaiting for active streams: '${streamName}'.`);
@@ -56,7 +57,7 @@ describe('The kinesisConsumer receives a bad record.', () => {
5657
it('Eventually puts the bad record on the failure queue.', async () => {
5758
console.log('\nWait for minimum duration of failure process ~3min');
5859
console.log('\nWait for record on:', failureSqsUrl);
59-
const queuedRecord = await waitForQueuedRecord(testRecordIdentifier, failureSqsUrl);
60+
const queuedRecord = await waitForQueuedRecord(testRecordIdentifier, failureSqsUrl, this.maxNumberElapsedPeriods);
6061
this.ReceiptHandle = queuedRecord.ReceiptHandle;
6162
const queuedKinesisEvent = kinesisEventFromSqsMessage(queuedRecord);
6263
expect(queuedKinesisEvent).toEqual(badRecord);

example/workflows.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ IngestGranule:
446446
destination: '{$.cumulus_meta.process}'
447447
Type: Task
448448
Resource: ${SyncGranuleLambdaFunction.Arn}
449+
Retry:
450+
- ErrorEquals:
451+
- States.ALL
452+
IntervalSeconds: 2
453+
MaxAttempts: 3
449454
Catch:
450455
- ErrorEquals:
451456
- States.ALL
@@ -470,6 +475,11 @@ IngestGranule:
470475
destination: '{$.cumulus_meta.process}'
471476
Type: Task
472477
Resource: ${SyncGranuleNoVpcLambdaFunction.Arn}
478+
Retry:
479+
- ErrorEquals:
480+
- States.ALL
481+
IntervalSeconds: 2
482+
MaxAttempts: 3
473483
Catch:
474484
- ErrorEquals:
475485
- States.ALL
@@ -624,11 +634,11 @@ KinesisTriggerTest:
624634
Next: StopStatus
625635
Next: StopStatus
626636
CnmResponseFail:
627-
<<: *CnmResponseDefaults
637+
<<: *CnmResponseDefaults
628638
Catch:
629639
- <<: *ErrorEqualDefaults
630-
Next: StopStatusFail
631-
Next: StopStatusFail
640+
Next: StopStatusFail
641+
Next: StopStatusFail
632642
StopStatus: &StopStatusDefaults
633643
Type: Task
634644
Resource: ${sf2snsEndLambdaFunction.Arn}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "2.9.0",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"npmClient": "yarn",
55
"packages": [
66
"packages/*",

packages/api/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cumulus/api",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "Lambda functions for handling all daac's API operations",
55
"main": "index.js",
66
"engine": {
@@ -34,10 +34,10 @@
3434
"author": "Cumulus Authors",
3535
"license": "Apache-2.0",
3636
"dependencies": {
37-
"@cumulus/cmrjs": "^1.9.0",
38-
"@cumulus/common": "^1.9.0",
39-
"@cumulus/ingest": "^1.9.0",
40-
"@cumulus/pvl": "^1.9.0",
37+
"@cumulus/cmrjs": "^1.9.1",
38+
"@cumulus/common": "^1.9.1",
39+
"@cumulus/ingest": "^1.9.1",
40+
"@cumulus/pvl": "^1.9.1",
4141
"@mapbox/dyno": "^1.4.1",
4242
"ajv": "^5.2.2",
4343
"archiver": "^2.1.1",

packages/cmrjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cumulus/cmrjs",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "A node SDK for CMR",
55
"engine": {
66
"node": ">=8.10.0"
@@ -31,7 +31,7 @@
3131
"author": "Cumulus Authors",
3232
"license": "Apache-2.0",
3333
"dependencies": {
34-
"@cumulus/common": "^1.9.0",
34+
"@cumulus/common": "^1.9.1",
3535
"got": "^8.3.0",
3636
"lodash.property": "^4.4.2",
3737
"public-ip": "^2.3.5",

packages/common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cumulus/common",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "Common utilities used across tasks",
55
"keywords": [
66
"GIBS",
@@ -40,7 +40,7 @@
4040
"author": "Cumulus Authors",
4141
"license": "Apache-2.0",
4242
"dependencies": {
43-
"@cumulus/test-data": "^1.9.0",
43+
"@cumulus/test-data": "^1.9.1",
4444
"ajv": "^5.2.2",
4545
"async": "^2.0.0",
4646
"aws-sdk": "^2.238.1",

packages/deployment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cumulus/deployment",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "Deployment templates for cumulus",
55
"scripts": {
66
"test": "ava",

0 commit comments

Comments
 (0)