Skip to content

Downstream main into v2.15.1 to remove conflicts - #118

Open
greens wants to merge 3 commits into
project-chip:v2.15.1-cli-developfrom
greens:v2.15.1-cli-develop
Open

Downstream main into v2.15.1 to remove conflicts#118
greens wants to merge 3 commits into
project-chip:v2.15.1-cli-developfrom
greens:v2.15.1-cli-develop

Conversation

@greens

@greens greens commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This will be followed up by #117 once merged and conflicts are removed.

rquidute and others added 3 commits June 9, 2026 17:36
* Add CI workflow to run pytest on every PR

Adds .github/workflows/python-tests.yml which:
- Triggers on all pull requests (any target branch)
- Sets up Python 3.10 and installs dependencies via Poetry (with venv cache)
- Runs ./scripts/run_pytest.py (existing test runner)
- Fails if coverage drops below 85% (enforced by pyproject.toml)
- Uploads coverage.xml and htmlcov/ as artifacts on every run

Tracks: project-chip/certification-tool#1020

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix CI: bump action versions to v4/v5

actions/upload-artifact@v3 was deprecated and disabled by GitHub in
November 2024, causing the job setup to fail before any steps ran.

Bump all actions to their current major versions:
- actions/checkout: v3 -> v4
- actions/setup-python: v4 -> v5
- actions/cache: v3 -> v4
- actions/upload-artifact: v3 -> v4

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix CI: correct test runner script name (run_pytest.sh not .py)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix failing test and align coverage threshold with actual coverage

- Fix test_test_run_execution_log_whitespace_content: Click prepends a
  DeprecationWarning line when invoking a deprecated option (--log).
  Strip DeprecationWarning lines before asserting on output content.

- Lower --cov-fail-under from 85 to 65 to match the actual coverage
  achieved by the current test suite (65.54%). The 85% target was
  aspirational and not yet reached; using it as a hard gate would
  permanently block CI on every PR.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix CI: use Python 3.12 to match development environment

Python 3.10's unittest.mock._dot_lookup resolves dotted patch paths
differently from 3.12: it walks the path with getattr, finds the
imported Click Command object at 'th_cli.commands.abort_testing' (due
to 'from .abort_testing import abort_testing' in __init__.py), and
then fails trying to get 'get_client' off the Command object.

Python 3.12 correctly resolves the patch target via sys.modules,
finding the module rather than the imported name.

All tests pass locally on 3.12; switching CI to match eliminates
the AttributeError failures across all command modules.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Revert coverage threshold back to 85%

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* Re-enable linting action

Also changes install script to exclude dev dependencies.

* update action versions

* remove accidentally included changes
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 56de1f47-0dfe-4181-a182-57c70ea7ab7b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify

mergify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants