Skip to content

perf(compile): read only set props and cache literal Var dispatch - #7121

Merged
masenf merged 6 commits into
reflex-dev:mainfrom
FarhanAliRaza:farhan/compile-prop-hot-paths
Sep 15, 2026
Merged

masenf merged 6 commits into
reflex-dev:mainfrom
FarhanAliRaza:farhan/compile-prop-hot-paths

Conversation

@FarhanAliRaza

@FarhanAliRaza FarhanAliRaza commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

First of three stacked compile-performance PRs. This one is pure hot-path work with no change to generated output.

  • Component._iter_set_props: _render, _get_vars, and the prop-component scan walked every declared prop (34 to 70 per Radix component) through the field descriptor to find the few that are set. They now iterate the instance dict plus class-level defaults, in declaration order. Literal defaults, @property overrides, and factory defaults still surface.
  • _literal_var_for: caches the literal Var class per exact value type instead of copying and walking the twelve-entry isinstance ladder on every LiteralVar.create. Cleared when a literal subclass registers.
  • insert_app_wraps short-circuits on identity before the field-by-field component comparison.
  • CommonTag now holds the fields and generic render protocol shared by every tag class, with render(children=None) defined as dict(self.set(children=children)). Tag subclasses it and overrides render with a direct fast path that produces the same dictionary (tested). CondTag, MatchTag, IterTag, and Tagless inherit CommonTag, so Component._render and its overrides are annotated -> CommonTag. render_prop passes strings and dicts straight through.
  • cached_property keys use a plain object() instead of uuid4.
  • The memoize plugin's component imports are hoisted to module level (no import cycle exists).

Measurements

Docs site (docs/app, 511 routes), App._compile(dry_run=True) in a fresh process, warm runs:

state compile
main 46.5 to 47.1 s
this PR 39.7 to 40.0 s

cProfile of the same compile: field-descriptor reads fell from 14.9M to 3.1M calls; _render -6.2 s, _get_vars -3.1 s, _create_literal_var -5.1 s, Tag.add_props -2.5 s (profiled time).

Benchmark pages (tests/benchmarks/fixtures.py, full-context compile): complicated page 29.3 ms to 25.0 ms.

Stack

  1. this PR
  2. perf(events): share one chain per handler and trigger across call sites #7122 perf(events): share one chain per handler and trigger across call sites
  3. ENG-10101: perf(memo): evaluate passthrough bodies once and reuse their analysis #7123 perf(memo): evaluate passthrough bodies once and reuse their analysis

Each later PR's diff includes the earlier ones; merge in order.

Test plan

  • New tests: set-prop iteration with defaults, plain-tag render protocol, custom-tag render protocol, render_prop passthrough, literal dispatch invalidation on late registration, cached_property identity, pickle, and release.
  • uv run pytest tests/units/components tests/units/reflex_base tests/units/compiler tests/units/test_event.py green apart from failures that reproduce on clean main in this environment.
  • ruff, pyright, and pre-commit clean.

https://claude.ai/code/session_01PmizE1eQhtYZyVs1RK2ke3

Review in cubic

@FarhanAliRaza
FarhanAliRaza requested a review from a team as a code owner September 11, 2026 23:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-11T23:20:07.816636Z 870787a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no actionable correctness, security, or repository-rule violations remain.

Summary

This PR optimizes several compilation hot paths while preserving the existing render protocol and generated output.

  • Iterates only explicitly set or defaulted component props.
  • Caches literal Var dispatch by exact Python value type and invalidates the cache when literal subclasses register.
  • Introduces CommonTag and gives ordinary Tag rendering a direct fast path.
  • Replaces UUID-based cached-property keys with identity objects and hoists memoization imports.
  • Adds focused regression tests and changelog fragments for every affected package.

Reviews (7) · Last reviewed commit: "Merge branch 'main' into farhan/compile-..."

