Skip to content

Comments

[ci] chore: automate PR labeling and integrate Codecov coverage reporting#64

Merged
JoyboyBrian merged 8 commits intomainfrom
brian/dev
Feb 18, 2026
Merged

[ci] chore: automate PR labeling and integrate Codecov coverage reporting#64
JoyboyBrian merged 8 commits intomainfrom
brian/dev

Conversation

@JoyboyBrian
Copy link
Contributor

@JoyboyBrian JoyboyBrian commented Feb 18, 2026

What

  • Add .github/workflows/auto-label-pr.yml to auto-apply labels from PR titles ([module] type: ...), including [BREAKING], type-based labels, and module label mapping.
  • Update .github/workflows/tests.yml to generate branch coverage and coverage.xml on Python 3.12, then upload coverage to Codecov via codecov/codecov-action@v5.
  • Add codecov.yml with project/patch coverage targets (70%) and diff-focused comments.
  • Clean up unused code and imports across rollout/auth/example modules, including unused logger declarations and dead assignments.
  • Simplify task awaiting in EvalRunner by removing unused tuple unpacking (await task).
  • Update README signup URL to https://platform.osmosis.ai and refresh uv.lock dependency patches (aiohttp 3.13.2 -> 3.13.3, urllib3 2.6.2 -> 2.6.3).

Why

  • Reduce manual PR triage and keep labels aligned with release-note categories through title-driven automation.
  • Make CI coverage outputs consumable by Codecov and establish a baseline quality gate for project and patch coverage.
  • Remove dead code to reduce maintenance noise and keep lint/static analysis clean.
  • Apply dependency patch updates from Dependabot-related maintenance and keep docs links accurate.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactor (code change that neither fixes a bug nor adds a feature)
  • Documentation update
  • CI/build configuration change

How to Test

  1. Run uv run pytest --cov=osmosis_ai --cov-branch --cov-report=term-missing --cov-report=xml.
  2. Confirm coverage.xml is generated in the repo root.
  3. Verify the Codecov upload step is triggered for Python 3.12 in GitHub Actions.
  4. Open or edit a PR title in [module] type: description format and verify labels are auto-applied.
  5. Run ruff check . and ruff format --check ..

Checklist

  • PR title follows [module] type: description format
  • Appropriate labels added (e.g. enhancement, bug, breaking)
  • ruff check . and ruff format --check . pass
  • pyright osmosis_ai/ passes
  • pytest passes (new tests added if applicable)
  • Public API changes are documented (N/A: no public API changes)
  • No secrets or credentials included

Summary by cubic

Automates PR labeling from titles, integrates Codecov coverage reporting with guarded uploads for non-fork PRs, and removes dead code to reduce noise. Also updates the README signup link and patches dependencies.

  • New Features

    • Added auto-label workflow parsing “[module] type: …” titles, including “[BREAKING]” and type→label mapping.
    • CI: Added branch coverage and XML output; upload coverage to Codecov on Python 3.12 only for non-fork PRs; included codecov.yml with 70% project/patch targets and diff-focused comments.
  • Refactors

    • Removed unused loggers and dead code across auth, rollout (eval/test CLI, server, tools, validator), and examples; simplified EvalRunner awaiting; dropped CredentialsStore.get_workspace_names.
    • Updated README signup URL to platform.osmosis.ai and refreshed uv.lock (aiohttp 3.13.3, urllib3 2.6.3).

Written for commit 8c4847c. Summary will update on new commits.

…improving examples. Updated README to better outline Local and Remote Rollout modes, ensuring consistency in explanations and error handling.
@JoyboyBrian JoyboyBrian removed the request for review from BaiqingL February 18, 2026 18:08
@github-actions github-actions bot added chore Maintenance/chores ci CI/CD related labels Feb 18, 2026
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 13 files

…t and integrating Codecov for coverage uploads on Python 3.12.
@JoyboyBrian JoyboyBrian changed the title [ci] chore: automate PR labeling and clean up unused code [ci] chore: automate PR labeling and integrate Codecov coverage reporting Feb 18, 2026
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/tests.yml">

<violation number="1" location=".github/workflows/tests.yml:63">
P2: Guard the Codecov upload step so it doesn’t run on forked PRs where secrets are unavailable; otherwise this step will fail with an empty token.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

…decov only for non-fork pull requests on Python 3.12.
@JoyboyBrian JoyboyBrian merged commit 68657cb into main Feb 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance/chores ci CI/CD related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant