diff --git a/cmake/WebFrontBootstrap.cmake b/cmake/WebFrontBootstrap.cmake index 37211659..04498eaa 100644 --- a/cmake/WebFrontBootstrap.cmake +++ b/cmake/WebFrontBootstrap.cmake @@ -2,11 +2,12 @@ # # It is distinct from include/webfront/system/DeveloperReleaseData.hpp (the environment applications start from) and is # 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). The driver tests also +# 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. 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.0") -set(WEBFRONT_BOOTSTRAP_URL "https://ambroise-leclerc.github.io/WebFront/developer/0.6.0/environment.tgz") -set(WEBFRONT_BOOTSTRAP_INTEGRITY "sha512-xidz8ggQFo/UUTttIii+3FRJmGpQPoHhbmk9Fv/wxRA4EKEhD5WeiAcstsuY8H/wXc/jo/bljIYkzyyyrJ1oEg==") +set(WEBFRONT_BOOTSTRAP_VERSION "0.6.1") +set(WEBFRONT_BOOTSTRAP_URL "https://ambroise-leclerc.github.io/WebFront/developer/0.6.1/environment.tgz") +set(WEBFRONT_BOOTSTRAP_INTEGRITY "sha512-wBYPxKJQwj4KqWqbLqxXbfhCUSZgBZh1GCnbAvxgb4oVwsxf0vnfpTGdhW/2tGXagwHT/60SwbL7L21vRCVD8g==") # 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 cc02dcd0..8d0e7eeb 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- 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 +- The developer environment builds itself (#315, distribution 0.6.1, published as `developer-v0.6.1` and pinned by `DeveloperReleaseData.hpp`, and by the bootstrap of the tests): 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 @@ -17,7 +17,7 @@ - `webfront-wf` test driver and bootstrap provisioning (#321, developer distribution 0.6.0 published as `developer-v0.6.0`, pinned by `DeveloperReleaseData.hpp` and by the bootstrap): runs one `wf` command without interaction on a project and exits with its status (64 usage, 70 bootstrap failure, 71 time limit, 72 no result), with an optional JSON report. - `cmake/WebFrontBootstrap.cmake` pins the bootstrap environment (0.6.0) and, with `ENABLE_TESTING=ON`, downloads + `cmake/WebFrontBootstrap.cmake` pins the bootstrap environment (0.6.1) and, with `ENABLE_TESTING=ON`, downloads and verifies it at configure time, or takes it from `WEBFRONT_BOOTSTRAP_DIR`. `environment.json` declares `protocol` and `api`; `webfront.developer.config` exposes the supported versions and the loader refuses an incompatible archive with an explicit diagnostic. The Linux CEF job blocks the public network after configure. diff --git a/docs/DEVELOPER_ENVIRONMENT.md b/docs/DEVELOPER_ENVIRONMENT.md index 1892e6ff..7e4c40f2 100644 --- a/docs/DEVELOPER_ENVIRONMENT.md +++ b/docs/DEVELOPER_ENVIRONMENT.md @@ -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 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 +The pin, for the release and for the bootstrap of the tests (`cmake/WebFrontBootstrap.cmake`), is 0.6.1: 0.6.0 was the first published environment with a non-interactive mode (`WfDriverPinned` runs `wf init` from it; the starters are not provisioned, only the archive), and 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 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 7bc534bb..c1589e34 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -20,7 +20,7 @@ The Jasmine bridge suite is `test/web/suite/`, a WebFront project (`webfront.pro `react-dom`, `test.specs`). `webtest` is the `webfront-wf` driver (`test/driver/WfDriver.hpp`) plus the C++ callbacks the specs call: CTest prepares a copy of the project (`WebSuiteProject`), `wf install` resolves its dependencies from the local registry of `WEBFRONT_DEVELOPER_FIXTURES` (`WebSuiteInstall`), and the `Web*Integration` case runs `wf test` in the -pinned 0.6.0 bootstrap environment under CEF/Xvfb, WebKitGTK, WebView2 or WKWebView. `SpecRunner.html`, the `TestFS` +pinned 0.6.1 bootstrap environment under CEF/Xvfb, WebKitGTK, WebView2 or WKWebView. `SpecRunner.html`, the `TestFS` composition and the use of the embedded Jasmine, React and Babel providers by the browser test are gone; the Signal Studio page is a JSX module built by esbuild-wasm with the locked React and rendered in the runner frame by the specs. The specs now run in the hidden frame of `wf test`, so the URL assertions of the former top-level page (path, query, fragment) are covered @@ -31,7 +31,7 @@ case is registered only with `WEBFRONT_DEVELOPER_FIXTURES`; the registry fixture ## Self-hosted developer environment (#315, epic #303) The repository is a `wf` project (`webfront.project.json`, `webfront-packages.lock.json` at the root, the only files added -to the closed root list). The pinned 0.6.0 bootstrap environment runs `js/developer/scripts/build.mjs` with `webfront-wf`: +to the closed root list). The pinned 0.6.1 bootstrap environment runs `js/developer/scripts/build.mjs` with `webfront-wf`: the locked esbuild-wasm bundles the environment in the script's Worker, and `environment.tgz`, the starters, `provision.json`, the pinned header and (with `--refresh-bootstrap`) the bootstrap bundles, their checksums and the core headers come out byte for byte as from the Node.js build, twice in a row. `site.mjs` stages the Pages site and refuses to @@ -40,7 +40,7 @@ CMake target `webfront-embedded-assets`); `pages.sh` and `archive-release.sh` do absent from `PATH`: configure and build of the driver with `-DWEBFRONT_REQUIRE_NODE=OFF`, `wf restore` of the lock from the public registry, two builds with the same bytes as the Node.js build, the refresh, the staging of the site and the pin check; CTest `SelfBuild*` (15 cases) covers the same offline, and the whole suite passes locally (299 cases, WebKitGTK). The sources build 0.6.1, which fixes `runNonInteractive` -dropping what a command wrote; it is not published, and `DeveloperReleaseData.hpp` pins 0.6.0. +dropping what a command wrote; it is published as 0.6.1, which `DeveloperReleaseData.hpp` and the bootstrap of the tests pin. Not done here, by design: publishing 0.6.1 (a maintainer operation with the `developer-v0.6.1` tag), deleting the Node.js tools and the comparison job (#318, after the proof from an empty cache with the pinned environment), the registry of real