← Back to Pull requests

feat(#766): add agent skill to create feature integration tests #767

Closed
unknown closed this pull request without merging on Nov 30, 2026 12:43 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 22:57 UTC
Author

Closes #766

What

Adds a project skill, .claude/skills/camel-karaf-feature-itest/, for agents asked to write a new tests/features/camel-<feature> integration test on the shared tests/camel-integration-test framework. It is based on what the 75 existing test modules have in common.

  • SKILL.md: the workflow:

  • - pick one of six patterns used by the existing modules (dataformat or language, container back-end, consumer only, in-JVM server or free port, Blueprint, several scenarios in one module);
    - the naming chain that derives the feature, bundle, direct:/mock: endpoints and @Component name from the class name;
    - which code runs inside Karaf (route supplier) and which outside (external resources), and how values pass between them as system properties;
    - build, run and debug commands;
    - a table of common failures. Missing bundles in camel-features.xml are the usual real finding (#713, #665, #648), so the skill says to fix the feature rather than the test;
    - a checklist before the PR.
  • reference.md: copy-ready templates (pom, route supplier, ITest, external resources, Blueprint XML), example modules for each pattern, and a summary of the framework classes.

  • list-untested-features.sh: lists the camel-* features in camel-features.xml that no test covers. Right now 347 of 424 have no test.

  • AGENTS.md: a short pointer in the Tests conventions so agents other than Claude Code find the guide too.
  • Documentation and tooling only. No production or test code changes.

    Found while surveying (not fixed here)

  • tests/features/camel-velocity/src/test/test/.../CamelVelocityITest.java is in src/test/test instead of src/test/java, so the test is never compiled or run.

  • CamelFtpITest has many unused imports. CamelHttpITest and CamelKafkaITest use raw GenericContainerResource types.
  • These can go in separate follow-up PRs.

    _Claude Code on behalf of François de Parscau_

    🤖 Generated with Claude Code

    Diff: 253 lines (+189 / -64) across 3 files Reviewer: jbonofre Review duration: 825m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 253 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.331
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #767"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44% (MEDIUM) · Higher = larger blast radius
    44%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.4% · Safe to merge
    17.4%