Skip to content

ci: fix build and modernize CI/CD workflows#117

Merged
JarbasAl merged 4 commits intodevfrom
ci/modernize-workflows
Apr 25, 2026
Merged

ci: fix build and modernize CI/CD workflows#117
JarbasAl merged 4 commits intodevfrom
ci/modernize-workflows

Conversation

@JarbasAl
Copy link
Copy Markdown
Member

@JarbasAl JarbasAl commented Apr 24, 2026

Summary

  • Add pyproject.toml with [build-system] table so python -m build works (fixes the failing publish_alpha / publish_pypi job at the "Build Distribution Packages" step)
  • Fix MANIFEST.in to include requirements.txt in the sdist (was causing FileNotFoundError when building from sdist)
  • Add __version__ to version.py for standard Python version export

Root Cause

The CI run at https://github.com/OpenVoiceOS/ovos-skill-volume/actions/runs/24203261408/job/70655143122 failed because python -m build was invoked by the publish-alpha reusable workflow, but there was no pyproject.toml. Modern build requires a [build-system] table. Without it, the build falls back to a legacy sdist flow that then fails when requirements.txt is not present in the sdist.

Existing Workflows

All existing workflows already use OpenVoiceOS/gh-automations@dev refs — no ref migration needed. The full standard OVOS skill workflow set is already present:

  • build-tests.yml, release_workflow.yml, publish_stable.yml, coverage.yml, lint.yml, ovoscope.yml, skill-check.yml, pip_audit.yml, license_check.yml, repo-health.yml, release-preview.yml, conventional-label.yml

Test plan

  • Verify python -m build completes without error after merging
  • Trigger release_workflow.yml via workflow_dispatch to confirm publish_alpha / publish_pypi succeeds
  • Confirm PYPI_TOKEN and MATRIX_TOKEN are set as org-level secrets

Reminder

Ensure these secrets are set at org or repo level before the publish workflow runs:

  • PYPI_TOKEN — PyPI API token
  • MATRIX_TOKEN — Matrix access token

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Build & Packaging

    • Migrated to a modern pyproject-based build with declared build requirements and package metadata.
    • Standardized packaging of resources and registered the skill plugin entry point.
    • Normalized project versioning to semantic MAJOR.MINOR.BUILD with an optional alpha qualifier.
  • Chores

    • Removed legacy packaging manifest and legacy installer entry; trimmed several previously listed dependency entries.

AI-Generated Change:
- Model: claude-sonnet-4-6
- Intent: fix failing publish_alpha CI — python -m build failed without pyproject.toml
- Impact: added pyproject.toml (setuptools build-system), fixed MANIFEST.in to include requirements.txt in sdist, added __version__ to version.py
- Verified via: python -m build runs successfully locally

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

Warning

Rate limit exceeded

@JarbasAl has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 29 minutes and 47 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 29 minutes and 47 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c798f5d5-2f5f-4bba-9782-6ee489dcad37

📥 Commits

Reviewing files that changed from the base of the PR and between 085efe9 and ab1acc1.

📒 Files selected for processing (3)
  • .github/workflows/ovoscope.yml
  • pyproject.toml
  • test/unittests/test_skill_loading.py
📝 Walkthrough

Walkthrough

Packaging was reworked: pyproject.toml added to declare build backend and metadata; version.py introduces __version__; setup.py removed; requirements.txt had several ovos-* entries removed; MANIFEST.in no longer includes the previously listed recursive asset patterns.

Changes

Cohort / File(s) Summary
Build metadata
pyproject.toml
Added setuptools build backend, build requirements, project metadata, package discovery, package data globs, ovos.plugin.skill entry point.
Legacy installer removed
setup.py
Deleted the legacy setup.py installer file.
Manifest adjustments
MANIFEST.in
Removed recursive include patterns for asset dirs (dialog, vocab, locale, res, ui, skill), altering distributed files.
Dependencies list
requirements.txt
Removed several ovos-* runtime dependency entries (ovos-utils, ovos-workshop, ovos-utterance-normalizer, ovos-number-parser).
Versioning
version.py
Added __version__ composed from semantic parts MAJOR.MINOR.BUILD with optional a{VERSION_ALPHA} suffix.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I nudged the files with a curious hop,
swapped old setup for pyproject on top,
tucked a version beneath my paw,
trimmed the manifest with a gentle gnaw,
now packaging hums — a tiny hop! 🥕

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'ci: fix build and modernize CI/CD workflows' does not accurately reflect the primary changes, which are modernizing the build system (pyproject.toml, setup.py removal, version.py updates) rather than CI/CD workflow changes. Retitle to focus on the main changes: 'build: modernize packaging with pyproject.toml and remove legacy setup.py' or 'build: migrate to modern Python packaging standards'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/modernize-workflows

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 and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