Comment thread reflex/compiler/plugins/memoize.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 870787ab22

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread reflex/compiler/plugins/memoize.py Resolved
Component render, Var collection, and the prop-component scan walked every
declared prop through the field descriptor to find the few that are set.
Iterate the instance dict plus class-level defaults instead. Cache the
literal Var class per exact value type, short-circuit app-wrap dedupe on
identity, skip the generic tag protocol for plain tags, and hoist the
memoize plugin's component imports.

Docs site dry compile (511 pages): 47 s to 40 s.

Claude-Session: https://claude.ai/code/session_01PmizE1eQhtYZyVs1RK2ke3
@FarhanAliRaza
FarhanAliRaza force-pushed the farhan/compile-prop-hot-paths branch from 870787a to 9300edf Compare September 15, 2026 13:46
@codspeed

codspeed Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 13.16%

⚡ 9 improved benchmarks
✅ 31 untouched benchmarks
⏩ 8 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_compile_page[_complicated_page] 275.8 ms 215.5 ms +28.03%
⚡ test_compile_page_full_context[_complicated_page] 321.6 ms 255.9 ms +25.66%
⚡ test_compile_all_artifacts[_complicated_page] 154.5 ms 135.8 ms +13.77%
⚡ test_compile_page[_stateful_page] 69 ms 61.3 ms +12.56%
⚡ test_compile_page_full_context[_stateful_page] 78.4 ms 69.9 ms +12.26%
⚡ test_compile_all_artifacts[_stateful_page] 60.6 ms 55.8 ms +8.61%
⚡ test_evaluate_page_with_hooks[_complicated_page] 62.9 ms 58.7 ms +7.2%
⚡ test_evaluate_page[_complicated_page] 62.4 ms 58.2 ms +7.17%
⚡ test_console_log 811.7 µs 770.1 µs +5.41%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing FarhanAliRaza:farhan/compile-prop-hot-paths (f3f0361) with main (2062139)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@masenf masenf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i'm still nervous overall about not having a consistent Tag interface.

I think what we need is to move most Tag functionality into a CommonTag base class that has

def render(self, children: Sequence[Any] | None = None) -> dict[str, Any]:
    if children is not None:
        return dict(self.set(children=children))

Have the specialty tags inherit from this. And have Tag inherit from CommonTag and overwrite the render(...) method with its more efficient implementation.

That way we don't have weird code duplication or ignored params, so CommonTag has a stable interface that is correct top to bottom, but the frequent case can still be performant.

The whole reason Tag and friends exist is to create another layer of indirection between the component and the rendered output. It's mostly an internal implementation detail, but I want to make sure that it remains consistent so we can still reason about it as a concept.

@masenf
masenf merged commit dd849e6 into reflex-dev:main Sep 15, 2026
124 of 125 checks passed
masenf added a commit that referenced this pull request Sep 22, 2026
…its new API (#7268)

#7121 split `CommonTag` out of `Tag` and moved it into
`reflex_base.components.tags`, and the same release train added
`reflex_base.vars.special`. Five component packages started importing those
without raising their declared floor on `reflex-base`, so their published
metadata allows a `reflex-base` that has neither:

    reflex-components-core     0.9.10 -> reflex-base >= 0.9.9
    reflex-components-radix    0.9.10 -> reflex-base >= 0.9.7
    reflex-components-markdown 0.9.4  -> reflex-base >= 0.9.0
    reflex-components-gridjs   0.9.2  -> reflex-base >= 0.9.0
    reflex-components-recharts 0.9.4  -> reflex-base >= 0.9.8

`pip install reflex` is unaffected -- the umbrella package pins
`reflex-base >= 0.9.12.dev0` and drags a good version in. Anything that
resolves the component packages without that constraint is not: an existing
environment upgrading only `reflex-components-core`, a project depending on
one of them directly, or a downstream distribution such as reflex-enterprise.
Those get `ImportError: cannot import name 'CommonTag'` (or a
`ModuleNotFoundError` for `reflex_base.vars.special`) at import time.

scripts/check_min_deps.py catches this and is red on main for exactly these
five packages; it went red the moment reflex-base 0.9.12 reached PyPI, having
passed up to and including the release commit. The follow-up PR fixes that
blind spot.


Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

Co-authored-by: Claude <[email protected]>
masenf pushed a commit that referenced this pull request Sep 22, 2026
…min_deps

check_min_deps.py fails a package only on pyright errors that are *new* at its
declared floors, measured against a "latest" resolution. Both ends resolved from
PyPI, so an error present in both cancelled out -- which is exactly what happens
to a cross-package API for as long as it is unpublished.

#7121 added `reflex_base.components.tags.CommonTag` and five component packages
imported it without raising their floor on reflex-base. No published reflex-base
had the symbol, both resolutions reported the same "unknown import symbol", and
the check passed on every run until reflex-base 0.9.12 reached PyPI -- at which
point it went red on already-merged code. #7268 fixes those floors; this fixes
the reason nothing caught them.

Build every declared workspace sibling into the wheelhouse that until now held
only `*.dev` pins, and have the baseline resolution install those builds, so
`latest` means this workspace for a sibling and PyPI for everything else. A
symbol that exists at HEAD but not at the floor is then new at the minimum, and
the check reports it on the pull request that introduces the coupling, asking
for the `*.dev` pin the release pipeline already knows how to rewrite.

Two details the wheelhouse needed:

- A workspace build carries a development version (0.9.12.post1.dev0+<sha>), and
  a resolver only considers pre-releases for a requirement that names one, so an
  index alone still left a plain floor such as `reflex-base >= 0.9.12` taking the
  published release. The baseline names the exact built version; the minimum
  resolution stays unpinned, where `lowest-direct` selects the declared floor.

- A declared `*.dev` floor was used as the build version unconditionally, which
  built reflex-base below what its own sibling reflex-components-core requires
  and made the root package unresolvable. Each sibling is now built at the
  version its checkout derives, keeping the wheelhouse a consistent snapshot of
  the workspace, and is redone at the floor only when that version falls short.

Verified end to end by adding a symbol to reflex-base HEAD and importing it from
reflex-components-core: the previous script passes, this one reports it. All 20
checkable packages still pass.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm
masenf added a commit that referenced this pull request Sep 25, 2026
…se the build jobs' wheels (#7269)

* fix(scripts): resolve workspace siblings from the workspace in check_min_deps

check_min_deps.py fails a package only on pyright errors that are *new* at its
declared floors, measured against a "latest" resolution. Both ends resolved from
PyPI, so an error present in both cancelled out -- which is exactly what happens
to a cross-package API for as long as it is unpublished.

#7121 added `reflex_base.components.tags.CommonTag` and five component packages
imported it without raising their floor on reflex-base. No published reflex-base
had the symbol, both resolutions reported the same "unknown import symbol", and
the check passed on every run until reflex-base 0.9.12 reached PyPI -- at which
point it went red on already-merged code. #7268 fixes those floors; this fixes
the reason nothing caught them.

Build every declared workspace sibling into the wheelhouse that until now held
only `*.dev` pins, and have the baseline resolution install those builds, so
`latest` means this workspace for a sibling and PyPI for everything else. A
symbol that exists at HEAD but not at the floor is then new at the minimum, and
the check reports it on the pull request that introduces the coupling, asking
for the `*.dev` pin the release pipeline already knows how to rewrite.

Two details the wheelhouse needed:

- A workspace build carries a development version (0.9.12.post1.dev0+<sha>), and
  a resolver only considers pre-releases for a requirement that names one, so an
  index alone still left a plain floor such as `reflex-base >= 0.9.12` taking the
  published release. The baseline names the exact built version; the minimum
  resolution stays unpinned, where `lowest-direct` selects the declared floor.

- A declared `*.dev` floor was used as the build version unconditionally, which
  built reflex-base below what its own sibling reflex-components-core requires
  and made the root package unresolvable. Each sibling is now built at the
  version its checkout derives, keeping the wheelhouse a consistent snapshot of
  the workspace, and is redone at the floor only when that version falls short.

Verified end to end by adding a symbol to reflex-base HEAD and importing it from
reflex-components-core: the previous script passes, this one reports it. All 20
checkable packages still pass.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(scripts): build each sibling once per package, and serialize the builds

Two problems found while reviewing the previous commit.

`_workspace_pins` re-read the package's pyproject.toml and rebuilt every
`Requirement` that `_build_local_wheelhouse` had just derived, to answer a
question the build loop already had the data for. Fold the pin selection into
the build, which now returns `(pins, detail)` like `_resolve_and_check` does:
one read, one derivation, one pass.

More seriously, the sibling builds race under `--jobs`. The pyi build hook
regenerates stubs inside the sibling's *own source tree*, and a sibling is
typically declared by several packages -- nine of them declare
reflex-components-core -- so two workers building it at once have the wheel
builder stat a stub the other build has just replaced:

    FileNotFoundError: .../reflex_components_core/base/document.pyi
    error: Failed to build .../packages/reflex-components-core

That was latent before (only dev-pinned siblings were built, and only for the
root package), and it is invisible in CI, which checks one package per job and
never contends. It is real for anyone running the script locally with `-j`, so
serialize the builds behind one lock. Two consecutive full sweeps now pass, and
the lock costs nothing measurable: 126 s and 125 s at `-j 4`, against 122 s
before it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(scripts): build the whole workspace closure, and check only real source

Two fixes, both fallout from building every declared sibling rather than only
the dev-pinned ones.

**The closure**, reported by cubic on #7269. A sibling's build environment
resolves that sibling's *own* runtime requirements when its backend sets
`require-runtime-dependencies`, which the root `reflex` package does. Collecting
only the directly declared siblings therefore builds `reflex` for
`reflex-docgen` and `reflex-components-internal` without the `reflex-base` its
build then asks for. It is latent today only because `reflex-base >= 0.9.12.dev0`
is satisfied by the published 0.9.12. Point the root at an unpublished floor --
the state main is in for the length of every release train -- and the check
stops working:

    reflex-docgen — the isolated environment could not be built:
    cause: Because only reflex-base<=0.9.12 is available and you require
           reflex-base>=0.9.13.dev0, we can conclude that your requirements
           are unsatisfiable.

Collect the transitive closure instead, emitted dependencies-first so each
sibling's own requirements are in the wheelhouse before it is built, and gather
the declared requirements across the whole closure rather than from the package
under test alone -- a sibling's wheel has to satisfy everyone in the closure who
depends on it, which is also what decides whether it is redone at a development
floor. With the same unpublished floor in place, `reflex-docgen` now passes.

**The stubs.** Naming the source *directory* on the pyright command line let it
check the `.pyi` files under `src/` as if they were source. They are build
artifacts: absent from a fresh checkout, deleted and regenerated in the tree
whenever the pyi build hook runs, and written against the workspace rather than
an isolated environment. Widening the closure made a package far more likely to
be built as some other package's sibling while its own check was running, so
stubs appeared between the two pyright runs and the delta reported them:

    base/__init__.pyi:8:23 - error: "Links" is unknown import symbol
    el/elements/inline.pyi:20:8 - error: Import "reflex" could not be resolved

CI never saw this -- it checks one package per job, and a package is never its
own sibling -- but a local run over several packages did, and at `-j 1` the
ordering makes it deterministic rather than merely likely. Name the `.py`
modules individually. Their diagnostics are byte-identical whether or not stubs
are present, so the check no longer depends on what else the run built.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(scripts): build the sibling wheels once per run, before any check starts

The builds were still racing the checks. The pyi build hook deletes the stubs in
a sibling's own source tree and regenerates them one by one, so a worker
type-checking that same tree reads it mid-rewrite: an intra-package import
resolves into a stub that has just been removed, or is not yet written, and the
delta reports errors belonging to neither resolution:

    base/app_wrap.py:6:50 - error: "Fragment" is unknown import symbol
    base/error_boundary.py:69:21 - error: Object of type "ModuleType" is not callable

Serializing the builds against each other did not fix that, because the other
side of the race is a pyright run, not another build. Checking only `.py` files
did not either: stubs shadow a package's own modules whether or not they are
themselves checked.

Build every sibling the selection needs into one index before any package is
checked instead, so no build ever overlaps a check. That also builds each
sibling once per run rather than once per package that declares it -- nine
packages declare reflex-components-core -- which takes a full sweep from 170 s
to 113 s at `-j 4`, and holds one wheel per distribution instead of one per
consumer. The per-package build lock goes away with the race it was guarding.

A package's pins still come from its own declared requirements, so what any one
package resolves is unchanged; only the version a shared wheel is built at now
considers the whole selection, which is what lets one wheel serve every package
in it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* ci: take the min-deps sibling wheels from the build jobs

Every check job was building the workspace siblings itself, so the same wheels
were produced once per job -- and the pyi build hook rewrites the stubs inside
a package's own source tree, which is the tree another job may be type-checking
at that moment.

The build workflow already builds every package. Upload each wheel as an
artifact, move the min-deps check in beside it so `needs:` can reach those jobs,
and have the check download them into a wheelhouse. `--wheelhouse DIR` takes the
siblings from that directory; anything it does not cover is still built, so a
release train whose `*.dev` floor has outrun the tags -- which the build jobs
know nothing about -- is rebuilt at the floor as before. Local runs without the
flag are unchanged.

min_deps.yml goes away, so its check names change from `check (<package>,
<version>)` under `check-min-deps` to `check-min-deps (<package>, <version>)`
under `Build all packages`. Required status checks need updating to match.

The build jobs' triggers are left exactly as they were, since a `paths-ignore`
on a required check never reports on a docs-only pull request.

Verified against wheels built the way the build jobs build them: detection is
unchanged (a symbol present only in the workspace is still reported), the
unpublished-floor case still resolves, and no sibling's source tree is touched
at all. A full local sweep takes 85 s with the wheelhouse against 111 s without.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(min-deps): make building the sibling wheels opt-in

Review feedback on #7269: building whatever the wheelhouse came up short on
made this check and the build workflow able to drift apart without anyone
noticing, and spent those jobs' minutes on wheels it then replaced.

Building is now `--build-wheels`, which local runs pass and CI does not. A
sibling the wheelhouse does not hold is an error naming it, since the build jobs
are what produce these wheels and a gap means the two have drifted.

A wheel that is present but cannot satisfy what is declared against it is a
different thing, and no build fixes it: a package is numbered from the newest
tag its checkout reaches, so a release tagged off a branch leaves the workspace
permanently below a floor raised to it. That is reported and left to PyPI rather
than failing the run -- the repository is in exactly that state today, which the
change surfaced:

    warning: reflex-components-moment builds as 0.9.3.post249.dev0 here, which
    does not satisfy reflex-components-moment>=0.9.4. Resolving it from PyPI
    instead of the workspace, so a change to it is not covered by this run.

`reflex-components-moment-v0.9.4` is not an ancestor of main, so the root
package's floor on it has never actually been checked against the workspace.
That was silent before; it is now printed on every run.

Both modes pass the full sweep: 93 s from a wheelhouse, 119 s building.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(min-deps): report uncovered siblings alongside the results

Greptile, on #7269: a sibling whose workspace build cannot reach a declared
floor falls back to PyPI at both ends, which is the blind spot this check exists
to close, restored for that sibling. The finding is right, and it is live --
`reflex-components-moment` is in exactly that state for the root package.

Fabricating a version that satisfies the floor would close it on paper and make
the check lie: `reflex-components-moment-v0.9.4` was tagged off a branch, so
there is no reason to believe main's source for it is what 0.9.4 shipped, and
pinning the workspace build as 0.9.4 would type-check the root against source
that may predate the release it claims to be. Falling back to PyPI is the honest
answer; tagging the release on main is what actually restores the coverage.

What was wrong is that it said so once, early, in a log that then runs for
minutes. Collect these and print them next to the PASS/FAIL list instead, so
what a run did *not* cover is read at the same moment as what it did:

    Not covered by the workspace (resolved from PyPI at both ends):
      reflex-components-moment: builds as 0.9.3.post249.dev0 here, which does
      not satisfy reflex-components-moment>=0.9.4

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(min-deps): refuse a sibling this branch cannot number high enough

A pin that no revision of this branch can satisfy should not be merged, so the
wheelhouse now fails on it rather than reporting it and resolving that sibling
from PyPI. Falling back cancelled its errors out at both ends, which is the
blind spot this check exists to close, restored for whichever sibling is in
that state.

The failure names the remedy, because there is one: a package is numbered from
the newest tag its checkout reaches, so a floor raised to a release whose tag
never landed here is unsatisfiable until that release is tagged on this branch.

    the wheelhouse cannot serve every workspace sibling:
      reflex-components-moment: builds as 0.9.3.post251.dev0 here, which does
      not satisfy reflex-components-moment>=0.9.4

    ... Tag the commit here whose source matches that release:
      git tag <package>-v<version>.post1 <commit> && git push origin ...

This needs `reflex-components-moment` tagged on main before it can go green.
`reflex-components-moment-v0.9.4` points at 9edd00a, a release-from-prerelease
commit that is not an ancestor of main, but main has carried that exact source
since 8b393b5 ("fix(moment): isolate each component from imported global
locales", #7110) -- the package trees are identical outside CHANGELOG.md and
news/. Tagging 8b393b5 as reflex-components-moment-v0.9.4.post1 makes the
checkout derive 0.9.4.post1.dev101, which satisfies the floor; verified locally
with the tag in place, 20/20 in both modes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* ci: re-run now that reflex-components-moment is tagged on main

`reflex-components-moment-v0.9.4.post1` now points at 8b393b5, so this branch
derives 0.9.4.post1.devN for that package and can satisfy the root's
`reflex-components-moment>=0.9.4` floor. The six check-min-deps jobs that failed
closed on it should pass.

Empty by design: nothing in the tree needs to change, the fix was a ref on the
remote. Re-running the jobs in place would not do -- they take their wheels from
artifacts the build jobs uploaded before the tag existed, so the moment wheel in
them is still 0.9.3.post253. The build jobs have to run again for the wheelhouse
to carry the new version, and re-running the workflow is not available to me.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

* fix(min-deps): pin a *.dev floor, and build when given no wheelhouse

Two defects found in review.

A `*.dev` floor was left for the resolver to satisfy, and it has no
deterministic answer. Such a floor names a version that was never
published, so no release on PyPI is what it asks for -- but naming a
development version is itself the opt-in that puts that version's
pre-releases in reach, and `reflex-base` has `0.9.12a1` and `0.9.12a2`
below `0.9.12`. Which one `lowest-direct` takes has varied across uv
releases: 0.11.23 installs `0.9.12a1`, which predates
`_validate_state_name` and `_reflex_state_root` and so fails `reflex`;
0.12.15 installs `0.9.12`, which passes. The result turned on the
resolver rather than on the code.

So a sibling the package floors at a development release is now pinned
to the workspace build at the minimum resolution as well as the
baseline. That is the one thing such a floor can mean, and it holds on
both paths -- rebuilding the wheel at the floor instead would have left
`--wheelhouse` runs, which do not build, resolving from PyPI as before.
The pin is scoped to what the package declares itself, since
`lowest-direct` pins direct dependencies: a floor one sibling declares
against another is that sibling's own to test. Every published floor is
still resolved from PyPI, so `reflex-components-core >= 0.9.12` on
`reflex-base` -- the case this check exists to catch -- is untouched.

Second, a run with no arguments failed, reporting a drift between this
check and the build jobs when the caller had simply not passed a flag.
Building is now the default and `--build-wheels` is gone: a caller who
supplied `--wheelhouse` means those wheels to be the whole story, and
one who did not has nowhere else to get them. CI passes `--wheelhouse`,
so it stays strict.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RYkJBgnaybdNTyWLZVWmBm

---------

Co-authored-by: Claude <[email protected]>
@masenf masenf added the perf Performance-improving changes label Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Performance-improving changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants