273 Commits

Author SHA1 Message Date
Karl Seguin
23e98a4ce0
Add WPT extensions
Some WPT tests need to interact with the browser in a way that isn't possible
with web apis. Browsers need to expose a way for tests to do this and then use
the testdriver-vendor.js to hook into these special WPT actions.

This commit sets up the infrastructure for supporting this and includes
the delete_all_cookies functionality needed by various cookie tests (e.g.
/cookies/attributes/attributes-ctl.sub.html).

A new compilation flag, `-Dwpt_extensions`, can be specified. When specified
a `window.webdriver` accessor is defined and a `WebDriver` type is exposed.

Note that, while I only implemented delete_all_cookies for now, I've seen other
tests fail because of missing vendor-specific implementation.
2026-04-17 15:59:06 +08:00
Karl Seguin
0adb482bae
update v8 dep 2026-04-16 15:02:58 +08:00
Karl Seguin
60249f5e5d
update v8 dep 2026-04-14 12:24:09 +08:00
Pierre Tachoire
f7ef2be5cd
ci: invalidate snapshot cache on src/browser/webapi change 2026-04-12 11:54:53 +02:00
Pierre Tachoire
e53e4579ab
ci: use v8 snapshot cache w/ wpt test 2026-04-10 11:35:40 +02:00
Pierre Tachoire
9cd79941bf
Merge pull request #2119 from lightpanda-io/wpt-completion
ci: send wpt completion
2026-04-10 11:26:15 +02:00
Pierre Tachoire
36fcb0fd7f
ci: use a longer timeout for e2e test
When we have to generate a snapshot, the build duration is longer.
2026-04-10 11:02:04 +02:00
Pierre Tachoire
963682eb0d
ci: send wpt completion 2026-04-10 10:42:16 +02:00
Pierre Tachoire
bd4e88cec8
ci: typo fix 2026-04-10 10:13:27 +02:00
Pierre Tachoire
90069f6ab8
ci: use a dedicated action for v8 snapshot 2026-04-10 10:13:27 +02:00
Pierre Tachoire
ca78bd7786
ci: invalidate snapshot cache on src/browser/js/Snapshot.zig 2026-04-10 09:52:43 +02:00
Pierre Tachoire
075a660b2f
ci: use cache for snapshots
Add a cache for v8 snapshot file.
Use a cache key for v8 snapshot with the last hash changing
src/browser/js/bridge.zig
eg. v8-snapshot-4dcb2c997e01e4367ca6118629fb4ac712f9692c
2026-04-10 09:26:32 +02:00
Karl Seguin
5c7a665d11
run e2e-test with pre-generated snapshot 2026-04-09 18:54:31 +08:00
Karl Seguin
0d75c00f85
update v8 dep 2026-04-04 07:00:26 +08:00
Pierre Tachoire
6bb8bc8391
ci: use proxy for integration tests 2026-04-03 09:24:17 +02:00
Pierre Tachoire
ca8361f5c1
Merge pull request #2059 from lightpanda-io/integration-e2e-report
ci: send e2e integration results to slack
2026-04-01 10:41:16 +02:00
Pierre Tachoire
1c1bd81daa
ci: send e2e integration results to slack 2026-04-01 10:29:56 +02:00
Pierre Tachoire
ea87fc2c50
ci: publish ci regression list into slack 2026-04-01 10:18:06 +02:00
Pierre Tachoire
7606528b37
ci: fix request interception proxy challenge 2026-03-30 15:32:38 +02:00
Adrià Arrufat
7f2139f612 build: simplify nightly versioning 2026-03-27 10:47:43 +09:00
Pierre Tachoire
28cc60adb0
add a -Dpre_version build flag for custom pre version 2026-03-26 11:52:16 +01:00
Adrià Arrufat
a75c0cf08d build: bump zig-v8 to v0.3.7 2026-03-26 12:34:10 +09:00
Karl Seguin
e2afbec29d
update v8 dep 2026-03-26 09:17:32 +08:00
Pierre Tachoire
e83b8aa36d
ci: don't run wba test on PR
wba test requires secrets read to run.
But we don't want to exposes secrets on external contributions.
So it's easier to run it only after PR merged.
2026-03-25 16:55:45 +01:00
Pierre Tachoire
3a0cead03a
Merge pull request #1917 from lightpanda-io/semantic-versioning
build: automate version resolution in build.zig
2026-03-25 08:46:04 +01:00
Pierre Tachoire
eb18dc89f6
ci: use -Dversion_string for release (nightly) build 2026-03-24 14:46:48 +01:00
Karl Seguin
61dabdedec
Support (and prefer) dash-separated command line arguments
--log_level -> --log-level