The automated pipeline has reached its destination. 🏁

I've aggregated the results of the automated checks for this PR below.

🔍 Lint

I've finished the analysis you requested. 💡

ruff: no issues

🔒 Security (pip-audit)

Checking for any potential security breaches. 🔓

✅ No known vulnerabilities found (70 packages scanned).

🔌 Skill Tests (ovoscope)

Let's see how the skill performs under the microscope. 🔬

2/2 passed

TestSkillLoading — 2/2

🎙️ Skill

The skill check report is now complete. 📝

🎙️ (unknown skill_id) — 13 languages

en-US: 7 intents · 5 vocab · 6 dialogs · skill.json ⚠️

Translation coverage — 12 languages (11 complete, 1 incomplete)
Language Progress Coverage
ca-ES ██████████ ✅ 100.0% (18/18)
da-DK ██████████ ✅ 100.0% (18/18)
de-DE ██████████ ✅ 100.0% (18/18)
es-ES ██████████ ✅ 100.0% (18/18)
eu-ES ██████████ ✅ 100.0% (18/18)
fa-IR ░░░░░░░░░░ ❌ 0.0% (0/18)
fr-FR ██████████ ✅ 100.0% (18/18)
gl-ES ██████████ ✅ 100.0% (18/18)
it-IT ██████████ ✅ 100.0% (18/18)
nl-NL ██████████ ✅ 100.0% (18/18)
pt-BR ██████████ ✅ 100.0% (18/18)
pt-PT ██████████ ✅ 100.0% (18/18)

🚌 Bus Coverage

A deep dive into the skill's communication patterns. 🌊

⚠️ Bus coverage report unavailable — check the job log.

🏷️ Release Preview

Here's what the next release might look like! 🚀

Current: 0.1.21a2Next: 0.1.21a3

Signal Value
Label (none)
PR title ci: fix build and modernize CI/CD workflows
Bump alpha

✅ PR title follows conventional commit format.


🚀 Release Channel Compatibility

Predicted next version: 0.1.21a3

Channel Status Note Current Constraint
Stable Compatible ovos-skill-volume>=0.1.16,<0.2.0
Testing Compatible ovos-skill-volume>=0.1.16,<1.0.0
Alpha Compatible ovos-skill-volume>=0.1.17a6

⚖️ License Check

Verifying the SPDX identifiers for correctness. 🆔

✅ No license violations found (50 packages).

License distribution: 12× MIT License, 8× Apache Software License, 8× MIT, 6× Apache-2.0, 2× BSD-3-Clause, 2× ISC License (ISCL), 2× PSF-2.0, 2× Python Software Foundation License, +7 more

Full breakdown — 50 packages
Package Version License URL
audioop-lts 0.2.2 PSF-2.0 link
build 1.4.4 MIT link
certifi 2026.4.22 Mozilla Public License 2.0 (MPL 2.0) link
charset-normalizer 3.4.7 MIT link
click 8.3.3 BSD-3-Clause link
combo_lock 0.3.1 Apache-2.0 link
filelock 3.29.0 MIT link
ftfy 6.3.1 Apache-2.0 link
idna 3.13 BSD-3-Clause link
importlib_metadata 9.0.0 Apache-2.0 link
json-database 0.10.1 MIT link
kthread 0.2.3 MIT License link
langcodes 3.5.1 MIT License link
markdown-it-py 4.0.0 MIT License link
mdurl 0.1.2 MIT License link
memory-tempfile 2.2.3 MIT License link
ovos-config 2.1.1 Apache-2.0 link
ovos-number-parser 0.5.1 Apache Software License link
ovos-plugin-manager 2.2.0 Apache-2.0 link
ovos-skill-volume 0.1.21a2 Apache Software License link
ovos-solver-yes-no-plugin 0.2.8 MIT link
ovos-utils 0.8.5 Apache-2.0 link
ovos-utterance-normalizer 0.2.3 Apache Software License link
ovos_bus_client 1.5.0 Apache Software License link
ovos_workshop 8.0.0 apache-2.0 link
packaging 26.2 Apache-2.0 OR BSD-2-Clause link
padacioso 1.0.0 apache-2.0 link
pexpect 4.9.0 ISC License (ISCL) link
ptyprocess 0.7.0 ISC License (ISCL) link
pyee 12.1.1 MIT License link
Pygments 2.20.0 BSD-2-Clause link
pyproject_hooks 1.2.0 MIT License link
python-dateutil 2.9.0.post0 Apache Software License; BSD License link
PyYAML 6.0.3 MIT License link
quebra-frases 0.3.7 Apache Software License link
RapidFuzz 3.14.5 MIT link
regex 2026.4.4 Apache-2.0 AND CNRI-Python link
requests 2.33.1 Apache Software License link
rich 13.9.4 MIT License link
rich-click 1.9.7 MIT License

