Sync with upstream; CI update - don't fail on non-vital steps errors#15
Merged
Sync with upstream; CI update - don't fail on non-vital steps errors#15
Conversation
kiturutin
commented
Jan 26, 2025
- Sync with upstream
- Fixed failing tests
- Don't fail on non-vital steps for now (like lint, coverage etc), that's to fix later (haha classics)
) * ensure that `Start` is always the first event fix mitmproxy#6745 * simplify proxy handler this commit should not do any functional changes * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* button to close flow details section + test * [autofix.ci] apply automated fixes * update changelog * remove useless imports * change span to button * update snapshots * move the close button to the left * change color to gray * add icon instead of text * update tests * review changes * remove useless stuff --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Add primitive websocket interception and modification * Update CHANGELOG.md * Fix UI tab renaming on interception * [autofix.ci] apply automated fixes * Improve code readability * [autofix.ci] apply automated fixes * Improve code readability * [autofix.ci] apply automated fixes * Improve code readability --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Bumps the github-actions group with 2 updates: [install-pinned/ruff](https://github.com/install-pinned/ruff) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action). Updates `install-pinned/ruff` from 38b373a3a8635c2be31d92314e816a491fda910a to 8e23c2ad6e5fef4f7451bbdbc1ad068881096aeb - [Release notes](https://github.com/install-pinned/ruff/releases) - [Commits](install-pinned/ruff@38b373a...8e23c2a) Updates `docker/setup-buildx-action` from 3.1.0 to 3.2.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@0d103c3...2b51285) --- updated-dependencies: - dependency-name: install-pinned/ruff dependency-type: direct:production dependency-group: github-actions - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…roxy#6771) Updates the requirements on [pyopenssl](https://github.com/pyca/pyopenssl) to permit the latest version. - [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst) - [Commits](pyca/pyopenssl@22.1.0...24.1.0) --- updated-dependencies: - dependency-name: pyopenssl dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…roxy#6773) Updates the requirements on [wheel](https://github.com/pypa/wheel) to permit the latest version. - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](pypa/wheel@0.36.2...0.43.0) --- updated-dependencies: - dependency-name: wheel dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itmproxy#6772) Updates the requirements on [pytest-timeout](https://github.com/pytest-dev/pytest-timeout) to permit the latest version. - [Commits](pytest-dev/pytest-timeout@1.3.3...2.3.1) --- updated-dependencies: - dependency-name: pytest-timeout dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…roxy#6776) Updates the requirements on [asgiref](https://github.com/django/asgiref) to permit the latest version. - [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt) - [Commits](django/asgiref@3.2.10...3.8.1) --- updated-dependencies: - dependency-name: asgiref dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [protobuf](https://github.com/protocolbuffers/protobuf) to permit the latest version. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl) - [Commits](protocolbuffers/protobuf@v3.14.0...v5.26.1) --- updated-dependencies: - dependency-name: protobuf dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 6.4.0 to 6.5.0. - [Release notes](https://github.com/pyinstaller/pyinstaller/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst) - [Commits](pyinstaller/pyinstaller@v6.4.0...v6.5.0) --- updated-dependencies: - dependency-name: pyinstaller dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…proxy#6777) Updates the requirements on [pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the latest version. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v2.7.1...v5.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add hex editor for non text files * update changelog * [autofix.ci] apply automated fixes * fix failing text * fix tests * fix lint * [autofix.ci] apply automated fixes * Update test/mitmproxy/tools/console/test_master.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update test/mitmproxy/tools/console/test_master.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * a few changes * fix tests --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Hils <github@maximilianhils.com>
* Setting SIG_IGN for SIGPIPE errors
The issue was reported in mitmproxy#6744
Problem description:
When there is a sudden surge of requests, mitmproxy will hit SIGPIPE (broken pipe) errors because it was trying to write to a closed socket. The stacktrace is:
File "asyncio/runners.py", line 44, in run
File "asyncio/base_events.py", line 636, in run_until_complete
File "asyncio/base_events.py", line 603, in run_forever
File "asyncio/base_events.py", line 1909, in _run_once
File "asyncio/events.py", line 80, in _run
File "mitmproxy/proxy/server.py", line 294, in handle_connection
File "mitmproxy/proxy/server.py", line 407, in server_event
File "asyncio/streams.py", line 325, in write
File "asyncio/selector_events.py", line 924, in write
When this happens, the process terminates unless handled
The fix will allow the process to continue to run.
* add changelog entry
* [autofix.ci] apply automated fixes
* Handling SIGPIPE only in non-Windows platforms
* [autofix.ci] apply automated fixes
* nit: make check platform-agnostic
---------
Co-authored-by: changsin <changsin@strac.io>
Co-authored-by: Maximilian Hils <github@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix websocket message saving * [autofix.ci] apply automated fixes * added websocket as a supported format to export command, with tests for the same * [autofix.ci] apply automated fixes * added websocket message serialization in raw export, with test coverage * [autofix.ci] apply automated fixes * code suggestion fixes Co-authored-by: Maximilian Hils <github@maximilianhils.com> * [autofix.ci] apply automated fixes * suggestion fixes * fix merged code * added tests for websocket export and cut.save * [autofix.ci] apply automated fixes * fix tests and add changes to changelog * fix tests and add changes to changelog * fix changelog * fix changelog * changelog addition * changelog revert * test fix * [autofix.ci] apply automated fixes * more test coverage * [autofix.ci] apply automated fixes * add changes to changelog * add more test coverage * [autofix.ci] apply automated fixes * simplify * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Hils <github@maximilianhils.com>
* fix cryptography DeprecationWarning * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix certs for unicode domains fix mitmproxy#6729 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
add codecov token
* Add server connection error hook * Add new hook to api-events doc * Rename and add test * Forgot to commit * Small fix * [autofix.ci] apply automated fixes * fixed test_server.py * fixed 'Import block is un-sorted or un-formatted' * [autofix.ci] apply automated fixes * test++, doc++ * add CHANGELOG entry * [autofix.ci] apply automated fixes * fix authors * fix test * [autofix.ci] apply automated fixes --------- Co-authored-by: haanhvu <haanh6594@gmail.com> Co-authored-by: spacewasp <spacewasp1982@gmail.com>
* fix program exit when `n` is passed fix mitmproxy#6818 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Update PyInstaller spec to set the u (unbuffered) flag * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
…itmproxy#7298) Updates the requirements on [tox](https://github.com/tox-dev/tox) to permit the latest version. - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst) - [Commits](tox-dev/tox@4.15.1...4.23.2) --- updated-dependencies: - dependency-name: tox dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….3 (mitmproxy#7297) Updates the requirements on [protobuf](https://github.com/protocolbuffers/protobuf) to permit the latest version. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl) - [Commits](protocolbuffers/protobuf@v5.27.2...v5.28.3) --- updated-dependencies: - dependency-name: protobuf dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itmproxy#7296) Updates the requirements on [urwid](https://github.com/urwid/urwid) to permit the latest version. - [Release notes](https://github.com/urwid/urwid/releases) - [Changelog](https://github.com/urwid/urwid/blob/master/docs/changelog.rst) - [Commits](urwid/urwid@2.6.14...2.6.16) --- updated-dependencies: - dependency-name: urwid dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…proxy#7295) Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.5.0...0.7.2) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itmproxy#7292) Updates the requirements on [pdoc](https://github.com/mitmproxy/pdoc) to permit the latest version. - [Changelog](https://github.com/mitmproxy/pdoc/blob/main/CHANGELOG.md) - [Commits](mitmproxy/pdoc@v14.5.1...v15) --- updated-dependencies: - dependency-name: pdoc dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itmproxy#7293) Updates the requirements on [pyparsing](https://github.com/pyparsing/pyparsing) to permit the latest version. - [Release notes](https://github.com/pyparsing/pyparsing/releases) - [Changelog](https://github.com/pyparsing/pyparsing/blob/master/CHANGES) - [Commits](pyparsing/pyparsing@pyparsing_2.4.2...3.2.0) --- updated-dependencies: - dependency-name: pyparsing dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the pyinstaller group with 2 updates: [pyinstaller](https://github.com/pyinstaller/pyinstaller) and [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib). Updates `pyinstaller` from 6.10.0 to 6.11.0 - [Release notes](https://github.com/pyinstaller/pyinstaller/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst) - [Commits](pyinstaller/pyinstaller@v6.10.0...v6.11.0) Updates `pyinstaller-hooks-contrib` from 2024.8 to 2024.9 - [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst) - [Commits](pyinstaller/pyinstaller-hooks-contrib@v2024.8...v2024.9) --- updated-dependencies: - dependency-name: pyinstaller dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pyinstaller - dependency-name: pyinstaller-hooks-contrib dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pyinstaller ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the latest version. Updates `hypothesis` to 6.116.0 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.104.2...hypothesis-python-6.116.0) Updates `pytest-cov` to 6.0.0 - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v5.0.0...v6.0.0) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production dependency-group: pytest - dependency-name: pytest-cov dependency-type: direct:production dependency-group: pytest ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…st1 (mitmproxy#7294) Updates the requirements on [build](https://github.com/pypa/build) to permit the latest version. - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](pypa/build@0.10.0...1.2.2.post1) --- updated-dependencies: - dependency-name: build dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
--- updated-dependencies: - dependency-name: mypy dependency-type: direct:production dependency-group: mypy - dependency-name: types-requests dependency-type: direct:production dependency-group: mypy ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Proper error handling for corrupted compressed body * [autofix.ci] apply automated fixes * Proper error handling for corrupted compressed body * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Remove dependency on protobuf (no longer needed) * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
…proxy#7332) Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.5.0...0.7.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itmproxy#7331) Updates the requirements on [wheel](https://github.com/pypa/wheel) to permit the latest version. - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](pypa/wheel@0.36.2...0.45.0) --- updated-dependencies: - dependency-name: wheel dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…xy#7330) Updates the requirements on [flask](https://github.com/pallets/flask) to permit the latest version. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](pallets/flask@3.0.0...3.1.0) --- updated-dependencies: - dependency-name: flask dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the pyinstaller group with 2 updates: [pyinstaller](https://github.com/pyinstaller/pyinstaller) and [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib). Updates `pyinstaller` from 6.11.0 to 6.11.1 - [Release notes](https://github.com/pyinstaller/pyinstaller/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst) - [Commits](pyinstaller/pyinstaller@v6.11.0...v6.11.1) Updates `pyinstaller-hooks-contrib` from 2024.9 to 2024.10 - [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases) - [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst) - [Commits](pyinstaller/pyinstaller-hooks-contrib@v2024.9...v2024.10) --- updated-dependencies: - dependency-name: pyinstaller dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pyinstaller - dependency-name: pyinstaller-hooks-contrib dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pyinstaller ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…=6.119.3 in the pytest group (mitmproxy#7328) Update hypothesis requirement in the pytest group Updates the requirements on [hypothesis](https://github.com/HypothesisWorks/hypothesis) to permit the latest version. Updates `hypothesis` to 6.119.3 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.104.2...hypothesis-python-6.119.3) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production dependency-group: pytest ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* increase default flow control window * fix tests * fix test * update changelog * [autofix.ci] apply automated fixes * simpler way to override default settings * acknowledge settings * document hyper-h2 workaround * quote RFC * [autofix.ci] apply automated fixes * increase MAX_FRAME_SIZE * update comment * max out initial window size * [autofix.ci] apply automated fixes * increment connection control window --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Hils <github@maximilianhils.com>
align web/gen and ruff format
* hardening: unify header validation across HTTP versions This is meant to prevent request smuggling attacks over different HTTP versions. * docs++, reject transfer-encoding for HTTP/1.0 * [autofix.ci] apply automated fixes * tests++ --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Stop sorting keys in JSON contentview * Update CHANGELOG.md * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
# Conflicts: # .github/workflows/main.yml # README.md # mitmproxy/addons/blocklist.py # mitmproxy/version.py # release/README.md # release/build-and-deploy-docker.py # release/deploy.py # release/docker/DockerHub-README.md # release/docker/Dockerfile # release/docker/docker-entrypoint.sh # release/installbuilder/mitmproxy.xml # release/release.py # setup.cfg # setup.py # tox.ini
|
Hi! I'm the It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
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.