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

Always show server location in ASGI #2522

Merged
merged 13 commits into from
Aug 11, 2022
Merged

Always show server location in ASGI #2522

merged 13 commits into from
Aug 11, 2022

Conversation

ahopkins
Copy link
Member

@ahopkins ahopkins commented Aug 7, 2022

Closes #2520

Co-authored-by: Adam Hopkins [email protected]
Co-authored-by: Zhiwei Liang [email protected]

@ahopkins ahopkins requested a review from a team as a code owner August 7, 2022 20:16
@ahopkins ahopkins changed the title Prevent directory traversion with static files (#2495) Always show server location in ASGI Aug 7, 2022
@ahopkins ahopkins requested a review from a team as a code owner August 7, 2022 20:17
@ahopkins ahopkins changed the base branch from current-release to main August 7, 2022 20:17
@ChihweiLHBird
Copy link
Member

Our CI is broken?

@ahopkins
Copy link
Member Author

ahopkins commented Aug 7, 2022

Or our testing on this is not sufficient. But I thought we had ASGI lifespan triggers tested.

@ChihweiLHBird
Copy link
Member

type-checking run-test-pre: PYTHONHASHSEED='3170477258'
type-checking run-test: commands[0] | mypy sanic
sanic/app.py:1317: error: Signature of "asgi" incompatible with supertype "RunnerMixin"
Found 1 error in 1 file (checked 83 source files)
ERROR: InvocationError for command /home/chihwei/sanic/.tox/type-checking/bin/mypy sanic (exited with code 1)
____________________________________________________________________________________________________________________________________ summary _____________________________________________________________________________________________________________________________________
ERROR:   type-checking: commands failed

Can you also try to close and reopen this PR to see if we can trigger the CI?

@ahopkins
Copy link
Member Author

ahopkins commented Aug 8, 2022

Will when I push some tests. It just didn't because it was originally changing targets. That doesn't trigger.

@azimovMichael
Copy link
Contributor

Is there any solution for this in the meantime? Or just stay with 22.3 version?

@ahopkins
Copy link
Member Author

ahopkins commented Aug 9, 2022

Will be releasing this probably tomorrow if that helps.

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #2522 (d124cfa) into main (7827b1b) will increase coverage by 0.026%.
The diff coverage is 87.500%.

@@              Coverage Diff              @@
##              main     #2522       +/-   ##
=============================================
+ Coverage   87.430%   87.457%   +0.026%     
=============================================
  Files           69        69               
  Lines         5577      5581        +4     
  Branches       969       969               
=============================================
+ Hits          4876      4881        +5     
+ Misses         509       508        -1     
  Partials       192       192               
Impacted Files Coverage Δ
sanic/mixins/runner.py 94.736% <85.714%> (+0.462%) ⬆️
sanic/app.py 88.825% <100.000%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ahopkins ahopkins merged commit 0392d1d into main Aug 11, 2022
@ahopkins ahopkins deleted the asgi-server-location branch August 11, 2022 07:00
ahopkins added a commit that referenced this pull request Aug 11, 2022
Co-authored-by: Adam Hopkins <[email protected]>
Co-authored-by: Zhiwei Liang <[email protected]>
Co-authored-by: Néstor Pérez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uvicorn (ASGI?) unable to run sanic application
4 participants