Skip to content

Commit 30b79a8

Browse files
yenes56eyenpre-commit-ci[bot]
authored
Cumulus 4388 add cnm2cma (#4149)
* cnm2cma coreification python code with toml file * move cnm2cma module into tasks * added unit test code * fixed import * CHANGELOG * New implementation through Pydantic * unit test files * terraform module. ruff linting/reformatting python code * added README. restructure the project * enhance README.md * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * CHANGELOG * use SyncGranule's input schema as this component's output. Added granuleProducerId to cnm schema * fixed path issue. Simplified build_granule_file and rewrite unit test code * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * write ruff.toml file to ignore generated files. remove unused model * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ruff format * added ruff ignore and CHANGELOG * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * build scripts * package.json and package.sh * code and tf script enhancements based on review. * config object schema * used protocol extraction to simplify the logic. Enhanced terraform scripts * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * new package.sh * build script checked in * eyen ci stack * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove single quotes to overcome eslint warning * Update lambda.tf to use cnm_to_cma as log group * move schemas under the src directory so they will be packaged as part of the artifact * clean up changelog * fixed the build package.sh path issue * cleanup old build script * removed .python-version * output the lambda cloudwatch loggroup name * output the lambda function instead of just the arn --------- Co-authored-by: eyen <david.yen@jpl.nasa.gov> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 900a1c9 commit 30b79a8

41 files changed

Lines changed: 2377 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1919
- **CUMULUS-4473**
2020
- Updated Granules Bulk Operations API endpoints to support `granuleInventoryReportName` and
2121
`s3GranuleIdInputFile` in the payload.
22+
- **CUMULUS-4388**
23+
- Added cnm_to_cma task (lambda).
24+
- Original cnm_to_cma was written in Java. Converted to Python.
2225
- **CUMULUS-4382**
2326
- Migrated the granule-invalidator task to the `tasks` directory as part of a coreification task in support of providing rolling archive functionality.
2427
- **CUMULUS-4385**

bamboo/select-stack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function determineIntegrationTestStackName(cb) {
2323
dhudelson: 'dh-ci',
2424
etcart: 'ecarton-ci',
2525
ecarton: 'ecarton-ci',
26+
eyen: 'eyen-ci',
2627
'Filip Graniczny': 'fg-ci',
2728
'James Norton': 'jn-ci',
2829
'Jenny Liu': 'jl-rds',

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ These steps should be performed in the `example` directory.
174174
Copy `.env.sample` to `.env`, filling in appropriate values for your deployment.
175175

176176
Set the `DEPLOYMENT` environment variable to match the `prefix` that you
177-
configured in your `terraform.tfvars` files.
177+
configured in your `terraform.dtfvars` files.
178178

179179
If you are deploying outside of NGAP, you may need to update `example/config.yml` to override custom settings for your deployment such as the default bucket, your Earth Data Login username for login tests, or the value of `pdrNodeNameProviderBucket`.
180180

example/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ cdd-tf:
3535
ecarton:
3636
bucket: ecarton-internal
3737

38+
eyen:
39+
bucket: eyen-internal
40+
3841
dms-opex-sbx:
3942
bucket: dms-opex-sbx-internal
4043

example/cumulus-tf/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ variable "archive_api_users" {
287287
"dhudelson",
288288
"dmsorensen",
289289
"ecarton",
290+
"eyen",
290291
"jasmine",
291292
"jennyhliu",
292293
"jmccoy_uat",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prefix = "eyen-ci-tf"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prefix = "eyen-ci-tf"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prefix = "eyen-ci-tf"

tasks/cnm-to-cma/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.venv
2+
.coverage
3+
build
4+
__pycache__
5+
coverage_html
6+
.nyc_output

0 commit comments

Comments
 (0)