Underscored arguments are still supported for backwards compatibility.
2026-03-24 12:55:08 +08:00
Adrià Arrufat
f1293b7346 Merge branch 'main' into semantic-versioning 2026-03-20 07:04:05 +09:00
Pierre Tachoire
d94fd2a43b
Merge pull request #1793 from lightpanda-io/wpt-selfhost
Move WPT runs on a dedicated host
2026-03-19 17:35:21 +01:00
Pierre Tachoire
8c5e737669
ci: use mem-limit with wptrunner 2026-03-19 15:40:18 +01:00
Pierre Tachoire
fb29a1c5bf
ci: adjust wpt serve wait time 2026-03-19 15:40:18 +01:00
Pierre Tachoire
59175437b5
wpt: force a wakeup of the wbauth server before the test 2026-03-19 09:40:47 +01:00
Pierre Tachoire
e950384b9b
ci: sleep 5s to wait node startup 2026-03-19 09:36:47 +01:00
Pierre Tachoire
78440350dc
ci: slow down execution 2026-03-19 09:32:27 +01:00
Pierre Tachoire
f435297949
ci: adjust WPT daily start time 2026-03-19 09:32:26 +01:00
Pierre Tachoire
54d1563cf3
ci: run WPT tests on a dedicated server 2026-03-19 09:32:13 +01:00
Adrià Arrufat
2dbd32d120 build: automate version resolution in build.zig
Removes manual git flags from CI and build scripts.
Versioning is now automatically derived from git and build.zig.zon.

With this PR, we follow https://semver.org/
Logic:

1. Read the version from build.zig.zon
2. If it doesn't have a `.pre` field (i.e. dev/alpha/beta) it will use that
3. Otherwise it will get the info from git: hash and number of commits since last `.0` version
4. Then build the version: `0.3.0-dev.1493+0896edc3`

Note that, since the latest stable version is `0.2.6`.
The convention is to use `0.3.0-dev`, as:
- `0.2.6` < `0.3.0.dev` < `0.3.0`
2026-03-19 13:03:29 +09:00
Nikolay Govorov
c0c4e26d63
removes artifacts of the past from CI 2026-03-17 14:24:22 +00:00
Nikolay Govorov
b252aa71d0
Use git_version option for version command 2026-03-17 13:25:15 +00:00
Karl Seguin
c25f389e91
Merge pull request #1817 from lightpanda-io/frames_postMessage
window.postMessage across frames
2026-03-17 06:42:32 +08:00
Pierre Tachoire
91a2441ed8
Merge pull request #1829 from salmanmkc/upgrade-github-actions-node24
Upgrade GitHub Actions for Node 24 compatibility
2026-03-16 12:19:22 +01:00
Pierre Tachoire
dac456d98c
ci: fix wba flaky test
Sometimes the GHA secret isn't dump in file correctly.
So this commit inject the value directly to the command line
2026-03-16 10:57:40 +01:00
Karl Seguin
a8b147dfc0
update v8 2026-03-15 09:24:42 +08:00
Salman Muin Kayser Chishti
bf6dbedbe4
Upgrade GitHub Actions for Node 24 compatibility
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-03-14 09:11:46 +00:00
Pierre Tachoire
0e48f317cb
ci: add a longer sleep to wait for node start on wba test 2026-03-13 12:22:48 +01:00
Pierre Tachoire
ba9777e754
Merge pull request #1609 from lightpanda-io/web-bot-auth
Web Bot Auth
2026-03-13 08:31:25 +01:00
Karl Seguin
f09e66e1cc
update action.yml to latest zig-v8 2026-03-13 07:15:23 +08:00
Muki Kiboigo
bf0be60b89
use new validator for e2e test 2026-03-12 09:04:13 -07:00
Muki Kiboigo
172481dd72
add e2e tests w/ web bot auth 2026-03-12 09:04:13 -07:00
Karl Seguin
4cea9aba3c
update v8 dep 2026-03-11 08:44:51 +08:00