Skip to content

Add CCSDSPy Configuration to Image#28

Merged
Alrobbertz merged 1 commit into
swxsoc:mainfrom
Alrobbertz:ccsdspy-config
Jul 1, 2026
Merged

Add CCSDSPy Configuration to Image#28
Alrobbertz merged 1 commit into
swxsoc:mainfrom
Alrobbertz:ccsdspy-config

Conversation

@Alrobbertz

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 1, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a “baked config” mechanism for upstream Python packages (notably ccsdspy) by shipping version-controlled config files in the Lambda image, mirroring them into /tmp at container init, and wiring packages to those writable runtime config paths via Docker ENV.

Changes:

  • Add documentation describing the repo → image → /tmp config flow and how to extend it for additional packages.
  • Add a baked ccsdspy YAML config under src/config/ccsdspy/.
  • Seed /tmp/config from /lambda_function/config in entry_script.sh and set ccsdspy_CONFIGDIR in the Dockerfile.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
lambda_function/src/config/README.md Documents the baked-config convention and runtime mirroring strategy.
lambda_function/src/config/ccsdspy/config.yml Adds a baked ccsdspy configuration intended to prevent import-time failures in Lambda.
lambda_function/entry_script.sh Mirrors baked configs into /tmp/config before the Python runtime starts.
lambda_function/Dockerfile Exposes ccsdspy_CONFIGDIR pointing at the writable /tmp mirror.
Comments suppressed due to low confidence (1)

lambda_function/entry_script.sh:19

  • $@ should be quoted to preserve argument boundaries and avoid glob/word-splitting issues when the entrypoint is invoked with flags or values containing spaces.
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
    exec /usr/local/bin/aws-lambda-rie python3 -m awslambdaric $@
else
    exec python3 -m awslambdaric $@
fi

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lambda_function/src/config/ccsdspy/config.yml
Comment thread lambda_function/entry_script.sh
Comment thread lambda_function/entry_script.sh
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@05cf6c9). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage        ?   62.54%           
=======================================
  Files           ?        2           
  Lines           ?      251           
  Branches        ?        0           
=======================================
  Hits            ?      157           
  Misses          ?       94           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alrobbertz Alrobbertz merged commit db18582 into swxsoc:main Jul 1, 2026
4 checks passed
@Alrobbertz Alrobbertz deleted the ccsdspy-config branch July 1, 2026 13:58
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