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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Fastly crate from 0.10.4 to 0.11.1 #445

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

awilliams-fastly
Copy link
Contributor

@awilliams-fastly awilliams-fastly commented Dec 5, 2024

This updates the test fixtures to use the newly released 0.11.1 Fastly crate.

When fastly::acl hostcalls were added in #438, the corresponding SDK support was not yet released. So #438 added tests using the still-unreleased-SDK, but put that code behind a compile-time gate (here).

This change removes that compile-time gate in test-fixtures/src/bin/acl.rs, effectively changing these tests from a no-op to actually running the desired test cases.

A few other text-fixtures stopped compiling with the updated SDK, which I've tried to address as well:

  • test-fixtures/src/bin/inspect.rs cc/ @ulyssa

  • test-fixtures/src/bin/kv_store.rs cc/ @joeshaw

The following hostcalls were missing from the component/adapter, and so were added:

  • fastly_http_req#send_v3
  • fastly_http_req#send_async_v2
  • fastly_http_cache (entire module)

This updates the test fixtures to use the newly released `0.11.1` Fastly crate.

When `fastly::acl` hostcalls were added in #438, the corresponding SDK support
was not yet released. So #438 added tests using the still-unreleased-SDK, but
put that code behind a compile-time gate ([here](#438 (comment))).

This change removes that compile-time gate in
`test-fixtures/src/bin/acl.rs`, effectively changing these tests from a
no-op to running the desired test cases.

A few other text-fixtures stopped compiling with the updated SDK, which
I've tried to address:

- `test-fixtures/src/bin/inspect.rs`
   cc/ @ulyssa

- `test-fixtures/src/bin/kv_store.rs`
   cc/ @joeshaw
computermouth
computermouth previously approved these changes Dec 5, 2024
Copy link
Contributor

@computermouth computermouth left a comment

Choose a reason for hiding this comment

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

KV Store tests look good to me 👍

ulyssa
ulyssa previously approved these changes Dec 5, 2024
@ulyssa
Copy link
Contributor

ulyssa commented Dec 5, 2024

It looks like the tests are failing because there isn't support for the fastly_http_cache module in the adapter, only in the normal hostcalls.

@awilliams-fastly awilliams-fastly enabled auto-merge (squash) December 5, 2024 22:21
@ulyssa
Copy link
Contributor

ulyssa commented Dec 5, 2024

It looks like the macos-12 image is now completely unsupported (actions/runner-images#10721), so I've removed it from the required checks.

@awilliams-fastly awilliams-fastly merged commit cf811a3 into main Dec 5, 2024
13 of 15 checks passed
@awilliams-fastly awilliams-fastly deleted the awilliams/fastly-sdk-update branch December 5, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants