From 2f381af62c509b43d3d1caf6445030d6264782dd Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Mon, 2 Nov 2026 12:21:34 +0100 Subject: [PATCH] Pin the test bootstrap to environment 0.6.5 and document the dist.webfront.fr domain (#478) --- cmake/WebFrontBootstrap.cmake | 9 +++++---- docs/CHANGELOG.md | 4 ++-- docs/DEVELOPER_ENVIRONMENT.md | 2 +- js/developer/environment/bundles.json | 2 +- js/developer/tools/PUBLISHING.md | 9 +++++++++ js/developer/webfront.project.json | 1 - 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/cmake/WebFrontBootstrap.cmake b/cmake/WebFrontBootstrap.cmake index 5f28fe77..dba1b6fb 100644 --- a/cmake/WebFrontBootstrap.cmake +++ b/cmake/WebFrontBootstrap.cmake @@ -4,12 +4,13 @@ # updated by an explicit pull request, once a published environment can build and test itself without interaction. # 0.6.0 is the first published environment that runs a wf command without interaction (runNonInteractive); 0.6.1 also returns the # output of a script, 0.6.2 reads the archives of @types packages and a manifest directory chosen by the application, and -# 0.6.3 exports the automation API v1. +# 0.6.3 exports the automation API v1, 0.6.4 adds the project setup operations of the automation runner and 0.6.5 is the +# first served from https://dist.webfront.fr/ (ADR-021). # The driver tests also # run the environment built from the current sources (the "environment under test"), which may be ahead of this pin. -set(WEBFRONT_BOOTSTRAP_VERSION "0.6.3") -set(WEBFRONT_BOOTSTRAP_URL "https://ambroise-leclerc.github.io/WebFront/developer/0.6.3/environment.tgz") -set(WEBFRONT_BOOTSTRAP_INTEGRITY "sha512-3AVF2xKsUfHys5VREA6DmkjiEDKjx9VQtPTrsjdiazzfpNQvbKEjW2ox5Kd2hPeOP5MfcMvbDHQ4SZoO97P5Xg==") +set(WEBFRONT_BOOTSTRAP_VERSION "0.6.5") +set(WEBFRONT_BOOTSTRAP_URL "https://dist.webfront.fr/developer/0.6.5/environment.tgz") +set(WEBFRONT_BOOTSTRAP_INTEGRITY "sha512-qaSYOJvxcXtKIbrjfjZFFvfoQrda5NfBq24ttQ7SdnIN12tXFDYXRVe+JkrUHXZY6KOhF7qxmo4k8NOqLOupPA==") # A directory holding environment.tgz (the pinned archive) replaces the download on a machine without network access. set(WEBFRONT_BOOTSTRAP_DIR "" CACHE PATH "Directory with the pinned bootstrap environment.tgz, instead of downloading it") diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 70749846..44cb6d35 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,8 +6,8 @@ first version published under that address; `site.mjs` writes the `CNAME` file of the Pages branch and `wf run pin` checks the pinned archive where it is served now. Libraries and environments up to 0.6.4 pin the former `ambroise-leclerc.github.io/WebFront/` address, which redirects to the new domain without the CORS headers a browser - needs: their developer bootstrap no longer starts and they must be rebuilt with a pin on `dist.webfront.fr`. The pin - stays on 0.6.4 until 0.6.5 is published. + needs: their developer bootstrap no longer starts and they must be rebuilt with a pin on `dist.webfront.fr`. 0.6.5 is + published and pinned, and the test bootstrap moves to it. ## 0.8.0 - 2026-11-01 diff --git a/docs/DEVELOPER_ENVIRONMENT.md b/docs/DEVELOPER_ENVIRONMENT.md index 19e1a94b..3a143ffe 100644 --- a/docs/DEVELOPER_ENVIRONMENT.md +++ b/docs/DEVELOPER_ENVIRONMENT.md @@ -60,7 +60,7 @@ int main() { } ``` -The [versioned distributions](https://ambroise-leclerc.github.io/WebFront/) are published on GitHub Pages. +The [versioned distributions](https://dist.webfront.fr/) are published on GitHub Pages, under the domain `dist.webfront.fr`. Each published version is immutable: 0.3.0 introduced the packed-bitset Life starter (bridge support from #289), 0.3.1 made `wf install` keep the versions of the installed lock, 0.4.1 changed the include of the generated provider, 0.5.0 added the manifest, `wf restore`, `wf run`, `wf exec`, `wf check` and the complete terminal, and 0.6.0 `wf build`, `wf dev` and `wf test`. diff --git a/js/developer/environment/bundles.json b/js/developer/environment/bundles.json index 84d0c33f..1c453dfc 100644 --- a/js/developer/environment/bundles.json +++ b/js/developer/environment/bundles.json @@ -43,7 +43,7 @@ "js/developer/tools/archive.mjs": "da63bb9d796ddfd24ed945b15c53f66a0400eb177886fd4f1c8fd10cafb5a91b", "js/developer/tools/distribution.mjs": "43dfdccc912693db46fd095fd78ae79325abab672d99f89fd569914ef3499cad", "js/developer/scripts/build.mjs": "7aa0358dbd8555ab83bf0380f67892e96b7e9806d4968de18e1a8eaf6e91c080", - "js/developer/webfront.project.json": "8984debb97ec09ffa768e910567adb2f642de99088549c6bfaa16287568ed1b8", + "js/developer/webfront.project.json": "84d59d7ba14883e6a4ec78f26bb05c0e671b48e983296dd20146d4ecea28c528", "js/core/bootstrap/bootstrap.bundle.mjs": "536831257f0fc92e31911841750e1e59247f7c64e756b0fcb878efd9860a741f", "js/developer/environment/packages.bundle.mjs": "2d62f3fcdece8e898f15814d7e80fc3a27ea062f45514cf8e5c3ae32fd9d26c5", "include/webfront/system/DeveloperReleaseData.hpp": "c85df5bf7b93609e26d3830c83b747726ad54ee4040cb30e2dc59a12e34b94ce" diff --git a/js/developer/tools/PUBLISHING.md b/js/developer/tools/PUBLISHING.md index 8e7055b6..ca1a1b69 100644 --- a/js/developer/tools/PUBLISHING.md +++ b/js/developer/tools/PUBLISHING.md @@ -71,6 +71,15 @@ merge it only after the deployed bytes and headers are verified. Once the new version is published, `cmake/WebFrontBootstrap.cmake` may pin it as the bootstrap environment of the tests, in a pull request of its own. +## Domain + +The distribution is served under `https://dist.webfront.fr/` (ADR-021): `baseUrl` of `distribution.json`, hence the URL in +every pinned header. The zone of `webfront.fr` holds a `CNAME` from `dist` to `ambroise-leclerc.github.io.`, the domain +`webfront.fr` is verified in the account's Pages settings, and HTTPS is enforced. `wf run site` writes the `CNAME` file of +the Pages branch from `baseUrl`; the workflow removes it when `baseUrl` returns to a github.io address. A custom domain must +serve the root of the site. Changing the base URL is a public URL change: increment the version, and expect every +earlier pin on the former address to stop working in a browser, since Pages redirects without CORS headers. + ## One-time Pages configuration The repository's Pages source must be the **gh-pages branch, root directory**, with branch-based diff --git a/js/developer/webfront.project.json b/js/developer/webfront.project.json index 84b37aff..66c0c1c0 100644 --- a/js/developer/webfront.project.json +++ b/js/developer/webfront.project.json @@ -63,7 +63,6 @@ "include/webfront/system/DeveloperReleaseData.hpp" ], "fetch": [ - "https://ambroise-leclerc.github.io", "https://dist.webfront.fr" ] }