feat: add cxtm.yaml support for enriching issue bodies with test case definitions#34
Draft
ChristopherJHart wants to merge 1 commit intomasterfrom
Draft
feat: add cxtm.yaml support for enriching issue bodies with test case definitions#34ChristopherJHart wants to merge 1 commit intomasterfrom
ChristopherJHart wants to merge 1 commit intomasterfrom
Conversation
… definitions Add --cxtm-file option to process-test-requirements command that extracts test case metadata (title, robot_file, git_commit_sha, etc.) from cxtm.yaml and embeds it as a structured YAML block in the GitHub issue body. This enables downstream systems (like tac-agent-worker) to reliably extract test case identifiers and robot file paths from the issue, rather than relying on manually-written YAML in the test requirement definition. Changes: - Add CXTMConfiguration, CXTMTestCaseGroup, CXTMTestCase models - Add utils/cxtm.py with load/find/format functions - Add --cxtm-file CLI option to process-test-requirements - Update issue template with "Test Case Definition" section - Integrate cxtm lookup in render_issue_body_for_test_case() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--cxtm-fileoption toprocess-test-requirementscommandProblem
When the tac-agent-worker processes PRs, it needs the test case identifier/title to pass to the Claude agent. Previously, this data was extracted from manually-written YAML in the project issue body, which could be missing or inconsistent (e.g., PR #2732 where the branch name was incorrectly used as the test case identifier).
Solution
This PR enables github-ops-manager to read from cxtm.yaml (the authoritative source for test case definitions) and embed the structured test case metadata directly into the issue body:
Changes
github_ops_manager/utils/cxtm.py- cxtm.yaml parsing utilitiesCXTMTestCase,CXTMTestCaseGroup,CXTMConfigurationmodels--cxtm-fileoption toprocess-test-requirementsUsage
Pipeline Integration
The Google project Jenkinsfile has been updated to:
tac-tools synchronizer expandBEFOREprocess-test-requirements(so cxtm.yaml is populated)--cxtm-file ./cxtm.yamlto the commandTest plan
uv run pytest tests/unit/)🤖 Generated with Claude Code