Skip to content

fix(config): resolve make test errors and refactor commit regex logic#27

Merged
kyson-dev merged 1 commit into
mainfrom
fix/make-test-errors
Mar 23, 2026
Merged

fix(config): resolve make test errors and refactor commit regex logic#27
kyson-dev merged 1 commit into
mainfrom
fix/make-test-errors

Conversation

@kyson-dev
Copy link
Copy Markdown
Owner

Summary

This PR fixes persistent make test failures related to configuration validation and refactors the commit message regex logic to be more robust and dynamic.

Key Changes

  • Regex Bug Fix: Fixed an f-string escaping issue in the get_commit_subject_regex generator that was producing invalid regex quantifiers.
  • Test Update: Updated tests/test_config.py to align with the project's default subject_max_length of 85 characters.
  • Refactoring: Replaced the hardcoded message_regex in rules.yaml with a dynamically generated subject_regex (via get_commit_subject_regex) to ensure DRY compliance across all orchestrators.
  • Schema Update: Updated schema.json and rules.yaml to reflect the removal of the redundant message_regex field.

Test Plan

  • Ran make test locally and verified all 14 tests pass.

- Fix f-string regex escaping bug in get_commit_subject_regex generator.
- Update test_config.py expectation for subject_max_length to 85.
- Refactor commit regex logic: replace 'message_regex' with dynamically
  generated 'subject_regex'.
- Update schema and rules to support the new subject_regex approach.
- Standardize orchestrator instructions and constraints.
@kyson-dev kyson-dev merged commit 0d50f2c into main Mar 23, 2026
2 checks passed
@kyson-dev kyson-dev deleted the fix/make-test-errors branch March 23, 2026 03:35
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.

1 participant