feat(evaluator): port new test scenarios from PRs #341-345 into evaluator testkit#348
feat(evaluator): port new test scenarios from PRs #341-345 into evaluator testkit#348
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates a substantial collection of new test scenarios into the evaluator testkit, enhancing the robustness and reliability of the flag evaluation system. By covering a wider array of conditions, including complex operators, error handling, and edge cases, these changes ensure that the evaluator behaves as expected across diverse configurations and inputs. This expansion of test coverage is crucial for maintaining the quality and predictability of feature flag evaluations. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request successfully ports new test scenarios from several previous PRs into the evaluator testkit. The new flag definitions in evaluator/flags/testkit-flags.json are well-structured and consistent with existing patterns. The accompanying Gherkin feature files (evaluator/gherkin/*.feature) clearly define the new test cases for error handling, basic evaluation, evaluator references, fractional operators, metadata, no-default variants, semantic versioning, string comparisons, targeting, and zero values. The updates to flags/custom-ops.json and gherkin/targeting.feature also integrate smoothly, enhancing the test coverage for fractional operator edge cases and versioning. Overall, the changes significantly improve the robustness of the evaluator test suite.
42c60d2 to
457811b
Compare
2479355 to
7ef3b9e
Compare
- semver edge cases: v-prefix, partial version, build metadata (@semver-edge-cases) - operator error null-return fallback (@operator-errors): semver invalid version/operator, fractional null bucket key - nested $ref resolution via is_privileged (@evaluator-ref-edge-cases) - nested fractional expressions: if/var as bucket variant names (@fractional-nested) - fractional hash edge cases (@fractional-v2) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
7ef3b9e to
c94dd14
Compare
|
Closing as superseded. The evaluator testkit backfill has been distributed into the individual feature branches:
This approach keeps each feature self-contained and avoids a single large backfill PR that becomes hard to review and prone to merge conflicts. |
Summary
Ports all new test scenarios introduced in PRs #341, #342, #343, and #345 into the
evaluator/testkit added by #344. These tests were not included in the original #344 branch.Changes
evaluator/flags/testkit-flags.json— 11 new flags + 1 evaluatorfractional-hash-edge-flagsemver-v-prefix-flag,semver-partial-version-flag,semver-build-metadata-flagsemver-invalid-version-flag,semver-invalid-operator-flag,fractional-null-bucket-key-flagnested-ref-targeted-flag+is_privilegedevaluatorfractional-nested-if-flag,fractional-nested-var-flagevaluator/gherkin/fractional.feature@fractional-v2— hash edge cases (boundary values for MurmurHash3 precision)@fractional-nested— nestedifandvarexpressions as bucket variant names@operator-errors— null bucket key falls back to default variantevaluator/gherkin/semver.feature@semver-edge-cases— v-prefix handling, partial version, build metadata ignored@operator-errors— unparseable version and unknown operator both return null → fallbackevaluator/gherkin/evaluator-refs.feature@evaluator-ref-edge-cases— nested$refresolution (is_privileged→is_ballmer)Related