Skip to content

feat: Enable flexible HTTP outcalls and (optionally) pay-as-you-go pricing - #11399

Merged
eichhorl merged 2 commits into
masterfrom
eichhorl/enable-flexible-outcalls-and-payg
Sep 2, 2026
Merged

eichhorl merged 2 commits into
masterfrom
eichhorl/enable-flexible-outcalls-and-payg

Conversation

@eichhorl

@eichhorl eichhorl commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Flipping the FLEXIBLE_HTTP_REQUESTS_FEATURE flag does multiple things:

  1. Allows fully- and non-replicated outcalls to select the "pay-as-you-go" pricing version when making the request
  2. Allows flexible outcalls (with pay-as-you-go pricing by default) to be made on normal paying subnets
  3. Switches flexible outcalls on free and system subnets from legacy pricing to pay-as-you-go pricing (they continue to be free just like before).

Draft spec PR here: dfinity/developer-docs#254

In progress system tests PR: #11327

@eichhorl eichhorl added the CI_ALL_BAZEL_TARGETS Runs all bazel targets label Sep 1, 2026
@github-actions github-actions Bot added the feat label Sep 1, 2026
@eichhorl
eichhorl marked this pull request as ready for review September 1, 2026 15:47
@eichhorl
eichhorl requested a review from a team as a code owner September 1, 2026 15:47
@zeropath-ai

zeropath-ai Bot commented Sep 1, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to f0b673e.

Security Overview
Detected Code Changes
Change Type Relevant files
Enhancement ► rs/config/src/execution_environment.rs
    Enable flexible HTTP requests feature flag
► rs/execution_environment/src/execution_environment/tests.rs
    Adapt tests to pay-as-you-go pricing for flexible HTTP requests
► rs/test_utilities/execution_environment/src/lib.rs
    Add helper to disable flexible HTTP requests
► rs/tests/networking/canister_http_correctness_test.rs
    Adjust imports for new pricing/testing expectations
► rs/execution_environment/src/execution_environment/tests.rs
    Update tests to reflect new pricing behavior for flexible HTTP requests
► rs/test_utilities/execution_environment/src/lib.rs
    Add with_flexible_http_requests_disabled helper
Bug Fix ► rs/execution_environment/src/execution_environment/tests.rs
    Update expectations to PricingVersion::PayAsYouGo in flexible HTTP request tests
► rs/execution_environment/src/execution_environment/tests.rs
    Change legacy pricing references to pay-as-you-go where applicable
Refactor ► packages/pocket-ic/tests/tests.rs
    Refactor test_canister_http_availability_and_pricing to use unified pricing and simplified loop variables

Comment thread packages/pocket-ic/tests/tests.rs
Comment thread rs/execution_environment/src/execution_environment/tests.rs
Comment thread rs/execution_environment/src/execution_environment/tests.rs Outdated
Comment thread rs/tests/networking/canister_http_correctness_test.rs
@eichhorl
eichhorl enabled auto-merge September 2, 2026 13:37
@eichhorl
eichhorl added this pull request to the merge queue Sep 2, 2026
Merged via the queue into master with commit c14df8a Sep 2, 2026
72 of 74 checks passed
@eichhorl
eichhorl deleted the eichhorl/enable-flexible-outcalls-and-payg branch September 2, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants