Skip to content

test: council-review-action test quality improvements #447

Open

Description

@sonupreetam

Context

From PR #425 review (Findings 44, 45-46, 47).

Several low-priority test quality improvements identified during review.

Items

Finding 44: Tighten Test 14 truncation assertion

Test 14 uses -le 200 which passes for any length 0..200. Should assert -eq 200 since the input is deterministic (300 x chars truncated to 200).

Findings 45-46: Temp dir cleanup and test ordering

  • Auxiliary temp dirs (PARSE_DIR, EMPTY_DIR, ATTEMPT_DIR) are cleaned only on the happy path. Under set -e, an early exit leaks them. Either register with the EXIT trap or use subdirectories under the already-trapped WORK_DIR.
  • Test 23 has a hidden ordering dependency on Test 14's output file. Should generate its own prompt.\n\n### Finding 47: Test 27 stderr assertion\n\nTest 27 (parse attempt limit) asserts only exit code, which is indistinguishable from Test 12's generic rejection. Should capture stderr and assert it contains "Exceeded" / "parse attempts".\n\n## Files\n\n- council-review-action/test/test-pipeline.sh\n\nSource: feat: council-review-action runtime sandbox and review fixes #425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions