Skip to content

test(id): expect the empty default requested profile in world_net execution-profile test (#6687) - #6703

Merged
dezren39 merged 1 commit into
mainfrom
fallback/6687-worldnet-test-expectation
Nov 7, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fallback/6687-worldnet-test-expectation

Conversation

@dezren39

@dezren39 dezren39 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Fixes #6687.

Root cause (from the triage on #6687)

The test's step 2 asserted a fresh world's requested execution profile carries wasm_fuel or total_memory_bytes. By documented design every WorldExecutionProfile field is Option with skip_serializing_if = "Option::is_none" — "missing fields inherit the current server ceiling" — so a fresh world (core.rs: execution_profile: WorldExecutionProfile::default()) legitimately reports update.requested = {}. The host wraps the persisted profile faithfully and the client extracts it verbatim; nothing is dropped. The expectation was the defective link — this is not the #6669 reply-shape family, and returning resolved/effective values instead would mislabel ceilings as requested.

Change (pkgs/id/src/world_net.rs, test only)

Step 2 now asserts the guest query returns exactly the default requested profile, {}, with a comment explaining why. Steps 1 (auth denial), 3 (set) and 4 (query sees the update) are unchanged and carry the round-trip coverage.

Tests

Laptop worktree: cargo test --lib world_net:: in pkgs/id — 25 passed / 0 failed, including execution_profile_can_be_queried_and_updated_over_iroh (previously FAILED on clean main with the step-2 panic, reproduced during triage at world_net.rs:2711).

🤖 Filed by repo-queue-worker Lane T in fallback mode (queue backend down 2026-11-06/07); the issue was the task.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 7, 2026 02:52
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3d11a4fd-3b7d-4dd0-bdf1-6ff04cfa64fb
Commits

Reviewing files that changed from the base of the PR and between bc96489 and c5aa841.

Files selected for processing: 1

  • pkgs/id/src/world_net.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T02:54:10.430484Z c5aa841 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant