Skip to content

feat: Add evaluation tests for old user built-in attributes - #555

Merged
kinyoklion merged 1 commit into
v3from
rlamb/old-user-attribute-tests-v3
Nov 3, 2026
Merged

kinyoklion merged 1 commit into
v3from
rlamb/old-user-attribute-tests-v3

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Ports #546 from v2 to v3. It adds server-side evaluation cases for clauses on the old user model's built-in attributes.

Testing: all new cases pass on the v3 suite with each SDK's CI suppressions, against Go, Java, Node, Python (sync and async), Ruby, .NET, Rust and C++ (both network backends). No other test result changed.

Opened from termag


Note

Overview
Adds old-user-builtin-attrs.yml to the server-side evaluation harness, porting coverage from v2 (#546).

The file parameterizes over the legacy user fields firstName, lastName, email, avatar, country, and ip, with a single in-clause rule per attribute. For each field it asserts rule match, fallthrough on a wrong value, and fallthrough when the attribute is absent. The harness is expected to run the same scenarios for context-style users and equivalent old-style users (top-level properties), with identical results.

Reviewed by Cursor Bugbot for commit 8bad42e. Bugbot is set up for automated code reviews on this repo. Configure here.

@kinyoklion
kinyoklion requested a review from a team as a code owner November 3, 2026 17:15

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Approved. Cursor Bugbot completed with no findings, Cursor Security Agent was not present, and this change only adds straightforward server-side evaluation test cases.

Open in Web View Automation 

Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver

@kinyoklion
kinyoklion merged commit 411a4df into v3 Nov 3, 2026
9 checks passed
@kinyoklion
kinyoklion deleted the rlamb/old-user-attribute-tests-v3 branch November 3, 2026 17:27
kinyoklion pushed a commit that referenced this pull request Nov 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[3.2.0-alpha.16](v3.2.0-alpha.15...v3.2.0-alpha.16)
(2026-11-03)


### Features

* Add evaluation tests for a segment referenced more than once
([#553](#553))
([96e64a8](96e64a8))
* Add evaluation tests for clause values of the wrong type
([#550](#550))
([e5abd40](e5abd40))
* Add evaluation tests for falsy and look-alike variation values
([#554](#554))
([57692bd](57692bd))
* Add evaluation tests for numbers in exponent notation
([#551](#551))
([e5788fe](e5788fe))
* Add evaluation tests for old user built-in attributes
([#555](#555))
([411a4df](411a4df))
* Add evaluation tests for rollout bucket boundaries and seeded rollouts
([#552](#552))
([c17486a](c17486a))
* Add flag override tests for a client whose store holds flags without
the init key
([#539](#539))
([3c1ba64](3c1ba64))


### Bug Fixes

* Make evaluation data files test what they claim
([#556](#556))
([e3b844d](e3b844d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Overview**
> **Release 3.2.0-alpha.16** bumps the harness version in `main.go`,
`.release-please-manifest.json`, and documents the release in
`CHANGELOG.md`.
> 
> This alpha release **expands SDK contract coverage** rather than
changing harness runtime behavior in the diff itself. New **evaluation**
scenarios cover segments referenced multiple times, clause values with
wrong types, falsy or look-alike variation values, exponent-notation
numbers, legacy user built-in attributes, and rollout bucket boundaries
with seeded rollouts. **Flag override** tests now include a client whose
persistent store holds flags **without the init key**.
> 
> A **bug fix** aligns evaluation data files with the behaviors they are
meant to exercise
([#556](#556)),
which may surface new failures in SDKs that were passing mismatched
fixtures.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
046db1b. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant