Commit Graph
315 Commits
Author SHA1 Message Date
Pierre Tachoire 03b451810d ci: build macOS releases on macos-15 and pin arm64 CPU to apple_m1 2026-11-08 18:40:48 +01:00
Pierre Tachoire 198146f097 release: update macos version from macos-14 to macos-15 2026-11-08 18:31:04 +01:00
Pierre Tachoire cbd790d0b4 ci: publish docker image for pre-release 2026-11-05 09:37:12 +01:00
Pierre Tachoire 0dcd7d381b ci: adjust release.yaml to handle pre release tag in form 1.0.3-rc1 2026-11-05 09:37:07 +01:00
Pierre Tachoire 5e9ebaf6a8 ci: use -Dcpu=x86_64 flag for macintel build
Avoid Illegal instruction crash for more limited CPUs than GH
macos-14-large runner.
2026-11-04 12:02:38 +01:00
Adrià Arrufat 7c482a801c ci: move Bash completion jobs to their own workflow
Run them only when the completion generator, the CLI tables or the
harness change, instead of on every src/** change.
2026-11-04 10:12:23 +01:00
pqminh27 b167bc0af0 fix(completion): preserve path quoting across Bash versions 2026-11-04 09:01:12 +07:00
Muki Kiboigo 2f54f07780 fix nix workflows 2026-11-02 07:03:27 -08:00
Karl Seguin 23485ffaec Merge pull request #4325 from lightpanda-io/zig-test-chrome
ci: verify zig unit tests in chrome
2026-11-01 07:18:14 +08:00
Pierre Tachoire bc2faa0f4a ci: fix orederfile failure with persist-credentials:false
We added `persist-credentials: false` on checkout for orderfile
workflow.
So we now have to use explicitely a GH token to push the branch.
2026-10-31 11:13:32 +01:00
Karl Seguin c4202250fe lock test with a fixed chrome
Needs: https://github.com/lightpanda-io/demo/pull/303
2026-10-31 14:05:20 +08:00
Karl Seguin cbc9822215 install chrome directly from its .deb 2026-10-31 12:54:00 +08:00
Karl Seguin f6a8db8db4 ci: verify zig unit tests in chrome 2026-10-31 12:40:30 +08:00
Pierre Tachoire 5bcd37f018 ci: fix missing persist-credentials: false
Reported by plumber
2026-10-30 12:23:27 +01:00
Thibaud-Vdb 16b3a825b0 ci: move Plumber to v0.7.16 and turn its config into an overlay
The action moves from v0.4.8 to v0.7.16. The badge page has read
"unknown" since July although every run reports the score as
published; the current release publishes in the format the page
serves, and it also analyses the composite actions under
.github/actions.

.plumber.yaml becomes an overlay on the CLI's built-in defaults, so
the controls added since v0.4.8 apply without copying the whole
template again. The trusted action list stays, the nix installer
included. The perf-fmt image is exempt from the forbidden tag check
while it tracks :latest, an exemption the CLI added in v0.6.4. The
rustup download inside .github/actions/install and the archived CLA
action keep their exceptions, with the reason next to each. The gate
moves from the all-or-nothing default to 85 points, so one small
finding never blocks a pull request, and the job gets the actions read
scope the action documents.
2026-10-30 12:23:27 +01:00
Thibaud-Vdb 7e60cc4d5a ci: permissions on every workflow, no stored checkout token where nothing pushes, packaging image by digest
Six workflows had no permissions block and ran on whatever the
repository default grants. They get contents: read at the workflow
level. The three perf-fmt jobs pull ghcr.io/lightpanda-io/perf-fmt, a
private image, with GITHUB_TOKEN, so they keep packages: read on top of
it. No job in these workflows writes to the repository.

actions/checkout leaves the job token in .git/config by default, where
every later step and tool in the job can read it. Every checkout opts
out except the three whose job pushes a branch with that token: the
orderfile regen and the two nix dependency updates keep theirs.

The Debian package build ran in debian:stable-slim, a tag that moves
with every Debian point release. It is pinned to the current index
digest, with the tag kept next to it for readability.
2026-10-30 12:23:13 +01:00
Muki Kiboigo 2c417985a9 dont use nix build on every PR 2026-10-26 10:27:26 -07:00
Muki Kiboigo 7c4eb34808 remove mac for now 2026-10-26 10:26:36 -07:00
Muki Kiboigo 0c0b893c21 attempt fix for aarch64-darwin 2026-10-26 10:26:35 -07:00
Muki Kiboigo 549109303d remove nix support for x86-darwin 2026-10-26 10:26:35 -07:00
Muki Kiboigo 1d8a546215 have zig deps be generated too 2026-10-26 10:26:35 -07:00
Muki Kiboigo 18b9b5ad10 use commits for nix-installer-action 2026-10-26 10:26:35 -07:00
Muki Kiboigo fc126027c3 run on each PR 2026-10-26 10:26:34 -07:00
Muki Kiboigo 23c1668f7b add nix build workflow 2026-10-26 10:26:34 -07:00
Muki Kiboigo 7e6bad6460 start nix packaging workflow 2026-10-26 10:26:34 -07:00
Karl Seguin 0bc510651b CI: increase memory regression test 25MB -> 26MB 2026-10-17 16:50:44 +08:00
Adrià Arrufat 6c50c000cb docs: simplify the reference generator
Read browser tool schemas from Schema.all() instead of re-parsing them,
format table rows through Anchor/Cell formatters, share one flag writer
between traits and hints, and use mcp/tools.zig's browser_tool_list
directly. Group headings move next to the generator, and an addGenerator
helper in build.zig drives both the skills and docs steps.
2026-10-12 22:38:49 +02:00
Adrià Arrufat e5a7d3fab2 docs: generate reference partials with zig build docs
Render MDX partials for the docs site from the registries the runtime
serves, so the browser tools, MCP tools and agent REPL command references
can't drift from the code:

- browser-tools.mdx: every tool, grouped, with its description, an
  argument table from its input schema, and its script/navigation/page
  state traits.
- mcp-tools.mdx: titles and annotation hints per tool, linking to the
  browser tools reference, plus the MCP-only tools and resources.
- agent-commands.mdx: meta, LLM and browser slash commands in the syntax
  the REPL parses.

Tool.group() assigns each tool its docs section as an exhaustive switch,
so a new tool can't ship undocumented. The release workflow attaches the
partials to each release as lightpanda-docs.tar.gz for the docs repo to
pull.
2026-10-12 22:33:17 +02:00
Pierre Tachoire fee9102391 ci: mark release as latest for tag only 2026-10-08 11:59:46 +02:00
Karl Seguin 2e72006a1c include .debug in release artifacts 2026-10-08 16:35:44 +08:00
Karl Seguin 3433566ccd ops: strip debug symbols
I know this was suggested before, and I was against it. But this take uploads
the debug symbols to s3, so that, as long as we know the version of the binary,
we can reverse it. (Also, we get far fewer crashes now).
2026-10-08 08:33:11 +08:00
Karl Seguin 90c43ceab3 raise timeout to 25 minutes, 15 sometimes times out 2026-10-07 08:58:25 +08:00
Adrià Arrufat 10609b025a Upgrade to Zig 0.17
Dependencies:
- v8: zig-v8-fork 0.17 branch (lightpanda-io/zig-v8-fork#218).
- sqlite3: build the amalgamation directly; the allyourcodebase wrapper
  has no 0.17 support yet.
- pcre2: master commit with 0.17 support (no release yet).
- translate_c package (2.0.0) replaces the deprecated addTranslateC.
  default_init is set to keep 0.16's zero-initialized struct fields.

Build:
- b.pathFromRoot/build_root/args/sysroot are gone: resolve paths from
  b.root, use addPassthruArgs, declare configure-time file and directory
  dependencies, and poison the configure cache for the git version.
- Drop curl config values the template never used (now an error).
- Drop the 0.16 zip-fetch workaround from the Makefile and CI.
- -Doptimize=ReleaseFast -> -Doptimize=fast.

Language and std:
- @intFromEnum/@enumFromInt -> @backingInt/@fromBackingInt.
- Struct-of-arrays @typeInfo (field_names, field_types, decl_names,
  param_types, error_names).
- `a ** n` removed: @splat for arrays, string.repeat for strings.
- errdefer captures removed: split WebDriver.run and fulfillRedirect.
- @hasDecl only sees pub decls: make StyleManager's Spec.finish pub,
  otherwise it silently stops running.
- SafeAllocator replaces DebugAllocator; the test runner now has to
  initialize std.testing.allocator_instance itself.
- std.fmt.allocPrint/bufPrint -> Allocator.print/std.mem.print,
  dupeZ -> dupeSentinel, std.builtin -> std.lang, builtin.os ->
  builtin.target.os, zon.parse arena API, BufferFirstAllocator, and the
  remaining renames (getLastOrNull, bit_set, ascii.find*, meta.Int).
2026-10-03 16:09:42 +02:00
Pierre Tachoire 12d3880d20 enable cors by default
keep `--experimental-features cors` available for BC.
add `--disable-cors` option.
2026-09-28 12:03:18 +02:00
Pierre Tachoire 5e16a9bc54 ci: add missing instruction for cgroup install 2026-09-23 12:12:57 +02:00
Adrià Arrufat ab7c471b68 ci: dispatch the lightpanda-python wheels build instead of creating a release
Creating the matching release on lightpanda-python fails with HTTP 403:
the distribution app's token can start workflows there but cannot write
repository contents, and granting contents:write would widen the app on
every repo it is installed on. Dispatch that repo's wheels workflow
instead — the same permission the homebrew and docker jobs use — and let
it record its own release after the PyPI publish is approved.
2026-09-15 16:22:41 +02:00
Pierre Tachoire ac84bdf764 ci: revert orderfil generation on release 2026-09-15 14:25:28 +02:00
Pierre Tachoire 2a17635332 ci: allow orderfile to push on branch 2026-09-15 14:15:46 +02:00
Pierre Tachoire f9ef67d283 ci: Use GH app to publish PR 2026-09-15 14:15:45 +02:00
Pierre Tachoire 8fc4598ff9 ci: generate orderfile before release 2026-09-15 14:15:45 +02:00
Pierre Tachoire 4b1f22ba23 ci: regenerate the orderfile nightly and open a PR 2026-09-15 14:15:45 +02:00
Karl Seguin e62ef0c6ca Raise VmHWM regression from 24MB -> 25MB
This doesn't have anything to do specifically with this PR, but I've been
fighting that limit for a number of PRs over the last couple days.
2026-09-11 06:40:54 +08:00
Adrià Arrufat a6bb66ac3c Merge pull request #3390 from lightpanda-io/ci/trigger-python-package
ci: release lightpanda-python on version tags
2026-09-09 14:48:02 +02:00
Pierre Tachoire d00e6e6e4f ci: enable cors 2026-09-07 09:43:26 +02:00
Karl Seguin 7d39a4fbaf http: handle redirects better
Our redirect handling was "optimized" to re-use the same easy connection, at the
cost of circumventing the entire pipeline. A redirect would not check the new
target's robots.txt, rate limit, CORS, Web Auth, ...

The new code simply restarts the pipeline (with a discriminator tag so that
things like CDP can tell the difference between a redirected request and a new
one).
2026-09-02 12:41:53 +08:00
Karl Seguin fe3a491d22 ci: regenerate orderifle
remove auto orderfile generation, too much hassle.

Manually regenerate the two orderfiles. Change it to use newlines so the diff
is better.
2026-09-02 09:44:25 +08:00
Adrià Arrufat 38017c3d41 ci: release lightpanda-python on version tags
Add an update-python-package job that creates the matching release on
lightpanda-io/lightpanda-python (same distribution-app pattern as the
docker and homebrew jobs). That release triggers the wheels workflow
there, replacing its daily track-browser polling; its publish to PyPI
still waits for approval on that repo's pypi environment.

The distribution app needs contents write access to lightpanda-python.
2026-09-01 22:26:50 +02:00
Karl Seguin 84b8500f2e CI: Weekly orderfile generation + PR 2026-09-01 10:08:53 +08:00
Karl Seguin 857a8ea643 ci: enable bidi protocol for all e2e tests 2026-09-01 09:51:27 +08:00
Karl Seguin 731774ab67 ops: Allow serving both cdp and bidi on the same port
--protocol can now be specified multiple times. This just makes ops/dev easier
by only requiring 1 instance.
2026-08-31 22:45:15 +08:00