[BUG] CEL results differ for protobuf nulls, namespaces, and numeric formatting

Aperta
#368 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nodejs, typescript

Direzione di ricerca

Three unrelated conformance failures are bundled here, each in a different part of the evaluator: typed-map null pruning on protobuf conversion, name resolution for comprehensions inside namespaces, and %f/%e formatting of int/uint values. Start by running the named conformance cases (e.g. proto2/set_null/map_duration_null_pruned, namespace/namespace_shadowing/comprehension_shadowing, and the string_ext/format int cases) from the @bufbuild/cel-spec suite against the run API to see each failure directly, then trace from the conversion, resolution and formatting entry points respectively. Done means all 16 set_null cases and 10 shadowing cases agree with the spec and the four format cases return 2.000000 instead of erroring; splitting this into three issues first would make it startable.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

I tested three public CEL evaluator behaviors against the spec. The results differ for valid expressions.

Steps to Reproduce

Call the public run API on the cases below.

Expected Behavior

proto2/set_null/map_duration_null_pruned should return true after pruning the typed map's null entry. namespace/namespace_shadowing/comprehension_shadowing should return true because the local name shadows the namespace binding. string_ext/format/default precision for fixed-point clause with int should return 2.000000.

Actual Behavior

All 16 proto2 and proto3 set_null cases return false. All 10 namespace shadowing cases differ, including comprehension_shadowing. All four %f and %e cases with int or uint return errors.

Screenshots/Logs

None.

Environment

@bufbuild/cel 0.6.2; cel-es main at 34f0bee39b639661577e83301c5b31780d9a10f7; @bufbuild/cel-spec 0.6.2; Node v24.20.0.

Possible Solution

I don't have a proposed fix yet.

Additional Context

These are CEL conformance and interoperability issues.

Lingua principale
TypeScript
Stelle
43
Fork
9
Merge medio
1g 2h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bufbuild/cel-es

Tutte le issue di bufbuild/cel-es

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.