Repository navigation
Conversation
A GitHub Actions workflow builds SuperLens with the main branches of super and super-ts on each pull request and merge, then runs the unit tests and new Playwright smoke tests of the built site in headless Chromium. The smoke tests open the sample data and small files, check the table and SUP views, and download results as NDJSON and Parquet, reopening the Parquet file. SUPERLENS_URL runs them against a site that's already up, such as a new deploy. As in super's CI, a failed run on main posts to Slack. This is the first step toward deploying SuperLens to lens.superdb.org: the deploy will run the same checks before it publishes a build.
mccanne
approved these changes
Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This is the first step toward deploying SuperLens to lens.superdb.org. SuperLens builds with whatever super and super-ts it's given, and today nothing builds or tests it until someone runs
npm run buildby hand. So a change in either repo can break it unnoticed, e.g., a change to a super API thatwasm/main.gouses, or a BSUP version that super-ts doesn't read yet. The deploy will run these same checks first and publish only a build that passes, so the site keeps its last good build when something breaks.The Change
.github/workflows/test.yaml) runs on each pull request and merge, and by hand from the Actions tab, where you can pick a branch or commit of super or super-ts to build with. It builds SuperLens with themainof both (the build also type checks the app), then runs the unit tests and the new smoke tests.e2e/smoke.spec.ts) run the built site in headless Chromium with Playwright, served the waynpm run serveserves it, content security policy included. They:malformed BSUP: version mismatch: expected 0.32, found 0.31).mainposts a link to it in Slack, as super's CI does. Pull requests and runs by hand don't post.SUPERLENS_URLruns the smoke tests against a site that's already up instead ofdist/, such as a new deploy, so the deploy can check the host's real headers.@playwright/testis a new dev dependency, as in the docs site's playground tests. The site still has no runtime dependencies.Pinning a super and super-ts commit for each SuperLens commit, as Zui did, would be the other way to stay safe. I went with building from
mainand gating instead, because a failed build simply doesn't deploy, and SuperLens keeps up with super without anyone bumping a pin.Testing
Locally with super
v0.4.0-100-g4c2b1d4d3and super-ts80779cb(bothmain): the four smoke tests pass in about 4 s, 40 of 40 with--repeat-each 10, and on Node 22.18 (the oldest supported) too. To check that they catch a broken build, I broke a copy ofdist/on purpose:'wasm-unsafe-eval': all four fail with "The query engine failed to load"The workflow runs for the first time on this PR.
To try the smoke tests locally:
npm install npm run build npx playwright install chromium # once, to download the browser npm run test:e2eNot Addressed Here