Copyright (c) 2022 Phil Ewels

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| link |
| simplematch | 1.4 | MIT License | link |
| six | 1.17.0 | MIT License | link |
| standard-aifc | 3.13.0 | Python Software Foundation License | link |
| standard-chunk | 3.13.0 | Python Software Foundation License | link |
| typing_extensions | 4.15.0 | PSF-2.0 | link |
| unicode-rbnf | 2.4.0 | MIT License | |
| urllib3 | 2.6.3 | MIT | link |
| watchdog | 6.0.0 | Apache Software License | link |
| websocket-client | 1.9.0 | Apache Software License | link |
| zipp | 3.23.1 | MIT | link |

Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed.

🔨 Build Tests

The build process has successfully terminated. 🏁

✅ All versions pass

Python Build Install Tests
3.10
3.11
3.12
3.13
3.14

📋 Repo Health

A detailed health report for the project. 📝

✅ All required files present.

Latest Version: 0.1.21a2

version.py — Version file
README.md — README
LICENSE — License file
pyproject.toml — pyproject.toml
⚠️ setup.py — setup.py
CHANGELOG.md — Changelog
version.py has valid version block markers

📊 Coverage

Diving deep into the code to see what's covered! 🤿

40.7% total coverage

Per-file coverage (2 files)
File Coverage Missing lines
version.py 0.0% 5
__init__.py 43.2% 46

Full report: download the coverage-report artifact.


Catch you at the next merge! 🌊

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
version.py (1)

7-8: Version string logic is now duplicated between version.py and setup.py.

setup.py:get_version() (lines 50–71) constructs the same MAJOR.MINOR.BUILDa{ALPHA} string by text-parsing this file. The two will silently drift if the format ever changes (e.g., adding a .post suffix or switching VERSION_ALPHA to a string). Consider having setup.py source the version from this module so there's a single source of truth.

♻️ One option: read `__version__` from version.py in setup.py
# setup.py
def get_version():
    version_file = os.path.join(os.path.dirname(__file__), 'version.py')
    ns = {}
    with open(version_file) as f:
        exec(f.read(), ns)
    return ns['__version__']

This avoids the brittle line-by-line parser and keeps version.py as the single source of truth.

Minor behavioral note: the new expression treats VERSION_ALPHA via Python truthiness, while setup.py uses int(alpha). Identical for integer literals (current usage), but they would diverge if anyone ever sets VERSION_ALPHA = "0" (truthy as a string, falsy as int). Consolidating to one implementation removes that footgun.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@version.py` around lines 7 - 8, The version string construction is duplicated
and can drift: change setup.py to import or exec-load the single source of truth
from version.py instead of parsing it; specifically have setup.py’s
get_version() obtain __version__ defined in version.py (which builds __version__
from VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_ALPHA) so both modules
use the same logic and truthiness for VERSION_ALPHA (avoid reimplementing the
f"{...}" logic in setup.py).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@version.py`:
- Around line 7-8: The version string construction is duplicated and can drift:
change setup.py to import or exec-load the single source of truth from
version.py instead of parsing it; specifically have setup.py’s get_version()
obtain __version__ defined in version.py (which builds __version__ from
VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_ALPHA) so both modules use
the same logic and truthiness for VERSION_ALPHA (avoid reimplementing the
f"{...}" logic in setup.py).

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 535342d8-d673-4bac-91f5-bed050193543

📥 Commits

Reviewing files that changed from the base of the PR and between e6cbd4b and 146a9b6.

📒 Files selected for processing (3)
  • MANIFEST.in
  • pyproject.toml
  • version.py

EggmanBot and others added 2 commits April 24, 2026 23:39
- Replaced stub pyproject.toml with complete metadata (name, description,
  author, license, dependencies, entry points, package-data)
- Removed setup.py, requirements.txt, and MANIFEST.in
- Dynamic version reads from ovos_skill_volume.version.__version__
- Entry point: ovos.plugin.skill -> ovos-skill-volume.openvoiceos = ovos_skill_volume:VolumeSkill
- Build verified: python -m build produces correct wheel at 0.1.21a2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Change dynamic version attr from `ovos_skill_volume.version.__version__`
  to `version.__version__` so setuptools can resolve it at build time
  without needing the package pre-installed
