Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尛 Update ABI definitions and stub out some hostcalls #307

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

acfoltzer
Copy link
Contributor

Adds several new hostcalls and type definitions to the ABI. The level of implementation varies:

  • fastly_http_body::abandon is fully implemented.

  • fastly_http_req::send_v2 and friends will work, but do not yet populate the new $error_detail field with information about the failure.

  • fastly_http_req hostcalls downstream_client_oh_fingerprint, redirect_to_websocket_proxy_v2, redirect_to_grip_proxy_v2, and fastly_key_is_valid are stubs that return Error::NotAvailable.

Beyond these added functions, there are a number of formatting fixes in the witx to make the Viceroy copy of these files more precisely match what we use internally to define the platform.

Adds several new hostcalls and type definitions to the ABI. The level of implementation varies:

- `fastly_http_body::abandon` is fully implemented.

- `fastly_http_req::send_v2` and friends will work, but do not yet populate the new `$error_detail`
  field with information about the failure.

- `fastly_http_req` hostcalls `downstream_client_oh_fingerprint`, `redirect_to_websocket_proxy_v2`,
  `redirect_to_grip_proxy_v2`, and `fastly_key_is_valid` are stubs that return
  `Error::NotAvailable`.

Beyond these added functions, there are a number of formatting fixes in the witx to make the Viceroy
copy of these files more precisely match what we use internally to define the platform.
@acfoltzer acfoltzer added the feature-prod Related to matching the production C@E environment label Sep 12, 2023
@acfoltzer acfoltzer self-assigned this Sep 12, 2023
@acfoltzer acfoltzer requested review from a team and awortman-fastly and removed request for a team September 12, 2023 01:16
Copy link
Contributor

@acw acw left a comment

Choose a reason for hiding this comment

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

Thank you for doing this!

I'm going to approve, but I'm a little sad that we've standardized on

    word))

instead of

    word
  )
)

since the latter makes for smaller diffs. but it's not a big deal.

@acfoltzer acfoltzer merged commit 542dc04 into main Sep 12, 2023
7 checks passed
@acfoltzer acfoltzer deleted the acf/new-stubs branch September 12, 2023 18:56
cmckendry pushed a commit to 1stdibs/Viceroy that referenced this pull request Feb 8, 2024
Adds several new hostcalls and type definitions to the ABI. The level of implementation varies:

- `fastly_http_body::abandon` is fully implemented.

- `fastly_http_req::send_v2` and friends will work, but do not yet populate the new `$error_detail`
  field with information about the failure.

- `fastly_http_req` hostcalls `downstream_client_oh_fingerprint`, `redirect_to_websocket_proxy_v2`,
  `redirect_to_grip_proxy_v2`, and `fastly_key_is_valid` are stubs that return
  `Error::NotAvailable`.

Beyond these added functions, there are a number of formatting fixes in the witx to make the Viceroy
copy of these files more precisely match what we use internally to define the platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-prod Related to matching the production C@E environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants