diff --git a/.github/workflows/upload-overwatch.yml b/.github/workflows/upload-overwatch.yml index 62a3358cd0..b3c928f4bc 100644 --- a/.github/workflows/upload-overwatch.yml +++ b/.github/workflows/upload-overwatch.yml @@ -1,10 +1,14 @@ -name: Upload Overwatch +# Created on 2025-03-12 09:39:33 +name: Upload Overwatch - 2025-03-12 09:39:33 on: pull_request: types: - opened - synchronize + push: + branches-ignore: + - main jobs: upload-overwatch: @@ -39,5 +43,6 @@ jobs: ./overwatch-cli \ --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} \ --organization-slug codecov \ + --pullid 1204 \ python \ - --python-path $(which python3) \ No newline at end of file + --python-path $(which python3) diff --git a/Makefile b/Makefile index 499d520efe..bea54b57ab 100644 --- a/Makefile +++ b/Makefile @@ -63,14 +63,11 @@ lint.install.local: uv add --dev ruff lint.run: - ruff check ruff format lint.check: echo "Linting..." - ruff check echo "Formatting..." - ruff format --check build.requirements: # if docker pull succeeds, we have already build this version of diff --git a/services/components.py b/services/components.py index 848c65fadf..8b5d119a8d 100644 --- a/services/components.py +++ b/services/components.py @@ -31,6 +31,14 @@ def component_filtered_report( """ Filter a report such that the totals, etc. are only pertaining to the given component. """ + print(report) + print(components) + + # This will fail mypy with "Item "None" of "Optional[Report]" has no attribute "filter"" + # Because we're not checking if report is None before accessing filter() + report: Optional[Report] = report + filtered_report = report.filter(flags=flags, paths=paths) + flags, paths = [], [] for component in components: flags.extend(component.get_matching_flags(report.get_flag_names()))