Skip to content

fix(recfilter): engine filters ignore the EC2 Platform shown as Engine #369

Closed

Description

@cristim

Filters.IncludesEngine uses common.EngineFromDetails, which returns '' for *ComputeDetails. The CSV labels EC2 Platform as Engine, but --include-engines 'Windows (Amazon VPC)' yields 0 recs and --exclude-engines windows leaves 22 of 22.

Fix: engine filters match the normalised EC2 Platform (case-insensitive, '(Amazon VPC)' suffix optional) without changing EngineFromDetails, which feeds the dedupe key and Matches.

Activity

  1. cristim commented on Oct 16, 2026

    @cristim
    MemberAuthor

    Checked against main 740dfbd: #379 (6fd189f, second commit) added EngineFilterKey so engine filters match the EC2 platform. It used Refs #369, so this stayed open. Marking needs-info for a close decision.

  2. cristim commented on Oct 20, 2026

    @cristim
    MemberAuthor

    Verified on current main. #379 added common.EngineFilterKey (pkg/common/engine.go:125-145), which uses the normalised EC2 Platform for compute and leaves EngineFromDetails untouched; Filters uses it at pkg/recfilter/filters.go:81-83. filters_test.go:244-250 cover 'Windows (Amazon VPC)', bare 'windows', 'linux' and exclude-windows, case-insensitively. [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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions