Skip to content

test(e2e): split pull_through_require_authorized_origin from node_to_node_pull_through_enabled in RenderConfig #1376

Closed

Description

@yigitdot

Found while reviewing #1366.

render_config in crates/e2e/src/node.rs ties two independent daemon knobs to a single fixture bool:

node_to_node_pull_through_enabled = {node_to_node_pull_through}
pull_through_require_authorized_origin = {node_to_node_pull_through}

So NodeFixture::launch_authorized_origin, whose entire point is the authorized-origin gate, also necessarily arms node→node pull-through. G-NODE-08 is unaffected in practice — it launches a single node with no discovery peers, so there is no upstream to pull from, and the fixture doc now says the no-upstream guarantee rests on the empty peer set rather than on the flag being off.

But the helper's name promises control over one knob and delivers two, and a future journey that wants the gate without node→node pull-through (or vice versa) cannot express it.

Worth noting before changing this: on the daemon side the gate is only wired inside if cfg.cache.node_to_node_pull_through_enabled (crates/node/src/runtime/mod.rs:1176, 1241), so the coupling partly reflects a real dependency in the runtime. Splitting the fixture's RenderConfig into two booleans is still worthwhile — it makes the daemon-side constraint explicit rather than accidental.

Activity

  1. added
    kind:test
    rust
    prio:low
    on Jul 22, 2026
  2. self-assigned this
    on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:testprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions