! exec pint --no-color lint rules
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=INFO msg="Loading configuration file" path=.pint.hcl
level=INFO msg="Finding all rules to check" paths=["rules"]
level=WARN msg="Failed to parse group entry" err="partial_response_strategy is only valid when parser is configured to use the Thanos rule schema" path=rules/1.yml line=3
level=INFO msg="Checking Prometheus rules" entries=1 workers=10 online=true
Fatal: partial_response_strategy is only valid when parser is configured to use the Thanos rule schema (yaml/parse)
  ---> rules/1.yml:3
 3 |   partial_response_strategy: warn
     ^^^ partial_response_strategy is only valid when parser is configured to use the Thanos rule schema

level=INFO msg="Problems found" Fatal=1
level=ERROR msg="Execution completed with error(s)" err="found 1 problem(s) with severity Bug or higher"
-- rules/1.yml --
groups:
- name: foo
  partial_response_strategy: warn
  rules:
  - alert: foo
    expr: up == 0
  - record: bar
    expr: sum(up)

-- .pint.hcl --
parser {
  schema = "prometheus"
}
