Commit Graph
432 Commits
Author SHA1 Message Date
Karl Seguin a4fd3cfc3f Merge pull request #4574 from JoAdo07/docs/zig-fmt-command
docs: run zig fmt on the tree, not a two-level glob
2026-11-14 09:14:50 +08:00
Karl Seguin 7c6497fb00 add make fmt
Switch to make fmt for formatting. The issue with zig fmt --check ./ is that it
ends up checking zig-pkg. Really need to give an explicit list, which is were
the make target comes in (also updated the github action so use that same target
to keep everything consistent)
2026-11-14 08:27:25 +08:00
Pierre Tachoire 1e27731610 ci: adjust perf limits for the new runner 2026-11-13 08:22:08 +01:00
Karl Seguin b075334bfc add GOCACHE env 2026-11-12 21:53:20 +08:00
Karl Seguin 719edd9dbd switch to ru on lpd-bench-aws 2026-11-12 21:53:20 +08:00
Karl Seguin 704a32868a don't fail the job on error, but display a warning 2026-11-12 21:53:20 +08:00
Karl Seguin ba57d57f81 ci: add perf test to e2e action
Depends on https://github.com/lightpanda-io/demo/pull/311 and on enabling perf
on lpd-bench-hetzner (1). Also relies on perf-fmt update (there's a PR).

The adds a whole build for the PRs parent, to generate a comparison between the
PR and its parent. But it should be built in parallel, so hopefully it doesn't
actually slow anything down.

(1)
```
sudo apt install linux-tools-common linux-tools-$(uname -r)
echo 'kernel.perf_event_paranoid = 2' | sudo tee /etc/sysctl.d/99-perf.conf
sudo sysctl --system
```
2026-11-12 21:53:19 +08:00
Pierre Tachoire 22c6850078 ci: run perf bench on aws EC2 instance 2026-11-12 10:13:47 +01:00
Pierre Tachoire 7e4ca86e06 ci: don't publish python on pre-release 2026-11-11 10:42:33 +01:00
Karl Seguin 0ffdba147a ci: increase duration regression to 18ms (up from 17ms).
I looked at profiles and couldn't find a different. I let claude work on this
for hours, and it's convinced it's an environment change. Runs started to
consistently get slower after Nov 4 ~12:45 UTC, and no code change explains it
(and builds with the exact same code in the CI, at that time, ran faster before
than after).
2026-11-10 19:48:17 +08:00
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
Karl Seguin e6b13b3020 update v8 dep 2026-11-05 06:37:22 +08: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
Karl Seguin b4472ebbd5 Merge pull request #4319 from lightpanda-io/update-v8-dep
perf: fix mac startup speed
2026-11-01 07:15:47 +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
Karl Seguin 7d1b4400ca perf: fix mac startup speed
Update zig-v8-fork to grab:
https://github.com/lightpanda-io/zig-v8-fork/pull/223/changes/a2cf33dc97cbca04ec12694953d1b247989433bb

Fixes: https://github.com/lightpanda-io/browser/issues/4284
2026-10-31 11:05:13 +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
Karl Seguin e7e0626a37 update v8 dep 2026-10-30 09:06:08 +08: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
Karl Seguin f4544da758 Fix build
Update zig-v8-fork dependency

Optimize string.repeat

Provide arraybuffer allocation max size (pre-merging https://github.com/lightpanda-io/browser/pull/3751
since the zig-v8-fork now needs it).
2026-10-05 11:33:42 +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
Karl Seguin bad259a51f update v8 2026-09-30 11:23:47 +08:00
Karl Seguin 4c8e2f20bf v8: update to latest stable release 15.5.35.13
Depends on https://github.com/lightpanda-io/zig-v8-fork/pull/215 and
https://github.com/lightpanda-io/pkg/pull/3
2026-09-30 11:23:47 +08:00