Repository navigation
[8.1] Fix SSH jump timeout and leak, SFTP race, log_mask_re TypeError - #179
Merged
Merged
Conversation
- open_execute_context takes log_mask_re itself instead of failing with "multiple values for keyword argument"; execute(), the async execute() and execute_together pass their mask to the context repr. - connect_timeout also limits the channel opened through a jump host and in proxy_to; NaN is rejected. - close() and reconnect() close the jump host connections of a ProxyJump chain, the one nearest to the target first. - Concurrent threads open the SFTP channel once. Adapted to the 8.1 line: - Version notes name 8.1.4; the notes on connect_timeout and on ExecuteContext.log_mask_re are dropped, since both are new in 8.1.4. - test/fakes.py and the process and channel fixtures in conftest.py are taken from master for the picked tests, with pyrefly's test search path. - PERF203 is silenced on the guarded close loop, reported for py39 only. - The skipped through-host tests expect the open_channel timeout. (cherry picked from commit a05c0f8)
Collaborator
Coverage Report for CI Build 42249310790Coverage increased (+8.3%) to 78.089%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #178 (a05c0f8) to the 8.1 line.
Adapted to the 8.1 line:
are new in 8.1.4.
pyrefly's test search path.
As on master, execute() now always passes log_mask_re to open_execute_context, so an external ExecHelper subclass
that forwards it next to log_mask_re=self.log_mask_re would raise TypeError.