fix(tests/e2e): surface diagnose step Detail in EIC smoke output (mc#687) #748
Reference in New Issue
Block a user
Delete Branch "fix/713-eic-diagnose-detail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mc#687 root-cause finding from mc#424: the EIC diagnose smoke was reading
diagnoseStep.error(Go error string) and discardingdiagnoseStep.detail(subprocess stderr).Before:
After:
The subprocess stderr (
.detail) contains the actionable signal. The Go error string (.error) is appended in parentheses for context when both are populated.Test plan
tests/e2e/test_staging_full_saas.shE2E smoke.detailis surfaced🤖 Generated with Claude Code
[core-qa-agent] N/A — MR !748 (e2e shell script improvement, mc#687 diagnose detail surfacing)
[core-qa-agent] Five-Axis Review — APPROVED
Correctness
No issues. New Python block correctly surfaces
detail(subprocess stderr) beforeerror(Go error string), composing both when non-empty. Thesys.exit(0)early-return on no-failed-steps is intentionally silent and consistent with the surrounding2>/dev/null || echo ""defensive pattern.Readability
Clearer than the original one-liner. The mc#687 header comment explains the
detailvserrordistinction and is genuinely useful for future maintainers.Architecture
Test-only e2e shell script. No architectural concerns; strictly additive diagnostic output.
Security
N/A — no new imports, no credentials, reads local JSON from an already-authenticated API call.
Performance
N/A for an e2e smoke test.
Verdict: APPROVE — clean improvement, no critical or required findings.