Skip to content

Add synthetic test data, MCP registry manifest, risk-based test selection#219

Merged
JE-Chen merged 2 commits into
devfrom
feat/tooling-batch
Jun 18, 2026
Merged

Add synthetic test data, MCP registry manifest, risk-based test selection#219
JE-Chen merged 2 commits into
devfrom
feat/tooling-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 18, 2026

Copy link
Copy Markdown
Member

Round-2 backlog, batch 1/N — three pure-stdlib tools, each wired through all five layers (facade, AC_* executor command, MCP tool, Script Builder) with headless tests + EN/Zh v11 docs + README sections.

Features

  • Synthetic test data (utils/test_data) — generate_rows(schema, count, seed=...) / write_dataset; deterministic fake rows (name/email/phone/int/float/choice/date/uuid…), no Faker. AC_generate_data / ac_generate_data.
  • MCP registry manifest (utils/mcp_registry) — build_server_manifest / write_server_manifest; registry-valid server.json built from live package metadata, include_tools embeds the live tool list under _meta. AC_mcp_manifest / ac_mcp_manifest. (Kept in its own package so import je_auto_control doesn't eagerly pull the MCP server stack.)
  • Risk-based test selection (utils/test_select) — rank_flows / select_flows; scores flows from run history (failure rate, last-failed, flakiness, staleness; never-run = 0.8). AC_rank_tests / AC_select_tests / ac_rank_tests / ac_select_tests.

Verification

  • test/unit_test/headless/test_tooling_batch.py — 10 tests pass.
  • Full headless suite: 2113 passed, 15 skipped.
  • ruff clean; radon no CC≥C; bandit clean (single # nosec B311 on the seeded RNG, non-crypto).
  • import je_auto_control stays PySide6-free.

@codacy-production

codacy-production Bot commented Jun 18, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 109 complexity · 2 duplication

Metric Results
Complexity 109
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit a049e3a into dev Jun 18, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/tooling-batch branch June 18, 2026 23:50
@sonarqubecloud

Copy link
Copy Markdown

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