Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support S2C #49

Merged
merged 40 commits into from
Jan 21, 2025
Merged

Support S2C #49

merged 40 commits into from
Jan 21, 2025

Conversation

chuckwondo
Copy link
Collaborator

What I am changing

Sentinel 2C is replacing 2A, so this adds support for fetching 2C data.

How I did it

I changed the date generator lambda to expect a PLATFORMS environment variable to specify which platforms to generate link fetcher queries for. I added PLATFORMS set to "S2A,S2B" to both the dev and prod GH envs for this repo. When we're ready to cut over to S2C we can change them to "S2C,S2B".

How you can test it

Run the unit tests and integration tests as per the top-level README.md instructions.

ceholden and others added 10 commits January 17, 2025 17:53
- Rather than hard-code "S2A" and "S2B" as the platforms to generate
  search query parameters, expect the PLATFORMS env var to be set as a
  comma-separated list of platforms, so we can set it to "S2B,S2C" when
  we're ready to cutover to S2C support.
- Update pytest* dependencies to their latest versions
- Move unit tests to doctest docstrings for simplicity/clarity
During CDK's builds of Python Lambda Docker images, there were
10s of megabytes of files needlessly being put into the Docker context,
primarily from places like the python, mypy, and ruff caches. We can
tell the CDK to ignore these assets and greatly speed up build times.
- Eliminate the Platform type alias and simply use `str` as the type
- Use latest versions of pytest* deps
- Fix code coverage CLI option to pytest to reflect previous code
  restructuring so coverage report is properly generated
Copy link
Collaborator

@ceholden ceholden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice job with the other changes like updating the README, dependencies, and a few fixes like the Makefile for testing link_fetcher

@chuckwondo chuckwondo merged commit f02c52e into main Jan 21, 2025
3 checks passed
@chuckwondo chuckwondo deleted the support-2C branch January 21, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants