Garden-AI / garden

https://garden-ai.readthedocs.io
MIT License
16 stars 4 forks source link

Add requirements to RegisteredEntrypoint metadata #470

Closed hholb closed 1 month ago

hholb commented 1 month ago

Resolves #375

Overview

Testing

Tested manually by creating a notebook with a requirements file and a single entrypoint, publishing it, and confirming that the metadata.json in the published image contains the requirements data. Tested another notebook with no added requirements to ensure other functionality is not impacted.

I am struggling to come up with efficient unit tests for this. I want to confirm the metadata.json is correct, but to do that I need to build a container image which will significantly slow down the test suite.

Documentation

Updates the doc comments for RegisteredEntrypoint


📚 Documentation preview 📚: https://garden-ai--470.org.readthedocs.build/en/470/

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 15.00000% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 76.31%. Comparing base (d30a2b7) to head (c8a6be0). Report is 1 commits behind head on main.

Files Patch % Lines
garden_ai/scripts/save_session_and_metadata.py 11.11% 16 Missing :warning:
garden_ai/app/garden.py 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #470 +/- ## ========================================== + Coverage 76.09% 76.31% +0.21% ========================================== Files 51 51 Lines 3301 3356 +55 ========================================== + Hits 2512 2561 +49 - Misses 789 795 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.