Skip to content

ci: test with OPA 1.20.2 only and drop OPA 1.19 - #186

Merged
jbpros merged 1 commit into
mainfrom
ci/opa-1-20
Oct 13, 2026
Merged

jbpros merged 1 commit into
mainfrom
ci/opa-1-20

Conversation

@jbpros

@jbpros jbpros commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Moves every CI job to OPA 1.20.2 and stops testing OPA 1.19.

OPA 1.19 compares some numbers wrongly: 1 >= 100.0 is true, so "min_subjects": 100.0 passes with one subject, and range and compare can be wrong too. The #181 review hit it again, where x is between 100.0 and 1 parses on 1.19 instead of giving "min above max". A test for that can't pass while CI runs 1.19. 1.20.2 is the version the Kosli CLI embeds.

  • .github/workflows/test.yml: test, wasm, wasm-js and spec run 1.20.2. The separate opa-1-20 job goes, since test now does what it did. test, wasm and title keep their names, as the ruleset requires them.
  • README.md says ergo needs 1.20.1 or later. 1.20.0 compares correctly but stops with panic: illegal value on 0.0 == 1.5 (panic: illegal value comparing a decimal zero (0.0) with any non-integral number (regression in v1.20.0) open-policy-agent/opa#9098). I ran each example on 1.19.0, 1.20.0, 1.20.1 and 1.20.2.
  • AGENTS.md, CONTRIBUTING.md, and the site's opaVersion and bakery page name 1.20. The site files are site:, but they only say which OPA version ergo needs, so they go with this change.

Checks run here with OPA 1.20.2: every check in AGENTS.md, coverage, the Wasm tests in Docker, and the Wasm JS runtime script (1009 pass, 10.5 MB).

🤖 Generated with Claude Code

OPA 1.19 says 1 >= 100.0 is true, so ergo gives wrong verdicts on it,
and a test that pins the right answer can't pass there. Every job now
runs 1.20.2, the version the Kosli CLI embeds, so the separate 1.20 job
goes. The README says ergo needs 1.20.1 or later, because 1.20.0 panics
on 0.0 == 1.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jbpros jbpros added the enhancement New feature or request label Oct 13, 2026
@jbpros
jbpros marked this pull request as ready for review October 13, 2026 13:17
@jbpros
jbpros merged commit ca3570f into main Oct 13, 2026
5 checks passed
@jbpros
jbpros deleted the ci/opa-1-20 branch October 13, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant