From 20f0578e97ede3a3e8f68da948003a697da29efd Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Tue, 4 Mar 2025 22:28:58 -0800 Subject: [PATCH 1/4] chore: Trigger overwatch --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ services/components.py | 1 + 2 files changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84e73c0f21..bb0af9ffec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,3 +85,36 @@ jobs: push_rolling: true repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} cache_file: "uv.lock" + + upload-overwatch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Static Analysis Tools + run: | + pip install mypy==1.15.0 + pip install ruff==0.3.3 + - name: Install Build Dependencies + run: | + sudo apt-get update + # Install libssl1.1 from Ubuntu 20.04 repositories + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb + sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb + - name: Install Overwatch CLI + run: | + curl -o overwatch-cli https://overwatch.codecov.dev/linux/cli + chmod +x overwatch-cli + - name: Print Current Working Directory + run: pwd + - name: List Contents of Current Working Directory + run: ls -la + - name: List Directories Under Root + run: ls -d /*/ + - name: Run Overwatch CLI + run: | + ./overwatch-cli \ + --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} \ + --organization-slug codecov \ + python \ + --python-path $(which python3) \ + --tool mypy \ No newline at end of file diff --git a/services/components.py b/services/components.py index 318e22e01b..73f5e644d5 100644 --- a/services/components.py +++ b/services/components.py @@ -31,6 +31,7 @@ def component_filtered_report( """ Filter a report such that the totals, etc. are only pertaining to the given component. """ + x: int = "hello" flags, paths = [], [] for component in components: flags.extend(component.get_matching_flags(report.flags.keys())) From eb8f9ff4fa91ce2cafd2551d0e266a201e4be57e Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Tue, 4 Mar 2025 22:35:08 -0800 Subject: [PATCH 2/4] trigger error? --- services/components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/components.py b/services/components.py index 73f5e644d5..002ffa6c1f 100644 --- a/services/components.py +++ b/services/components.py @@ -31,7 +31,9 @@ def component_filtered_report( """ Filter a report such that the totals, etc. are only pertaining to the given component. """ - x: int = "hello" + + report.flags.keys() + flags, paths = [], [] for component in components: flags.extend(component.get_matching_flags(report.flags.keys())) From 27c753e858b01d7b61902c513eabebfb9b844d25 Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Tue, 4 Mar 2025 22:37:06 -0800 Subject: [PATCH 3/4] trigger error --- services/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/components.py b/services/components.py index 002ffa6c1f..b393317f10 100644 --- a/services/components.py +++ b/services/components.py @@ -32,7 +32,7 @@ def component_filtered_report( Filter a report such that the totals, etc. are only pertaining to the given component. """ - report.flags.keys() + report.flags + "string" flags, paths = [], [] for component in components: From 4dab57dd54771890ebf4726fce8d996e36eb755e Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Tue, 4 Mar 2025 22:40:33 -0800 Subject: [PATCH 4/4] trigger error --- services/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/components.py b/services/components.py index b393317f10..08f352ed93 100644 --- a/services/components.py +++ b/services/components.py @@ -32,7 +32,7 @@ def component_filtered_report( Filter a report such that the totals, etc. are only pertaining to the given component. """ - report.flags + "string" + report: Report | None = report flags, paths = [], [] for component in components: