Skip to content

test(filters): pin the CSV-path ambiguous-exclude refusal in filterAndAdjustRecommendations #2252

Closed

Description

@cristim

Follow-up to #2251. This came from the independent review at b83cbd5.

In requireFilterInputs (cmd/multi_service.go:960), I replaced requireResolvedAccountNames with requireNamesResolved. That removes the ambiguous-exclude check from the CSV replay path, and no test failed.

TestRequireExactExcludes calls the wrapper directly, so nothing covers the CSV call-site wiring. The behaviour is correct today: the built binary with a CSV fixture and --exclude-accounts prod exits 1 with the "matches no account exactly" error before any AWS call.

Ask: add a test that sends a partial exclude through filterAndAdjustRecommendations. Assert the error and that no recs are returned. That way the probe above fails.

Activity

  1. added
    triaged
    priority/p3
    severity/low
    impact/internal
    effort/xs
    type/chore
    on Oct 17, 2026
  2. cristim commented on Oct 19, 2026

    @cristim
    MemberAuthor

    Claiming: implementing with a regression test [claude-cc-libs]

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

    effort/xsimpact/internalpriority/p3severity/lowtriagedtype/choreurgency/eventually

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions