Skip to content

Commit

Permalink
Merge pull request #34 from podaac/release/1.0.0
Browse files Browse the repository at this point in the history
Release/1.0.0
  • Loading branch information
frankinspace authored Jun 14, 2024
2 parents 831cd1b + 0d52a4a commit 56c54ab
Show file tree
Hide file tree
Showing 28 changed files with 1,866 additions and 871 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ jobs:
- name: Initial checkout ${{ github.ref }}
if: github.event.inputs.commit == ''
uses: actions/checkout@v4
with:
token: ${{ steps.podaac-cicd.outputs.token }}
- name: Adjust to proper commit hash ${{ github.event.inputs.commit }}
if: github.event.inputs.commit != ''
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit }}
token: ${{ steps.podaac-cicd.outputs.token }}
- uses: actions/setup-python@v4
with:
python-version: '3.9'
Expand Down Expand Up @@ -95,7 +98,7 @@ jobs:
- name: Bump rc version
if: startsWith(github.ref, 'refs/heads/release/') && github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request'
run: |
bumpver update -f --tag rc --tag-num
bumpver update -f -n --tag rc --tag-num
echo "TARGET_ENV=UAT" >> $GITHUB_ENV
- name: Release version
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request'
Expand Down Expand Up @@ -161,6 +164,7 @@ jobs:
TF_VAR_sds_host: ${{ secrets.SDS_HOST }}
TF_VAR_sds_username: ${{ secrets.SDS_USERNAME }}
TF_VAR_sds_password: ${{ secrets.SDS_PASSWORD }}
TF_VAR_edl_token: ${{ secrets.EDL_TOKEN }}
TF_VAR_sds_rs_bucket: ${{ vars.SDS_RS_BUCKET }}

TF_VAR_publish_bucket: ${{ vars.PUBLISH_BUCKET }}
Expand Down
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[MAIN]
disable=too-many-locals

[FORMAT]
# Fixes: "C0103: Variable name "f" doesn't conform to snake_case naming style"
good-names=f,i
Expand Down
2 changes: 0 additions & 2 deletions CHANGE

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

## [1.0.0]

### Added
- GraphQL Request Logging #35
- Initial Preflight Workflow Implementation (#22)
- Add EDL token to Terraform environment (#25)
- Remove PCM Release Tag (#29)
- Additional Metrics Logging (#30)
- Version bump swodlr-common (#31)
- Update Preflight to Search Orbit 1.0 Collection for Calibration Orbits (#32)

### Deprecated
### Removed
### Fixed
- Preflight Hotfixes (#26)
- Central tile update + zero-padding fix (#27)
- central-tile-hotfix (#28)
### Security

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# swodlr-raster-create
# swodlr-raster-create

2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VERSION=$(poetry version -s)
ROOT_PATH="$PWD"
ZIP_PATH="$ROOT_PATH/dist/$PACKAGE_NAME-$VERSION.zip"

poetry bundle venv build --clear --without=dev
poetry bundle venv --clear --without=dev --python=$(which python3.9) build

cd build/lib/python3.*/site-packages
touch podaac/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion bumpver.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpver]
current_version = "0.0.2"
current_version = "1.0.0-rc3"
version_pattern = "MAJOR.MINOR.PATCH[-TAGNUM]"
commit = true
tag = true
Expand Down
8 changes: 4 additions & 4 deletions podaac/swodlr_raster_create/notify_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
sns: SNSClient = boto3.client('sns')


@bulk_job_handler
def handle_jobs(jobs):
@bulk_job_handler(returns_jobset=True)
def handle_jobs(jobset):
'''
Handler which sends each job in a JobSet as a message to a SNS topic
'''
msg_queue = {}

for job in jobs:
for job in jobset['jobs']:
message = {
'Id': job['product_id'],
'Message': json.dumps(job, separators=(',', ':'))
Expand Down Expand Up @@ -57,4 +57,4 @@ def handle_jobs(jobs):
if len(msg_queue) > 0:
raise RuntimeError(f'Failed to send {len(msg_queue)} update messages')

return jobs
return jobset
Loading

0 comments on commit 56c54ab

Please sign in to comment.