Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ jobs:
- name: mise run install
run: mise run install

- name: Allow the browser's network namespace
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: mise run check
run: mise run check
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- name: mise run install
run: mise run install

- name: Allow the browser's network namespace
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: mise run check
run: mise run check

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ All notable changes to `@standards-lab/web-components` are documented here. The
chrome-headless-shell 158.0.8127.88, `@types/node` 26.6.11, ESLint 10.16.0,
eslint-plugin-boundaries 7.4.5, and jdx/mise-action v5.4.0.
- `marked` is at 18.3.0.
- The browser tier takes web-tooling 0.2.0, whose `launch()` runs the browser in a network
namespace of its own, so a link or address change on the machine no longer aborts the tests'
page loads with `ERR_NETWORK_CHANGED`. The machine now needs `unshare`, `ip`, and unprivileged
user namespaces, and the CI and release workflows allow them on the Ubuntu runner before the
check.
- The repository's tasks take the agent-separation layout: `check` is a file task in `mise-tasks/`
that runs the step scripts in `scripts/check/` in order, stopping at the first failure; the
`lint`, `types`, `test`, and `preflight` tasks are gone, and under `MISE_ENV=agent`, which the
Expand Down
3 changes: 3 additions & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ the tag's tree to the pack, file for file; and creates the GitHub release from t
- **CI** runs the check on each pull request to main and each push to it. `mise run install` first
installs every pin `mise.toml` names, the chrome-headless-shell the browser tier runs in
included, and `node_modules`, the foundation, the icons, and the tooling at their release tags.
Before the check, it allows unprivileged user namespaces, which the Ubuntu runner's AppArmor
refuses until `kernel.apparmor_restrict_unprivileged_userns` is 0, so the browser tier's
browser gets its network namespace. Release does the same before its check.
- **Release** checks out every branch and tag, so the pack commit's parent and main are both at
hand. The parent must be main's merge commit, so it has two parents of its own. The tagged tree
must be the tarball's `package/`, file for file. The release action releases the tag its `ref`
Expand Down
5 changes: 4 additions & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ the behavior and layout each one holds to.
and `release.test.ts` checks a `pnpm pack` of the `dist/` that `mise run build` writes, as it
stands and in scratch copies with one fault each.
- The browser tier runs on `dist/` in the pinned chrome-headless-shell, on the pages under
`test/fixtures/` and the specimen pages under `examples/`. `test/browser/support/served.ts` is
`test/fixtures/` and the specimen pages under `examples/`. web-tooling's `launch()` runs the
browser in a network namespace of its own, reaching only the loopback servers, so the machine
needs `unshare`, `ip`, and unprivileged user namespaces, as web-tooling's
[README](https://github.com/standards-lab/web-tooling#readme) gives. `test/browser/support/served.ts` is
what the browser tier, `mise run examples`, and the screenshots description all serve, so the
list is kept once. Of the served packages, lit's own dependencies (lit-html, lit-element, and
`@lit/reactive-element`) sit beside it in pnpm's store and the server brings them with it; the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@eslint/js": "10.0.1",
"@standards-lab/web-foundation": "github:standards-lab/web-foundation#v0.4.0",
"@standards-lab/web-icons": "github:standards-lab/web-icons#v0.1.0",
"@standards-lab/web-tooling": "github:standards-lab/web-tooling#v0.1.0",
"@standards-lab/web-tooling": "github:standards-lab/web-tooling#v0.2.0",
"@types/node": "26.6.11",
"eslint": "10.16.0",
"eslint-import-resolver-typescript": "4.4.5",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.