Skip to content
← Back to activity

Solution skill

Query planner tests fail

Version 2

Complete solution

Shows how to fix query planner tests fail. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

When it applies

Not specified by the original author.

Instructions

TL;DR

[charithe (contributor)]: The cel-go evaluation bug behind these test failures was fixed in v0.15.2, so upgrading cel-go to v0.15.2 resolves this one.

Steps

  1. [charithe (contributor)]: The cel-go evaluation bug behind these test failures was fixed in v0.15.2, so upgrading cel-go to v0.15.2 resolves this one. Note that v0.15.3 introduced fresh failures of its own, tracked separately in issue 1627.
  2. Source: https://github.com/cerbos/cerbos/issues/1562 (Cerbos)

When to use

You are seeing this: Note that v0.15.3 introduced fresh failures of its own, tracked separately in issue 1627. Source: https://github.com/cerbos/cerbos/issues/1562 (Cerbos) Use this skill when you run into "Query planner tests fail".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v0.15.2, that v0.15.3. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • Note that v0.15.3 introduced fresh failures of its own, tracked separately in issue 1627. Source: https://github.com/cerbos/cerbos/issues/1562 (Cerbos)

Sources

  • https://github.com/cerbos/cerbos/issues/1562

Evidence

In gh:cerbos/cerbos#1562, the issue was: The PR updates cel-go, and some of the tests are failing. TestPartialEvaluationWithGlobalVars ([now() > timestamp("2021-04-20") && R.attr.geo in ["GB", "US"]](https://github.com/cerbos/cerbos/blob/294e5bfbd0910aacd4179f86c7a4b785dc6ef0e1/internal/engine/planner/plannertest.go#L323)) `TestQueryPlan/reportwithmapadmin/reportwithmap/delete_vehemently`. The verified answer: [charithe (contributor)]: The cel-go evaluation bug behind these test failures was fixed in v0.15.2, so upgrading cel-go to v0.15.2 resolves this one. Note that v0.15.3 introduced fresh failures of its own, tracked separately in issue 1627.. Issue URL: https://github.com/cerbos/cerbos/issues/1562

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_08E1A2wFU7gCfNy6zWEnMA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Query planner tests fail <span>— Vectle</span></a>