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

Simple cache StarlingMonkey port #772

Merged
merged 2 commits into from May 13, 2024
Merged

Simple cache StarlingMonkey port #772

merged 2 commits into from May 13, 2024

Conversation

guybedford
Copy link
Contributor

@guybedford guybedford commented May 8, 2024

Ports the simple cache subsystem. This does not yet port core cache so the fastly:cache namespace remains incomplete.

A CI matrix is added for testing both varnish and compute platforms for StarlingMonkey, so that this can be properly tested.

As with the cache override PR, the "SimpleCache.x is not a constructor" error messages become (intermediate value).x is not a constructor errors due to the nature of the ESM builtins, but will still point to the correct JS source position for debugging.

This uses StarlingMonkey from bytecodealliance/StarlingMonkey#43, thanks to @lpereira for helping figure out the OpenSSL CMake dependency here.

This is also based to #776 to allow the StarlingMonkey e2e tests to run simultaneously with the runtime ones, by using distinct kv store names.

@guybedford guybedford force-pushed the simple-cache branch 4 times, most recently from a73bd4b to 59516a6 Compare May 10, 2024 17:41
@guybedford guybedford requested a review from elliottt May 10, 2024 23:27
Copy link
Contributor

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

This looks great, nice work!

runtime/fastly/builtins/fastly.cpp Show resolved Hide resolved
runtime/fastly/builtins/cache-simple.cpp Show resolved Hide resolved
@guybedford guybedford merged commit e81c204 into main May 13, 2024
19 checks passed
@guybedford guybedford deleted the simple-cache branch May 13, 2024 18:34
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.

None yet

3 participants