- Replace `packages.find` (which cannot discover flat-layout packages)
  with explicit `packages = ["ovos_skill_volume"]`
- Fix package-dir mapping from `""` to `"."` (equivalent, but clearer)
- Add `[project.optional-dependencies] test` extras so CI `.[test]`
  install works

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
pyproject.toml (1)

27-31: Drop the duplicated ovos-workshop from the test extra.

ovos-workshop>=8.0.0,<9.0.0 is already a hard runtime dependency (line 22), so listing it again in the test extra is redundant and risks the two pins drifting out of sync over time. Test-only utilities (e.g. pytest) are sufficient here.

♻️ Proposed change
 [project.optional-dependencies]
 test = [
     "pytest",
-    "ovos-workshop>=8.0.0,<9.0.0",
 ]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pyproject.toml` around lines 27 - 31, Remove the duplicated runtime
dependency from the test extra: delete "ovos-workshop>=8.0.0,<9.0.0" from the
[project.optional-dependencies] test list so only test-only utilities like
"pytest" remain; keep the hard runtime pin (the existing ovos-workshop entry) in
the main project dependencies and ensure the test extra only includes
test-specific packages.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pyproject.toml`:
- Line 2: Update pyproject.toml to require setuptools>=62.3.0 instead of >=42 so
the recursive glob patterns in package-data (locale/**, ui/**, vocab/**,
dialog/**, regex/**, skill/**) are honored during sdist/wheel builds; also
remove the duplicate ovos-workshop>=8.0.0,<9.0.0 entry from the "test" extra
(keep it in the main dependencies) so it’s not redundantly listed. Use the
existing "requires" key to bump the setuptools version and edit the extras[test]
block to delete the ovos-workshop line.

---

Nitpick comments:
In `@pyproject.toml`:
- Around line 27-31: Remove the duplicated runtime dependency from the test
extra: delete "ovos-workshop>=8.0.0,<9.0.0" from the
[project.optional-dependencies] test list so only test-only utilities like
"pytest" remain; keep the hard runtime pin (the existing ovos-workshop entry) in
the main project dependencies and ensure the test extra only includes
test-specific packages.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a0aaa960-b11a-4d40-9663-bd6cddc7fac5

📥 Commits

Reviewing files that changed from the base of the PR and between bc0c6a4 and 085efe9.

📒 Files selected for processing (1)
  • pyproject.toml

Comment thread pyproject.toml
@@ -0,0 +1,57 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

What is the minimum setuptools version that supports recursive ** glob patterns in package-data / package_data?

💡 Result:

The minimum setuptools version that supports recursive glob patterns (using ) in package_data / package_data is 62.3.0.

Citations:


🏁 Script executed:

cat pyproject.toml

Repository: OpenVoiceOS/ovos-skill-volume

Length of output: 1387


Bump setuptools minimum to >=62.3.0 — recursive ** globs in package-data require this version.

The package-data entries (locale/**/*, ui/**/*, vocab/**/*, dialog/**/*, regex/**/*, skill/**/*) use recursive glob patterns that were added to setuptools in version 62.3.0. With setuptools>=42, older build environments that resolve setuptools <62.3.0 will silently ignore these patterns, causing locale, ui, vocab, dialog, regex, and skill assets to be missing from both sdist and wheel — re-introducing the exact FileNotFoundError packaging issues this PR aims to fix.

Additionally, ovos-workshop>=8.0.0,<9.0.0 appears in both dependencies (line 20) and the test extra (line 28), which is redundant since it is already available at runtime.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pyproject.toml` at line 2, Update pyproject.toml to require
setuptools>=62.3.0 instead of >=42 so the recursive glob patterns in
package-data (locale/**, ui/**, vocab/**, dialog/**, regex/**, skill/**) are
honored during sdist/wheel builds; also remove the duplicate
ovos-workshop>=8.0.0,<9.0.0 entry from the "test" extra (keep it in the main
dependencies) so it’s not redundantly listed. Use the existing "requires" key to
bump the setuptools version and edit the extras[test] block to delete the
ovos-workshop line.

- Add ovos-plugin-manager and ovos-utils to [test] extras in pyproject.toml
  so CI install_extras=test pulls in all test dependencies
- Rewrite test_skill_loading.py: remove stale adapt/mycroft/skill_ovos_volume
  imports that caused ModuleNotFoundError; use current ovos_skill_volume module
  name and modern ovos-workshop API
- Fix ovoscope.yml test_path from non-existent test/end2end/ to
  test/unittests/ so pytest collects tests instead of exiting with code 4

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JarbasAl JarbasAl merged commit a2b24a9 into dev Apr 25, 2026
15 checks passed
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.

2 participants