From 2935526caf5db25d64b02870f9cc45e33a7daa3d Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Wed, 13 Nov 2024 14:35:06 -0500 Subject: [PATCH 01/10] Release v0.9.0 (#553) * Prepare release v0.9.0 * Update setup.py --------- Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b1c59f32..d905447e 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="0.8.0", + version="0.9.0", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description, From 01046d1c6d4ab4a6febe9ee03a377496a73441a2 Mon Sep 17 00:00:00 2001 From: joseph-sentry <136376984+joseph-sentry@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:15:24 -0500 Subject: [PATCH 02/10] fix: pass args to send_reports_result_request (#545) * fix: pass args to send_reports_result_request * chore: lint * test: fix tests * fix: typing and tests * fix: typing * chore: make lint * fix: simple import typing fix --- codecov_cli/services/report/__init__.py | 7 +++++-- tests/services/report/test_report_results.py | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/codecov_cli/services/report/__init__.py b/codecov_cli/services/report/__init__.py index b19a8c19..da2b5127 100644 --- a/codecov_cli/services/report/__init__.py +++ b/codecov_cli/services/report/__init__.py @@ -3,6 +3,8 @@ import time import typing +import requests + from codecov_cli.helpers import request from codecov_cli.helpers.config import CODECOV_API_URL, CODECOV_INGEST_URL from codecov_cli.helpers.encoder import encode_slug @@ -26,7 +28,7 @@ def create_report_logic( enterprise_url: str, pull_request_number: int, fail_on_error: bool = False, - args: dict = None, + args: typing.Union[dict, None] = None, ): encoded_slug = encode_slug(slug) sending_result = send_create_report_request( @@ -71,7 +73,7 @@ def create_report_results_logic( token: typing.Optional[str], enterprise_url: str, fail_on_error: bool = False, - args: dict = None, + args: typing.Union[dict, None] = None, ): encoded_slug = encode_slug(slug) sending_result = send_reports_result_request( @@ -81,6 +83,7 @@ def create_report_results_logic( service=service, token=token, enterprise_url=enterprise_url, + args=args, ) log_warnings_and_errors_if_any( diff --git a/tests/services/report/test_report_results.py b/tests/services/report/test_report_results.py index 268f56e3..f713ce6b 100644 --- a/tests/services/report/test_report_results.py +++ b/tests/services/report/test_report_results.py @@ -43,6 +43,7 @@ def test_report_results_command_with_warnings(mocker): assert res == mock_send_reports_result_request.return_value mock_send_reports_result_request.assert_called_with( + args=None, commit_sha="commit_sha", report_code="code", service="service", @@ -85,6 +86,7 @@ def test_report_results_command_with_error(mocker): ] assert res == mock_send_reports_result_request.return_value mock_send_reports_result_request.assert_called_with( + args=None, commit_sha="commit_sha", report_code="code", service="service", From df923a22438716e76df66ac08a37e1e47896117b Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Wed, 13 Nov 2024 15:24:06 -0500 Subject: [PATCH 03/10] Prepare release 9.0.1 (#555) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d905447e..741dd3ef 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="0.9.0", + version="9.0.1", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description, From 15922dfada970bececa31b0bd348e6feda1f1d71 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:47:21 -0500 Subject: [PATCH 04/10] fix: downgrade pypi action (#556) --- .github/workflows/build_for_pypi.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 05d9793e..9e7ecc9c 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -35,7 +35,4 @@ jobs: python setup.py bdist_wheel --plat-name=win_amd64 - name: Publish package to PyPi if: inputs.publish == true - uses: pypa/gh-action-pypi-publish@release/v1 - - - + uses: pypa/gh-action-pypi-publish@v1.11.0 # Currently an issue with attestations on `release/v1` From be51b525ad488d552174d8f094ac5bda62e15357 Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Wed, 13 Nov 2024 15:55:31 -0500 Subject: [PATCH 05/10] Prepare release 9.0.2 (#557) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 741dd3ef..d93811c8 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="9.0.1", + version="9.0.2", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description, From 639aef803387d11d8a1e85df816a2a2d5794bb30 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:08:58 -0500 Subject: [PATCH 06/10] fix: add verbose logging (#558) --- .github/workflows/build_for_pypi.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 9e7ecc9c..ffc0ee8f 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -35,4 +35,7 @@ jobs: python setup.py bdist_wheel --plat-name=win_amd64 - name: Publish package to PyPi if: inputs.publish == true - uses: pypa/gh-action-pypi-publish@v1.11.0 # Currently an issue with attestations on `release/v1` + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + attestation: true From a89f1080e194a8c93c1e7e9b904fa13080d287ad Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Wed, 13 Nov 2024 16:16:54 -0500 Subject: [PATCH 07/10] Prepare release 9.0.3 (#559) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d93811c8..645a1606 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="9.0.2", + version="9.0.3", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description, From 84e0ee67dca43d82f5d6e2ecf9a5ae6446c9361a Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:08:42 -0500 Subject: [PATCH 08/10] fix: turn off attestations (#560) --- .github/workflows/build_for_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index ffc0ee8f..1315f24a 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -37,5 +37,5 @@ jobs: if: inputs.publish == true uses: pypa/gh-action-pypi-publish@release/v1 with: + attestations: false verbose: true - attestation: true From e680a672bb8e56d0f21d8ea36a22eec061c996af Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Wed, 13 Nov 2024 17:15:37 -0500 Subject: [PATCH 09/10] Prepare release 9.0.4 (#561) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 645a1606..92442f6c 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="9.0.3", + version="9.0.4", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description, From c51e790f868af44d32757abfb51a9ed4a31df575 Mon Sep 17 00:00:00 2001 From: Codecov Releaser Date: Thu, 14 Nov 2024 13:57:59 -0500 Subject: [PATCH 10/10] Prepare release 0.9.4 (#562) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 92442f6c..fd96cd1b 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="codecov-cli", - version="9.0.4", + version="0.9.4", packages=find_packages(exclude=["contrib", "docs", "tests*"]), description="Codecov Command Line Interface", long_description=long_description,