Skip to content

Add CycloneDX SBOM generator and duration-aware suite sharding#226

Merged
JE-Chen merged 2 commits into
devfrom
feat/ops-batch
Jun 19, 2026
Merged

Add CycloneDX SBOM generator and duration-aware suite sharding#226
JE-Chen merged 2 commits into
devfrom
feat/ops-batch

Conversation

@JE-Chen

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

Copy link
Copy Markdown
Member

Round-3 multi-agent web-research follow-up, batch 8 — two pure-stdlib ops tools (security + scale research angles), each wired through all five layers (facade, AC_*, MCP, Script Builder) with headless tests + EN/Zh v18 docs + README sections.

Features

  • CycloneDX SBOM (utils/sbom) — build_sbom / write_sbom: walk installed distributions (importlib.metadata) and emit a CycloneDX 1.6 JSON SBOM (name/version/purl/license); root limits to a package's dependency closure, extra_components inventories action files. Supply-chain compliance (EU CRA / EO 14028). No third-party dependency. AC_generate_sbom + ac_generate_sbom.
  • Duration-aware suite sharding (utils/test_shard) — shard_flows: greedy bin-pack flows into N shards balanced by historical per-flow wall-clock from run-history (slowest worker, not test count, defines runtime); merge_results recombines per-shard reports. AC_shard_suite / AC_merge_results + ac_*.

Why

Surfaced by the round-3 agents (security/governance + performance/scale angles) as top value×feasibility, pure-stdlib, fully unit-testable items. Reuse existing data (importlib.metadata, run-history) — no new deps, no infra.

Verification

  • test/unit_test/headless/test_ops_batch.py — 8 tests pass (SBOM shape/extra/write, duration-balanced sharding incl. fallback, merge rollup, full wiring).
  • ruff clean; radon no CC≥C; bandit clean; import je_auto_control PySide6-free.

@codacy-production

codacy-production Bot commented Jun 19, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 69 complexity · 0 duplication

Metric Results
Complexity 69
Duplication 0

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 fb3cbbc into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/ops-batch branch June 19, 2026 03:51
@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