Skip to content

Add aws_test_runners_bucket setting - #90

Merged
iHiD merged 2 commits into
mainfrom
add-test-runners-bucket-setting
Sep 11, 2026
Merged

iHiD merged 2 commits into
mainfrom
add-test-runners-bucket-setting

Conversation

@iHiD

@iHiD iHiD commented Sep 11, 2026

Copy link
Copy Markdown
Member

The website serves the client-side test runner artifacts — the wasm kernel, and the per-language sysroots and runner tarballs — from its own origin, reading them out of this bucket.

It has to be the website's own origin: the editor boots the kernel in a Web Worker, and new Worker() refuses a cross-origin script URL. No header lifts that, so the assets host isn't an option, and exercism.org resolves to the ALB rather than CloudFront, so the path can't be rerouted at the edge either. The app reads from S3 and serves the bytes itself; Cloudflare caches the result, so S3 is read roughly once per edge location per release.

Two commits:

  • Add the setting to local.yml and ci.yml — same shape as Add aws_icons_bucket setting #89, which added aws_icons_bucket.
  • Create the bucket in local S3 via setup_exercism_local_aws, so a local website has something to read. Without it the editor falls back to server-side runs, which looks identical to the feature not working.

Version bump left out, as in #89.

🤖 Generated with Claude Code

https://claude.ai/code/session_015v94EHpgxqrdVPdkt7KaWk

iHiD and others added 2 commits September 11, 2026 14:35
The website serves the client-side test runner artifacts - the wasm kernel,
and the per-language sysroots and runner tarballs - from its own origin,
reading them out of this bucket. It has to be the website's own origin
because the editor boots the kernel in a worker, and `new Worker()` refuses
a cross-origin script URL.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015v94EHpgxqrdVPdkt7KaWk
Without this the bucket only exists in production, so a local website has
nothing to read and the editor silently falls back to server-side runs -
which looks identical to the feature not working.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015v94EHpgxqrdVPdkt7KaWk
@iHiD
iHiD merged commit 0e2f5cd into main Sep 11, 2026
3 checks passed
@iHiD
iHiD deleted the add-test-runners-bucket-setting branch September 11, 2026 12:36
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.

1 participant