From e59e4353d71e7aff12b1e1e1b2f999c3af125e28 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Fri, 23 Oct 2026 22:11:56 +0200 Subject: [PATCH 1/2] Pin developer environment 0.6.1 [#315] --- include/webfront/system/DeveloperReleaseData.hpp | 6 +++--- js/developer/environment/bundles.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/webfront/system/DeveloperReleaseData.hpp b/include/webfront/system/DeveloperReleaseData.hpp index 97bbb2e8..0e487184 100644 --- a/include/webfront/system/DeveloperReleaseData.hpp +++ b/include/webfront/system/DeveloperReleaseData.hpp @@ -4,7 +4,7 @@ #include namespace webfront::developer::release { -inline constexpr std::string_view version{"0.6.0"}; -inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.6.0/environment.tgz"}; -inline constexpr std::string_view integrity{"sha512-xidz8ggQFo/UUTttIii+3FRJmGpQPoHhbmk9Fv/wxRA4EKEhD5WeiAcstsuY8H/wXc/jo/bljIYkzyyyrJ1oEg=="}; +inline constexpr std::string_view version{"0.6.1"}; +inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.6.1/environment.tgz"}; +inline constexpr std::string_view integrity{"sha512-wBYPxKJQwj4KqWqbLqxXbfhCUSZgBZh1GCnbAvxgb4oVwsxf0vnfpTGdhW/2tGXagwHT/60SwbL7L21vRCVD8g=="}; } // namespace webfront::developer::release diff --git a/js/developer/environment/bundles.json b/js/developer/environment/bundles.json index 85b48733..7930b20b 100644 --- a/js/developer/environment/bundles.json +++ b/js/developer/environment/bundles.json @@ -47,5 +47,5 @@ "webfront.project.json": "fef1af6974c8ebf50afd630d2675b2046a801c597b74278005d7f3a7f9dba22c", "js/core/bootstrap/bootstrap.bundle.mjs": "536831257f0fc92e31911841750e1e59247f7c64e756b0fcb878efd9860a741f", "js/developer/environment/packages.bundle.mjs": "e36d1052285a313f7db67c1f58f8332da9e97446b1e2085422ebdae379288045", - "include/webfront/system/DeveloperReleaseData.hpp": "ad3707e158b1f268c679545e17d67b6ba245b2129614cf04dfeacdb351f2a354" + "include/webfront/system/DeveloperReleaseData.hpp": "e845086c05ae9ac4a32f7ed62f0b812a9cf375524460b2cc6e6a19ecbd64aea7" } From 0b17ea986472cc9f53521c1f23840282b8fa2072 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Fri, 23 Oct 2026 22:38:37 +0200 Subject: [PATCH 2/2] Document the release pin 0.6.1 [#315] --- docs/CHANGELOG.md | 2 +- docs/DEVELOPER_ENVIRONMENT.md | 6 +++--- docs/PROJECT_STATUS.md | 2 +- js/developer/tools/PUBLISHING.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 138496cd..cc02dcd0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- The developer environment builds itself (#315, sources of distribution 0.6.1, release pin unchanged at 0.6.0): the +- The developer environment builds itself (#315, distribution 0.6.1, published as `developer-v0.6.1` and pinned by `DeveloperReleaseData.hpp`; the bootstrap of the tests stays 0.6.0): the repository is a `wf` project (`webfront.project.json`, `webfront-packages.lock.json`) and the scripts of `js/developer/scripts/` run in the pinned bootstrap environment with `webfront-wf`. `build.mjs` bundles the environment with the locked esbuild-wasm and writes `environment.tgz`, the starters, `provision.json` and the pinned header (with diff --git a/docs/DEVELOPER_ENVIRONMENT.md b/docs/DEVELOPER_ENVIRONMENT.md index cd22e582..1892e6ff 100644 --- a/docs/DEVELOPER_ENVIRONMENT.md +++ b/docs/DEVELOPER_ENVIRONMENT.md @@ -48,7 +48,7 @@ native tests from empty working directories, with developer callbacks absent. Pa HTTP 200, CORS `*` and the pinned archive bytes. These checks supplement offline CTest fixtures. The default configuration is generated in `include/webfront/system/DeveloperReleaseData.hpp` and targets -`https://ambroise-leclerc.github.io/WebFront/developer/0.6.0/environment.tgz`. This version (`wf build`, `wf dev`, `wf test` and the non-interactive entry, on top of the 0.5.0 manifest, `wf restore`, `wf run`, `wf check` and the complete terminal) is published and archived as `developer-v0.6.0`. Published 0.5.0, 0.4.1 and 0.4.0 stay immutable; 0.4.0 targets the former include layout. The configuration pins one version and +`https://ambroise-leclerc.github.io/WebFront/developer/0.6.1/environment.tgz`. This version (`wf build`, `wf dev`, `wf test` and the non-interactive entry, on top of the 0.5.0 manifest, `wf restore`, `wf run`, `wf check` and the complete terminal) is published and archived as `developer-v0.6.1`. Published 0.6.0, 0.5.0, 0.4.1 and 0.4.0 stay immutable; 0.4.0 targets the former include layout. The configuration pins one version and its SHA-512 rather than resolving a mutable `latest` channel. An explicit `DeveloperBootstrapOptions{.environment = url, .integrity = trustedHash}` still selects a different HTTPS/CORS repository or a same-origin test fixture. Users install neither npm nor Node.js. @@ -435,7 +435,7 @@ the Worker, cancels polling and aborts staged publication; a publication already the preview before stopping. The last successful preview stays available. Browser disconnection also stops the loop. -`wf build`, `wf dev` and `wf test` are in developer distribution 0.6.0, which `DeveloperReleaseData.hpp` pins (published as `developer-v0.6.0`). +`wf build`, `wf dev` and `wf test` are in developer distribution 0.6.0 and later; `DeveloperReleaseData.hpp` pins 0.6.1 (published as `developer-v0.6.1`). ## Tests (`wf test`) @@ -529,7 +529,7 @@ field). `webfront.developer.config` carries `supported: {protocol: [1], api: [1] `Incompatible WebFront developer environment: api version 2, this application supports 1`; it never falls back. A change to the callbacks increments `apiVersion` and requires publishing a new bootstrap environment. -The pin is 0.6.0, the first published environment with a non-interactive mode (`WfDriverPinned` runs `wf init` from it; the starters are not provisioned, only the archive). The sources build 0.6.1, not published yet: it fixes `runNonInteractive`, which dropped what a command wrote before it ended (a script's console output, install progress) and kept only its summary; the pinned 0.6.0 still does, and the `SelfBuild*` cases therefore check the summary of the scripts, not their console output. The other `WfDriver*` cases run the environment built from the current sources +The release pin is 0.6.1; the bootstrap environment of the tests (`cmake/WebFrontBootstrap.cmake`) is still 0.6.0, the first published environment with a non-interactive mode (`WfDriverPinned` runs `wf init` from it; the starters are not provisioned, only the archive). 0.6.1 fixes `runNonInteractive`, which dropped what a command wrote before it ended (a script's console output, install progress) and kept only its summary; the pinned 0.6.0 still does, and the `SelfBuild*` cases therefore check the summary of the scripts, not their console output. The other `WfDriver*` cases run the environment built from the current sources (`WEBFRONT_DEVELOPER_FIXTURES`), which may be ahead of the pin: `wf install` and `wf test` on a fixture project (pass, fail, report file), a starter, an entry module renamed in `environment.json`, an unknown command, the time limit, a wrong integrity, a missing archive and archives with an incompatible protocol or API. `BootstrapProvisioning` checks the diff --git a/docs/PROJECT_STATUS.md b/docs/PROJECT_STATUS.md index f930b636..7bc534bb 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -10,7 +10,7 @@ removed without redirect headers (see `docs/CHANGELOG.md`). Browser sources live components, build tools, vendoring tools); tests live in `test/{unit,web,fuzz,fixtures,cmake}`. The CTest case `RepositoryLayout` enforces the root. The generated-provider include changed, so the developer distribution is bumped to 0.4.1, published and archived as `developer-v0.4.1`. Version 0.5.0 (project manifest, `wf restore`, -`wf run`/`wf exec`, `wf check`, the complete terminal) was published as `developer-v0.5.0`; 0.6.0 (`wf build`, `wf dev`, `wf test`, the non-interactive entry) is pinned by `DeveloperReleaseData.hpp`, published and archived as `developer-v0.6.0`. On 2026-10-23 Pages returned HTTP 200 for 0.6.0, +`wf run`/`wf exec`, `wf check`, the complete terminal) was published as `developer-v0.5.0`; 0.6.0 (`wf build`, `wf dev`, `wf test`, the non-interactive entry) was published as `developer-v0.6.0`, and 0.6.1 (the output of a script reaches `webfront-wf`) is pinned by `DeveloperReleaseData.hpp`, published and archived as `developer-v0.6.1`. On 2026-10-23 Pages returned HTTP 200 for 0.6.1, CORS `*` and archives byte-identical to a reproducible local build; the live `--public` test (WebKitGTK, Linux) downloaded them, fetched React from npm, ran the PI and Life previews and generated both providers. diff --git a/js/developer/tools/PUBLISHING.md b/js/developer/tools/PUBLISHING.md index bf83c3ed..d87f72fc 100644 --- a/js/developer/tools/PUBLISHING.md +++ b/js/developer/tools/PUBLISHING.md @@ -34,7 +34,7 @@ headers `DeveloperIndexHtmlData.hpp` and `DeveloperBootstrapData.hpp`. `wf run e the CMake target `webfront-embedded-assets`). A script may only write where `permissions.publish` of `webfront.project.json` allows: the `build-*` directories and these checked-in outputs. -The output of a script reaches the terminal of an environment 0.6.1 or later; with the pinned 0.6.0 the command prints +The output of a script reaches the terminal of an environment 0.6.1 or later; with 0.6.0 the command prints only its summary. The integrity of an archive is `openssl dgst -sha512 -binary build-distribution/environment.tgz | base64 -w0`, prefixed by `sha512-`.