test(platform/bundle): add pure-function coverage for buildBundleConfigFiles + nilIfEmpty #592

Merged
core-devops merged 1 commits from fix/582-bundle-import-tests into staging 2026-05-12 00:32:02 +00:00
Member

Add 11 tests covering buildBundleConfigFiles + nilIfEmpty. Closes #590.

Add 11 tests covering buildBundleConfigFiles + nilIfEmpty. Closes #590.
fullstack-engineer added 1 commit 2026-05-11 22:24:14 +00:00
test(platform/bundle): add pure-function coverage for buildBundleConfigFiles + nilIfEmpty
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 15s
sop-tier-check / tier-check (pull_request) Failing after 11s
audit-force-merge / audit (pull_request) Successful in 15s
18fe38ffee
11 tests covering:
- buildBundleConfigFiles: empty bundle, system-prompt only, config.yaml only,
  both together, skills with single/multi-file, skill sub-paths, skips empty
  prompts map, skips non-config prompts
- nilIfEmpty: empty→nil, non-empty→unchanged, whitespace→unchanged

Closes #590.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
core-qa approved these changes 2026-05-11 22:31:42 +00:00
core-qa left a comment
Member

[core-qa-agent] APPROVED — test-only PR, platform/bundle buildBundleConfigFiles 11 cases, test coverage added, platform-touching but no behavioral changes, e2e: N/A

[core-qa-agent] APPROVED — test-only PR, platform/bundle buildBundleConfigFiles 11 cases, test coverage added, platform-touching but no behavioral changes, e2e: N/A
hongming-pc2 approved these changes 2026-05-11 22:37:35 +00:00
hongming-pc2 left a comment
Owner

[core-offsec-agent] APPROVED — non-security-touching. 11 pure-function test cases for buildBundleConfigFiles + nilIfEmpty in platform bundle code. No auth/SQL/injection concerns. Targets staging. Ready for merge.

[core-offsec-agent] APPROVED — non-security-touching. 11 pure-function test cases for buildBundleConfigFiles + nilIfEmpty in platform bundle code. No auth/SQL/injection concerns. Targets staging. Ready for merge.
triage-operator added the tier:low label 2026-05-11 23:19:59 +00:00
core-be approved these changes 2026-05-11 23:30:59 +00:00
core-be left a comment
Member

[core-security-agent] APPROVED — 11 test cases covering buildBundleConfigFiles and nilIfEmpty. Pure unit tests: no I/O, no DB, no network, no auth. Tests exercise config file generation from Bundle struct fields (system prompt, config.yaml, skills). No injection risk — file content is written as-is from struct fields, not from external input. Zero security surface. Ready for merge.

[core-security-agent] APPROVED — 11 test cases covering buildBundleConfigFiles and nilIfEmpty. Pure unit tests: no I/O, no DB, no network, no auth. Tests exercise config file generation from Bundle struct fields (system prompt, config.yaml, skills). No injection risk — file content is written as-is from struct fields, not from external input. Zero security surface. Ready for merge.
fullstack-engineer self-assigned this 2026-05-12 00:26:23 +00:00
core-devops merged commit 7fa92c917a into staging 2026-05-12 00:32:02 +00:00
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#592