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

Fetch support - merge pending upstream fetch and async reworks and add temporary workarounds #3

Merged
merged 52 commits into from
Jun 14, 2024

Conversation

noise64
Copy link

@noise64 noise64 commented Jun 10, 2024

Issues:

Contains:

Note that the added tests are not passing with the http test server, only with the standalone module tests in ComponentizeJS (see the companion PR golemcloud/ComponentizeJS#2).

Added and exposed "runEventLoopUntilInterest" as a workaround until async support arrives, and also adjusted the interest increments and decrements until the above mentioned tests were passing without error logs.

tschneidereit and others added 30 commits May 29, 2024 13:32
SpiderMonkey uses the `encoding_c` Rust crate and comes bundled with it. This lead to either duplication or linking errors when using our own crate re-exporting `encoding_c`.

Instead, with this PR we just bundle a C header file for interacting with the crate's functionality, and rely on SpiderMonkey's version.
`HostString` converts to `string_view`, so this makes `decode` easy to use from more places.
…ring wizening

The idea is that with this, builtins handling runtime events can dynamically load and execute a top-level script as needed.

This functionality isn't actually used in this commit, but will be in another commit changing how incoming HTTP requests are handled.
Gets back to passing all current tests, and most of the WPT suite that Fastly's JS Compute runtime passes.
This changes the implementation of the handle abstraction to make it more robust, and cleans it up at least somewhat.
# Conflicts:
#	CMakeLists.txt
#	builtins/web/fetch/fetch_event.cpp
#	builtins/web/fetch/request-response.cpp
@noise64 noise64 changed the title Fetch support - merge pending upstream fetch and async reworks and temporary workarounds Fetch support - merge pending upstream fetch and async reworks and add temporary workarounds Jun 10, 2024
@noise64 noise64 marked this pull request as ready for review June 13, 2024 19:29
@noise64 noise64 requested a review from a team June 13, 2024 19:34
@noise64 noise64 merged commit 9fb33d5 into main Jun 14, 2024
1 check passed
@noise64 noise64 deleted the fetch branch June 14, 2024 07:55
@noise64 noise64 restored the fetch branch June 14, 2024 07:56
@noise64 noise64 deleted the fetch branch June 14, 2024 07:56
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.

4 participants