Skip to content

fix(flags): read local evaluation dates in the project's timezone - #1329

Draft
andehen wants to merge 5 commits into
feat/flag-rules-v2-local-project-timezonefrom
feat/local-evaluation-project-timezone
Draft

andehen wants to merge 5 commits into
feat/flag-rules-v2-local-project-timezonefrom
feat/local-evaluation-project-timezone

Conversation

@andehen

@andehen andehen commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

Stacked on #1328, which reads the project's timezone from the flag definitions for config version 2 flags. This PR uses it for version 1 flags.

The flags service reads a date without a UTC offset and a relative date in the project's timezone. It does so for the filter value and for the person or group property value (parse_date_string_in_tz in rust/feature-flags/src/properties/property_matching.rs). Version 1 local evaluation reads them in UTC. So in a project on another timezone, is_date_before "2024-03-31" disagrees with the server around midnight, and a relative date such as -30d disagrees for the length of the UTC offset.

The sdk-specs requirement "Date criteria compare normalized instants in the effective timezone" (local-feature-flag-evaluator) already says how this works. Date-only and naive values use the project's timezone when the evaluator has one, and UTC otherwise. This PR implements its timezone parts. When the timezone is unknown, nothing changes: dates are read in UTC as before, with no fallback.

Details
  • Known timezone.
    • An offset is honored as written.
    • A bare date is midnight in the timezone.
    • A date and time without an offset is a wall clock in the timezone. This includes any other offset-free form that Python's parser accepts, as the spec requires.
    • A relative date subtracts on the timezone's wall clock, hours included, and converts back to an instant.
    • A wall clock that a fall-back transition repeats is its earlier instant.
    • A wall clock that a spring-forward transition skips, whether from parsing or from subtraction, makes the condition inconclusive, as the spec requires. The flag then falls back to the flags service. A skipped filter value gives unsupported_definition, also when the property is missing; a skipped property value gives missing_context. (The service itself treats such a wall clock as no match.)
    • A skipped wall clock is found by converting its instant back to a wall clock, so this works for any tzinfo, including one that ignores fold, such as dateutil's.
  • date and datetime property values. A remote evaluation sends them as ISO 8601 text (2024-03-31, 2024-03-31T00:30:00), which the service reads in the project's timezone. So with a known timezone:
    • a date is midnight there, compared as an instant (today it is compared by calendar day);
    • a datetime without a timezone is a wall clock there;
    • an aware datetime is unchanged.
  • Unknown timezone. The existing code path is unchanged. _match_date_property keeps its body. relative_date_parse_for_feature_flag_matching now calls a helper that takes now; its behavior is the same.
  • Public API. match_property, match_property_group, match_cohort, is_condition_match, match_feature_flag_properties and evaluate_flag_dependency gain an optional timezone keyword next to property_matching_version, and the snapshot is updated. Person, group, cohort and dependency conditions all receive it, as on the server.
  • Left as they are. These version 1 differences from the same spec requirement are unrelated to the timezone, so this PR does not change them:
    • there is no is_date_exact;
    • a property value outside the date grammar is inconclusive, where the spec says no match;
    • integer Unix seconds are declined, where the spec allows them;
    • a relative date as a property value is declined.

💚 How did you test it?

A new module, posthog/test/test_local_evaluation_project_timezone.py. The existing date tests pass unchanged, and a differential run against main gave identical results with an unknown timezone.

