Skip to content

Update flagd-testbed to v3.6.0 and fix evaluation edge cases #1942

@toddbaert

Description

@toddbaert

Summary

Update the flagd-testbed dependency to v3.6.0 and fix the Go in-process evaluator to pass all new edge-case tests.

Testbed v3.6.0 adds coverage for the edge cases identified in:

Bugs to fix

sem_ver (#1873)

  1. sem_ver returns false on parse failure instead of null; should return nil to trigger default variant fallback, not take the false branch
  2. sem_ver returns false on unknown operator instead of null; same issue as above

Custom operator error returns (#1874)

  1. ends_with returns false on error while starts_with returns nil; both should return nil consistently
  2. fractional returns "" (empty string) on no-bucket-match; should return nil to trigger default variant fallback instead of causing a variant lookup failure

$evaluators/$ref resolution (#1875)

  1. Non-deterministic $evaluators replacement ordering due to Go map iteration randomization; should use sorted or deterministic iteration
  2. No diagnostic feedback on unresolved $refs at parse time; misconfiguration only discovered at evaluation time with confusing error about unknown $ref operator

Parent: #1904

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Pending

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions