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

Complete Hook example #4298

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Complete Hook example #4298

wants to merge 6 commits into from

Conversation

drernie
Copy link
Member

@drernie drernie commented Jan 24, 2025

Show import and invocation

(I was confused, so I figured we should extend it so nobody else is).

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Hi! Looks like you've reached your API usage limit. You can increase it from your account settings page here: app.greptile.com/settings/billing/code-review

💡 (3/5) Reply to the bot's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@drernie drernie requested a review from Copilot January 24, 2025 23:45

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

api/python/quilt3/hooks.py:54

  • There is an unnecessary blank line at the end of the code block which should be removed.
    old_hook = set_build_s3_client_hook(hook)
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.11%. Comparing base (706b21b) to head (bf5e84c).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #4298    +/-   ##
========================================
  Coverage   39.11%   39.11%            
========================================
  Files         783      783            
  Lines       34737    34737            
  Branches     5308     5517   +209     
========================================
  Hits        13586    13586            
+ Misses      20608    19970   -638     
- Partials      543     1181   +638     
Flag Coverage Δ
api-python 91.39% <ø> (ø)
catalog 18.12% <ø> (ø)
lambda 91.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@drernie drernie requested a review from sir-sigurd January 25, 2025 00:22
@@ -30,7 +30,10 @@ def set_build_s3_client_hook(hook: T.Optional[BuildClientHook]) -> T.Optional[Bu

Example for overriding `ServerSideEncryption` parameter for certain S3 operations:

<!--pytest.mark.skip-->
Copy link
Member

Choose a reason for hiding this comment

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

maybe this should be fixed instead of ignored?

Copy link
Member Author

@drernie drernie Jan 28, 2025

Choose a reason for hiding this comment

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

Sure. How? The main point of the example is to show how to correctly import the API:

from quilt3.hooks import set_build_s3_client_hook

But that is what's breaking the test:

No module named 'quilt3.hooks'

How could I work around that?

Copy link
Member

Choose a reason for hiding this comment

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

But that is what's breaking the test:

No module named 'quilt3.hooks'

How could I work around that?

test with version of quilt3 which has it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I'm being dense. How do I do that? Adding this to the testdocs CI doesn't seem to help:

python -m pip install api/python

Copy link
Member

Choose a reason for hiding this comment

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

maybe because poetry install re-installs older version?

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