Details
  • 24 rows through match_property, each run in Europe/Oslo (with zoneinfo and with dateutil's tzinfo) and with an unknown timezone, with a fixed clock. They cover:
    • bare and timed filters, a filter with an offset, and another offset-free form;
    • property strings, date and datetime values;
    • a repeated wall clock, also against a datetime in the same zone with fold=1;
    • skipped wall clocks in a filter, in a property string, in a datetime, and reached by subtracting hours;
    • relative days, hours and months across the spring-forward change;
    • unreadable filter and property values, inconclusive with the same reasons as before.
  • The spec's America/Los_Angeles scenarios: a naive date, a relative hour into the fall-back overlap (the earlier instant), and one into the spring-forward gap (inconclusive). is_date_before and is_date_after stand in for is_date_exact.
  • A filter on a skipped wall clock with the property missing gives unsupported_definition in Europe/Oslo and missing_context without a timezone, through match_property and through the client.
  • Through the client: person, cohort, group and flag dependency conditions read dates in the definitions' timezone. Each unknown form that feat(flags): read config version 2 dates in the project's timezone #1328 tests (absent, null, empty, a number, an unknown name, a name zoneinfo rejects) reads them in UTC, as before.
  • Unknown timezone against main: 598 combinations of operator, filter value and property value, in time frozen across the DST change, gave identical results on this branch and on main.
  • 30 hand-made mutations, each caught:
    • 21 drop the timezone at one version 1 call site each;
    • 9 change the semantics, such as the later instant on an overlap, no gap check, the wrong reason for a skipped filter, no UTC conversion, or a date read in UTC.
    • The dateutil and missing-property tests fail on the head before they were added.
  • Run locally on Python 3.14: ruff format --check ., ruff check ., mypy with the baseline, make public_api_check, python -W error -c "import posthog", and the full suite. Only the 3 fork tests in test_metrics_autocapture.py fail, as they do on main on macOS.

📝 Checklist

  • All commits are signed (see Commit signing)
  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran sampo add to generate a changeset file

A patch changeset: version 1 local evaluation reads dates as the flags service does.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

  • Written with Claude Code from a brief by the assignee, who has not reviewed the code yet.
  • The known-timezone reading is a separate function, so that the unknown case keeps its code exactly. This is what makes "identical to main" checkable.
  • Localized instants are converted to UTC before comparing. Python compares two datetimes that share a ZoneInfo by wall clock and ignores fold, which would be wrong on a repeated hour.
  • A skipped wall clock follows the spec (inconclusive) rather than the service (no match). The fallback lets the service decide, so the answer is the same either way.

🤖 Generated with Claude Code

The flags service reads a date without a UTC offset and a relative date in
the project's timezone, in the filter value and in the property value.
Version 1 local evaluation read them in UTC.

When the flag definitions give a timezone that resolves here, local
evaluation now reads them as the service does: a bare date is midnight
there, a date and time without an offset is a wall clock there, a relative
date counts back on its wall clock, a repeated wall clock is its earlier
instant and a skipped one matches nothing. A date or naive datetime property
value is read as the ISO 8601 text a remote evaluation sends. Without a
known timezone, the existing UTC reading is unchanged.

The timezone reaches person, group, cohort and dependency conditions
through an optional keyword next to property_matching_version.
@andehen andehen self-assigned this Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

SDK performance: posthog-python

Benchmarks completed. No changes flagged for review.

Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate.

View all results
Test Measurement Before PR With PR Change Assessment
Capture and deliver events (32-byte payload, burst)
Shard: capture
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Capture and deliver events (32-byte payload, steady)
Shard: capture
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Queue an event (32-byte payload)
Shard: capture
Allocated memory per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​; head:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​
Queue an event (32-byte payload)
Shard: capture
Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​; head:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​
Queue an event (4,096-byte payload)
Shard: capture
Allocated memory per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​; head:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​
Queue an event (4,096-byte payload)
Shard: capture
Allocations per operation — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​; head:​ Background preparation has no public completion boundary before flush; see capture.​drain for full-pipeline allocations.​
Evaluate 1,000 flags under concurrent load
Shard: flags-memory
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Refresh 1,000 flag definitions
Shard: flags-memory
Managed heap after settling — — — unavailable; base:​ unsupported; head:​ unsupported; base:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​; head:​ CPython has no uninstrumented total managed-heap byte counter; tracing would distort this RSS pass.​
Capture and deliver events (32-byte payload, burst)
Shard: capture
Allocated memory per operation 133.65 KiB/op 133.65 KiB/op <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Allocations per operation 1,345.5 count/op 1,345.5 count/op <0.1% fewer Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Time per operation 79.04 µs/op 78.97 µs/op <0.1% less time Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Idle process memory (RSS) 38.19 MiB 38.2 MiB <0.1% more memory Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Observed peak process memory (RSS) 40.67 MiB 40.69 MiB <0.1% more memory Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Process memory after settling (RSS) 40.67 MiB 40.69 MiB <0.1% more memory Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Process CPU time per operation 82.25 µs/op 82.11 µs/op 0.2% less time Not flagged
Capture and deliver events (32-byte payload, burst)
Shard: capture
Lifetime peak process memory (RSS) 40.93 MiB 40.92 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Allocated memory per operation 185.73 KiB/op 185.73 KiB/op <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Allocations per operation 1,337.49 count/op 1,337.49 count/op <0.1% fewer Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Time per operation 104.1 µs/op 104.51 µs/op 0.4% more time Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Idle process memory (RSS) 41.87 MiB 41.87 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Observed peak process memory (RSS) 47.68 MiB 47.68 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Process memory after settling (RSS) 47.68 MiB 47.68 MiB <0.1% less memory Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Process CPU time per operation 101.51 µs/op 101.14 µs/op 0.4% less time Not flagged
Capture and deliver events (4,096-byte payload, burst)
Shard: capture
Lifetime peak process memory (RSS) 52.18 MiB 52.16 MiB <0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Allocated memory per operation 138.71 KiB/op 138.71 KiB/op <0.1% more memory Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Allocations per operation 1,390.29 count/op 1,390.3 count/op <0.1% more Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Time per operation 96.96 µs/op 95.67 µs/op 1.3% less time Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Idle process memory (RSS) 38.14 MiB 38.09 MiB 0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Observed peak process memory (RSS) 38.34 MiB 38.29 MiB 0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Process memory after settling (RSS) 38.34 MiB 38.29 MiB 0.1% less memory Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Process CPU time per operation 96.98 µs/op 95.7 µs/op 1.3% less time Not flagged
Capture and deliver events (32-byte payload, steady)
Shard: capture
Lifetime peak process memory (RSS) 40.53 MiB 40.53 MiB No observed change Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Allocated memory per operation 190.88 KiB/op 190.88 KiB/op <0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Allocations per operation 1,382.19 count/op 1,382.21 count/op <0.1% more Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Time per operation 116.18 µs/op 114.14 µs/op 1.8% less time Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Idle process memory (RSS) 41.72 MiB 41.77 MiB 0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Observed peak process memory (RSS) 42.21 MiB 42.25 MiB <0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Process memory after settling (RSS) 41.79 MiB 41.84 MiB 0.1% more memory Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Process CPU time per operation 111.79 µs/op 108.02 µs/op 3.4% less time Not flagged
Capture and deliver events (4,096-byte payload, steady)
Shard: capture
Lifetime peak process memory (RSS) 42.09 MiB 42.16 MiB 0.2% more memory Not flagged
Queue an event (32-byte payload)
Shard: capture
Caller-thread CPU time per operation 58.34 µs/op 57.94 µs/op 0.7% less time Not flagged
Queue an event (32-byte payload)
Shard: capture
Time per operation 58.34 µs/op 57.94 µs/op 0.7% less time Not flagged
Queue an event (4,096-byte payload)
Shard: capture
Caller-thread CPU time per operation 57.94 µs/op 57.85 µs/op 0.2% less time Not flagged
Queue an event (4,096-byte payload)
Shard: capture
Time per operation 57.93 µs/op 57.84 µs/op 0.2% less time Not flagged
Evaluate all 10 flags
Shard: flags-scaling
Allocated memory per operation 238.45 KiB/op 241.24 KiB/op 1.2% more memory Not flagged
Evaluate all 10 flags
Shard: flags-scaling
Allocations per operation 2,423.92 count/op 2,423.92 count/op No observed change Not flagged
Evaluate all 10 flags
Shard: flags-scaling
Time per operation 96.2 µs/op 97.88 µs/op 1.7% more time Not flagged
Evaluate all 10 flags
Shard: flags-scaling
Process CPU time per operation 96.2 µs/op 97.88 µs/op 1.7% more time Not flagged
Evaluate all 100 flags
Shard: flags-scaling
Allocated memory per operation 2.29 MiB/op 2.32 MiB/op 1.2% more memory Not flagged
Evaluate all 100 flags
Shard: flags-scaling
Allocations per operation 23,831.69 count/op 23,831.69 count/op No observed change Not flagged
Evaluate all 100 flags
Shard: flags-scaling
Time per operation 943.13 µs/op 947.47 µs/op 0.5% more time Not flagged
Evaluate all 100 flags
Shard: flags-scaling
Process CPU time per operation 943.15 µs/op 947.45 µs/op 0.5% more time Not flagged
Evaluate all 1,000 flags
Shard: flags-scaling
Allocated memory per operation 22.89 MiB/op 23.16 MiB/op 1.2% more memory Not flagged
Evaluate all 1,000 flags
Shard: flags-scaling
Allocations per operation 237,808.44 count/op 237,808.44 count/op No observed change Not flagged
Evaluate all 1,000 flags
Shard: flags-scaling
Time per operation 9.78 ms/op 10.01 ms/op 2.3% more time Not flagged
Evaluate all 1,000 flags
Shard: flags-scaling
Process CPU time per operation 9.78 ms/op 10.01 ms/op 2.3% more time Not flagged
Evaluate 1,000 flags under concurrent load
Shard: flags-memory
Idle process memory (RSS) 44.87 MiB 44.93 MiB 0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load
Shard: flags-memory
Observed peak process memory (RSS) 45.21 MiB 45.24 MiB <0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load
Shard: flags-memory
Process memory after settling (RSS) 45.21 MiB 45.24 MiB <0.1% more memory Not flagged
Evaluate 1,000 flags under concurrent load
Shard: flags-memory
Lifetime peak process memory (RSS) 44.98 MiB 44.93 MiB 0.1% less memory Not flagged
Refresh 1,000 flag definitions
Shard: flags-memory
Idle process memory (RSS) 43.6 MiB 43.82 MiB 0.5% more memory Not flagged
Refresh 1,000 flag definitions
Shard: flags-memory
Observed peak process memory (RSS) 43.6 MiB 43.83 MiB 0.5% more memory Not flagged
Refresh 1,000 flag definitions
Shard: flags-memory
Process memory after settling (RSS) 43.6 MiB 43.83 MiB 0.5% more memory Not flagged
Refresh 1,000 flag definitions
Shard: flags-memory
Lifetime peak process memory (RSS) 44.27 MiB 43.66 MiB 1.4% less memory Not flagged
Evaluate one boolean flag
Shard: flags-single
Allocated memory per operation 16.45 KiB/op 16.52 KiB/op 0.4% more memory Not flagged
Evaluate one boolean flag
Shard: flags-single
Allocations per operation 176.77 count/op 176.77 count/op No observed change Not flagged
Evaluate one boolean flag
Shard: flags-single
Time per operation 8.46 µs/op 8.52 µs/op 0.7% more time Not flagged
Evaluate one boolean flag
Shard: flags-single
Process CPU time per operation 8.46 µs/op 8.52 µs/op 0.8% more time Not flagged
Evaluate a cohort-filtered flag
Shard: flags-single
Allocated memory per operation 25.99 KiB/op 26.25 KiB/op 1% more memory Not flagged
Evaluate a cohort-filtered flag
Shard: flags-single
Allocations per operation 259.28 count/op 259.28 count/op No observed change Not flagged
Evaluate a cohort-filtered flag
Shard: flags-single
Time per operation 11.74 µs/op 11.97 µs/op 2% more time Not flagged
Evaluate a cohort-filtered flag
Shard: flags-single
Process CPU time per operation 11.74 µs/op 11.97 µs/op 2% more time Not flagged
Evaluate a flag (early match)
Shard: flags-single
Allocated memory per operation 42.06 KiB/op 42.52 KiB/op 1.1% more memory Not flagged
Evaluate a flag (early match)
Shard: flags-single
Allocations per operation 415.77 count/op 415.77 count/op No observed change Not flagged
Evaluate a flag (early match)
Shard: flags-single
Time per operation 17.07 µs/op 16.99 µs/op 0.4% less time Not flagged
Evaluate a flag (early match)
Shard: flags-single
Process CPU time per operation 17.07 µs/op 16.99 µs/op 0.4% less time Not flagged
Evaluate a flag (late match)
Shard: flags-single
Allocated memory per operation 64.04 KiB/op 64.83 KiB/op 1.2% more memory Not flagged
Evaluate a flag (late match)
Shard: flags-single
Allocations per operation 622.27 count/op 622.27 count/op No observed change Not flagged
Evaluate a flag (late match)
Shard: flags-single
Time per operation 24.35 µs/op 24.47 µs/op 0.5% more time Not flagged
Evaluate a flag (late match)
Shard: flags-single
Process CPU time per operation 24.34 µs/op 24.46 µs/op 0.5% more time Not flagged
Evaluate a flag (no match)
Shard: flags-single
Allocated memory per operation 62.67 KiB/op 63.46 KiB/op 1.3% more memory Not flagged
Evaluate a flag (no match)
Shard: flags-single
Allocations per operation 605.77 count/op 605.77 count/op No observed change Not flagged
Evaluate a flag (no match)
Shard: flags-single
Time per operation 23.19 µs/op 23.1 µs/op 0.4% less time Not flagged
Evaluate a flag (no match)
Shard: flags-single
Process CPU time per operation 23.19 µs/op 23.09 µs/op 0.4% less time Not flagged
Evaluate a property-filtered flag
Shard: flags-single
Allocated memory per operation 20.09 KiB/op 20.22 KiB/op 0.7% more memory Not flagged
Evaluate a property-filtered flag
Shard: flags-single
Allocations per operation 209.27 count/op 209.27 count/op No observed change Not flagged
Evaluate a property-filtered flag
Shard: flags-single
Time per operation 9.58 µs/op 9.61 µs/op 0.3% more time Not flagged
Evaluate a property-filtered flag
Shard: flags-single
Process CPU time per operation 9.58 µs/op 9.61 µs/op 0.2% more time Not flagged
Evaluate a regex-filtered flag
Shard: flags-single
Allocated memory per operation 21.71 KiB/op 21.86 KiB/op 0.7% more memory Not flagged
Evaluate a regex-filtered flag
Shard: flags-single
Allocations per operation 214.77 count/op 214.77 count/op No observed change Not flagged
Evaluate a regex-filtered flag
Shard: flags-single
Time per operation 10.09 µs/op 10.11 µs/op 0.2% more time Not flagged
Evaluate a regex-filtered flag
Shard: flags-single
Process CPU time per operation 10.09 µs/op 10.11 µs/op 0.2% more time Not flagged
Evaluate a rollout flag
Shard: flags-single
Allocated memory per operation 15.6 KiB/op 15.67 KiB/op 0.5% more memory Not flagged
Evaluate a rollout flag
Shard: flags-single
Allocations per operation 166.77 count/op 166.77 count/op No observed change Not flagged
Evaluate a rollout flag
Shard: flags-single
Time per operation 7.89 µs/op 7.96 µs/op 0.9% more time Not flagged
Evaluate a rollout flag
Shard: flags-single
Process CPU time per operation 7.89 µs/op 7.96 µs/op 0.9% more time Not flagged
Evaluate a multivariate flag
Shard: flags-single
Allocated memory per operation 16.6 KiB/op 16.67 KiB/op 0.4% more memory Not flagged
Evaluate a multivariate flag
Shard: flags-single
Allocations per operation 180.77 count/op 180.77 count/op No observed change Not flagged
Evaluate a multivariate flag
Shard: flags-single
Time per operation 8.79 µs/op 8.86 µs/op 0.8% more time Not flagged
Evaluate a multivariate flag
Shard: flags-single
Process CPU time per operation 8.79 µs/op 8.86 µs/op 0.8% more time Not flagged

Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals.

Each shard uses its own runner; compare Before PR against With PR within a row, not across shards.

Compared fc2ef7de162f6bacc37beb81d7bbd0af6c711285 → 55baf0e131ba80fb0b8f03d19261b012f1856607.

Full report and diagnostics

102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in comparison.json, including per-runner environments, resource limits, measurement methods, samples and checkpoints.

Follow the local evaluator spec's date requirement for the project's
timezone. A wall clock that a spring-forward transition skips, from parsing
or from relative subtraction, makes the date condition inconclusive instead
of a no-match, so the flag falls back. Every offset-free form the parser
accepts is read in the project's timezone, not only the forms the flags
service lists.
The gap check compared the offsets of the two folds, so a tzinfo that gives
a wall clock in a gap one offset for either fold, such as dateutil's, read
it as an instant. Detect the gap by converting the instant back to a wall
clock instead.

The filter check that runs when a property is missing parsed date filters
in UTC, so a filter on a skipped wall clock reported missing_context. It now
parses them in the project's timezone and reports unsupported_definition.
…dispatch

Choose between the UTC and the project-timezone date matching where the
operator is dispatched, as the filter check already does, so the UTC
function is the one on main. Take the current time in the timezone
directly, pass the timezone to the filter check explicitly, and fold the
inconclusive date tests into the table, which now also runs with dateutil's
tzinfo and every unknown timezone form of the config version 2 tests.

This branch has not been deployed

No deployments
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