Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

### Fixed

- The installer of the developer environment reads npm archives rooted at any single directory, as npm does (#316): the archives of
`@types/*` are rooted at the package name and were refused as "Invalid npm tarball root". A mixed or escaping root is still refused.
- The Life starter type-checks under TypeScript `strict` (`useState<Uint8Array>`), which `wf check` now proves.
- Script injection works before the page body exists, including a driver handshake completed during HTML parsing.

- `wf test` supports WebKit engines without `AbortSignal.any()` (#335), preserving cancellation/deadline reports and
Expand All @@ -25,6 +28,10 @@

### Added

- Developer journey qualification (#316, epic #303): `Journey*` CTest cases run `wf create`, `init`, `install`, `check`, `test`, `build`
and `embed` on one project in an empty directory from the local registry, compile the generated header into the Life application
and run it from an empty directory, then check a script under denied permissions and an emptied cache offline and restored. The test
registry gains `@types/react`, `@types/react-dom` and `csstype`. ADR-013, ADR-014 and ADR-015 are accepted.
- `third_party/` is removed (#319, epic #303): `fflate` 0.8.3, the last vendored source, is a locked package of the repository's
`wf` project, imported by name from `js/developer/environment/embed.mjs`; its notice comes from the installed package.
The environment archive stays byte for byte identical. The test registry downloads it at configure time, and
Expand Down
33 changes: 32 additions & 1 deletion docs/PROJECT_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,44 @@ site and refuses to change a published version; `pin.mjs` checks the pin against
`archive-release.sh` do the host operations with `gh`. The `DeveloperDistribution.yml` jobs `wf-package` and `publish`, and
the actions `wf-driver` and `remove-node`, run only on GitHub.

## Developer journey qualification (#316, epic #303)

The whole journey of a developer is a chain of CTest cases (`Journey*`, label `web-integration`) on one project in an empty
directory, from the environment built from the sources and the local registry, without Node.js, npm or public network after configure
(the CEF job cuts it):

| Step | Case | Proof |
| --- | --- | --- |
| `wf create life` | `JourneyCreate` | the pinned starter is verified and written to `ui/` |
| `wf init` | `JourneyInit` | the manifest |
| `wf install` | `JourneyInstall` | eight packages from the registry, among them `@types/react` (archive rooted at `react/`, not `package/`) |
| `wf check` | `JourneyCheck` | the real Life starter type-checks under TypeScript 5.9 strict |
| `wf test` | `JourneyTest` | two Jasmine specs in the real engine |
| `wf build`, `wf embed` | `JourneyBuild`, `JourneyEmbed` | the header `generated/LifeUI.hpp` |
| compile and run | `JourneyEmbeddedBuild`, `JourneyEmbeddedRun` | the header is compiled into the Life application, which runs from an empty directory |
| `wf preview`, `wf dev` | `DeveloperBrowserIntegration` | they need the page of the terminal: run in the same engine, with Ctrl+C and the cache |

Error cases: wrong integrity, missing archive, unknown protocol or API version and watchdog (`WfDriverWrongIntegrity`,
`WfDriverMissingArchive`, `WfDriverIncompatibleProtocol`, `WfDriverIncompatibleApi`, `WfDriverTimeout`), a script outside its
permissions (`JourneyPermissionDenied`), an emptied cache checked offline then restored (`JourneyOfflineMissing`, `JourneyRestore`,
`JourneyOfflineVerified`), Ctrl+C on dev, scripts and native commands (`DeveloperBrowserIntegration`).

Green on CEF (GCC and Clang, public network cut), WebKitGTK, WKWebView and WebView2 in the
[pull request run](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081726319) and the
[dispatch](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081723204); the durations are in `docs/TEST_PERFORMANCE.md`.
ADR-013, ADR-014 and ADR-015 are accepted on these proofs. Known limit: file reads fail beyond 260 characters on Windows (#349).

The journey found two defects, now fixed with regression specs: the installer refused every archive whose root is not
`package/` (all of `@types/*`, whose root is the package name; `npm` strips the first component whatever it is), and the Life starter
did not type-check under `strict` with the current declarations (`useState<Uint8Array>`).

## Tests, regeneration and CI without Node.js (#318, epic #303)

No path of WebFront depends on a JavaScript runtime or package manager any more: configuring, building, testing, regenerating the embedded assets,
building the environment, publishing it, and the CI.

- **Provisioning.** With `ENABLE_TESTING=ON`, configure downloads the pinned bootstrap environment and the real packages of the
tests' npm registry (`test/web/registry-packages.json`: ten archives, verified against their SHA-512; a wrong digest stops
tests' npm registry (`test/web/registry-packages.json`: thirteen archives, verified against their SHA-512; a wrong digest stops
the configure; `-DWEBFRONT_BOOTSTRAP_DIR` and `-DWEBFRONT_REGISTRY_DIR` replace the downloads offline). `WEBFRONT_DEVELOPER_FIXTURES`
is gone: the CTest chain builds the registry (`TestRegistry`: `wf run test-registry`), installs the build dependencies
from it, builds the environment from the current sources (`SelfBuild*`) and assembles the fixtures of the browser tests
Expand Down
20 changes: 20 additions & 0 deletions docs/TEST_PERFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ environment starts a sleeping command and publishes a readiness marker; the test
exit status 71. Compiler startup is covered by the other real-script driver cases and does not consume this watchdog's
budget. This case retains a real elapsed-time check rather than advancing a test clock.

## Developer journey (#316)

The 15 `Journey*` cases (create, init, install, check, test, build, embed, build and run of the embedded application, and the
error cases) run one after the other on a single project. Their summed CTest durations in the
[pull request run](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081726319) and the
[CEF dispatch](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081723204), and the whole suite in the same run:

| Job | Journey cases | Whole suite |
| --- | ---: | ---: |
| Linux GCC / WebKitGTK | 64.1 s | 248.7 s |
| macOS Clang / WKWebView | 60.8 s | 254.5 s |
| Windows MSVC / WebView2 | 73.3 s | 269.4 s |
| Linux GCC / CEF | 44.8 s | 172.7 s |
| Linux Clang / CEF | 44.9 s | 170.4 s |

The cases run under the same lock as the other browser tests, so the added time is about one minute per job, of which the
compilation of the embedded application (`JourneyEmbeddedBuild`, serial like `LifeEmbeddedBuild`) is the largest part. The project of the
journey sits under `<build>/jp`: on Windows the cache of `jasmine-core` holds a path beyond 260 characters in a longer root (#349).

## Resource audit

| Tests | Scheduling constraint |
Expand All @@ -77,6 +96,7 @@ budget. This case retains a real elapsed-time check rather than advancing a test
| Frontend selection | Its own `frontend-tests` directory; multi-config tests have a separate working directory. Each configure starts with a fresh fixture cache. |
| CEF option scope | Its own `cef-testing-state` directory; each state still configures separately. |
| Consumer | Separate `consumer-build` tree; no browser is opened. |
| Journey | One project directory (`<build>/jp`) chained by CTest fixtures; the browser lock; the nested build is `RUN_SERIAL`. |
| Browser integration and lifecycle | Keep `RESOURCE_LOCK webfront_port_9002`, including the shared CEF profile and generated browser resources. |
| Life embedded build | Keep `FIXTURES_REQUIRED DeveloperGenerated`, then the build/run fixture dependencies. `RUN_SERIAL TRUE` excludes every other test while it runs, protecting running executables from regeneration/relinking. `PROCESSORS 2` records the nested build's two workers. |

Expand Down
9 changes: 3 additions & 6 deletions docs/adr/ADR-013-bootstrap-developpeur-a-la-demande.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
| 0.2 | 2026-10-22 | Proposée | Ambroise Leclerc | Alignement sur ADR-016 : la proposition devient la base de l'architecture ; preuves multiplateformes manquantes listées. | [404fed2](https://github.com/ambroise-leclerc/WebFront/commit/404fed2c2145d4faba8efee035e10522ff87a91f) |
| 0.3 | 2026-10-22 | Proposée | Ambroise Leclerc | Provisioning local des paquets (#306) : `wf restore [--offline]`, priorité du registre de l'application sur celui du manifeste. | À renseigner après intégration. |
| 0.4 | 2026-10-24 | Proposée | Ambroise Leclerc | Retrait du starter PI ; Life reste le seul starter distribué, créé avec `wf create life`. | [8368f59](https://github.com/ambroise-leclerc/WebFront/commit/8368f595af1534ea6670ee6d5582f245f9edc1f2) |
| 1.0 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification multiplateforme du parcours développeur (#316) : la proposition est acceptée. | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) |

## Statut et date

**Proposée le 2026-10-20.** L'implémentation expérimentale est soumise à validation ; la
distribution publique de l'environnement et la qualification des autres moteurs restent ouvertes.
La date est celle de la proposition, pas une origine historique reconstituée.
**Acceptée le 2026-10-24** (proposée le 2026-10-20). Preuves (#316) : le parcours `Journey*` (create, init, install, check, test, build, embed, compilation et exécution de l'application embarquée depuis un répertoire vide, permission refusée, cache hors ligne puis restauré) est vert sous CEF (GCC et Clang, réseau public coupé), WebKitGTK, WKWebView et WebView2 ([exécution de la PR](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081726319) et [dispatch](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081723204)) ; un échantillon de treize paquets npm réels (React, TypeScript, `@types/*`, jasmine-core…) est installé depuis le registre local ; la release 0.6.0 est publiée et vérifiée.

## Contexte

Expand Down Expand Up @@ -50,9 +49,7 @@ publication npm ou propriété d'un scope. Le manifeste vérifié épingle aussi
## Alignement sur l'ADR-016

[ADR-016](ADR-016-bootstrap-comme-socle.md) retient cette proposition comme base de l'architecture.
Elle reste **Proposée** jusqu'aux preuves de #316 : parcours complet validé sous CEF, WebKitGTK,
WebView2 et WKWebView, compatibilité d'un échantillon de paquets npm, restauration hors ligne et
publication vérifiée d'une release. Les providers et composants historiques évoqués ici suivent la
Elle est **Acceptée** depuis les preuves de #316 (voir le statut). Les providers et composants historiques évoqués ici suivent la
trajectoire de retrait de l'ADR-016.

## Alternatives et conséquences
Expand Down
8 changes: 3 additions & 5 deletions docs/adr/ADR-014-construction-javascript-dans-le-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
| --- | --- | --- | --- | --- | --- |
| 0.1 | 2026-10-20 | Proposée | Ambroise Leclerc | Proposition et première implémentation du résolveur npm et du compilateur navigateur. | À renseigner après intégration. |
| 0.2 | 2026-10-22 | Proposée | Ambroise Leclerc | Alignement sur ADR-016 : la proposition devient la base de l'architecture ; preuves multiplateformes manquantes listées. | [404fed2](https://github.com/ambroise-leclerc/WebFront/commit/404fed2c2145d4faba8efee035e10522ff87a91f) |
| 1.0 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification multiplateforme du parcours développeur (#316) : la proposition est acceptée. | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) |

## Statut et date

**Proposée le 2026-10-20.** Validation initiale avec React et WKWebView ; couverture multiplateforme
et étendue de compatibilité des paquets à poursuivre avant acceptation générale.
**Acceptée le 2026-10-24** (proposée le 2026-10-20). Preuves (#316) : le parcours `Journey*` (create, init, install, check, test, build, embed, compilation et exécution de l'application embarquée depuis un répertoire vide, permission refusée, cache hors ligne puis restauré) est vert sous CEF (GCC et Clang, réseau public coupé), WebKitGTK, WKWebView et WebView2 ([exécution de la PR](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081726319) et [dispatch](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081723204)) ; un échantillon de treize paquets npm réels (React, TypeScript, `@types/*`, jasmine-core…) est installé depuis le registre local ; la release 0.6.0 est publiée et vérifiée.

## Contexte

Expand Down Expand Up @@ -44,9 +44,7 @@ processus C++ de compilation ou shell n'est lancé. La transformation TS n'effec
## Alignement sur l'ADR-016

[ADR-016](ADR-016-bootstrap-comme-socle.md) retient cette proposition comme base de l'architecture.
Elle reste **Proposée** jusqu'aux preuves de #316 : parcours complet validé sous CEF, WebKitGTK,
WebView2 et WKWebView, compatibilité d'un échantillon de paquets npm, restauration hors ligne et
publication vérifiée d'une release. Les providers et composants historiques évoqués ici suivent la
Elle est **Acceptée** depuis les preuves de #316 (voir le statut). Les providers et composants historiques évoqués ici suivent la
trajectoire de retrait de l'ADR-016.

## Alternatives et conséquences
Expand Down
8 changes: 3 additions & 5 deletions docs/adr/ADR-015-ressources-generees-par-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
| 0.1 | 2026-10-20 | Proposée | Ambroise Leclerc | Proposition et première implémentation de wf embed et du parcours hors ligne. | À renseigner après intégration. |
| 0.2 | 2026-10-22 | Proposée | Ambroise Leclerc | Alignement sur ADR-016 : la proposition devient la base de l'architecture ; preuves multiplateformes manquantes listées. | [404fed2](https://github.com/ambroise-leclerc/WebFront/commit/404fed2c2145d4faba8efee035e10522ff87a91f) |
| 0.3 | 2026-10-24 | Proposée | Ambroise Leclerc | Vérification recentrée sur Life après le retrait de PI : interface React, générations via le bridge et exécution hors projet. | [8368f59](https://github.com/ambroise-leclerc/WebFront/commit/8368f595af1534ea6670ee6d5582f245f9edc1f2) |
| 1.0 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification multiplateforme du parcours développeur (#316) : la proposition est acceptée. | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) |

## Statut et date

**Proposée le 2026-10-20.** Le parcours PI démontre une génération navigateur, sa compilation puis
l'exécution hors projet/cache avec WKWebView. Les autres moteurs nécessitent leur validation.
**Acceptée le 2026-10-24** (proposée le 2026-10-20). Preuves (#316) : le parcours `Journey*` (create, init, install, check, test, build, embed, compilation et exécution de l'application embarquée depuis un répertoire vide, permission refusée, cache hors ligne puis restauré) est vert sous CEF (GCC et Clang, réseau public coupé), WebKitGTK, WKWebView et WebView2 ([exécution de la PR](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081726319) et [dispatch](https://github.com/ambroise-leclerc/WebFront/actions/runs/40081723204)) ; un échantillon de treize paquets npm réels (React, TypeScript, `@types/*`, jasmine-core…) est installé depuis le registre local ; la release 0.6.0 est publiée et vérifiée.

## Contexte

Expand Down Expand Up @@ -41,9 +41,7 @@ une conséquence automatique de cette proposition.
## Alignement sur l'ADR-016

[ADR-016](ADR-016-bootstrap-comme-socle.md) retient cette proposition comme base de l'architecture.
Elle reste **Proposée** jusqu'aux preuves de #316 : parcours complet validé sous CEF, WebKitGTK,
WebView2 et WKWebView, compatibilité d'un échantillon de paquets npm, restauration hors ligne et
publication vérifiée d'une release. Les providers et composants historiques évoqués ici suivent la
Elle est **Acceptée** depuis les preuves de #316 (voir le statut). Les providers et composants historiques évoqués ici suivent la
trajectoire de retrait de l'ADR-016.

## Alternatives et conséquences
Expand Down
14 changes: 7 additions & 7 deletions docs/adr/ADR-016-bootstrap-comme-socle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
| 1.1 | 2026-10-23 | Acceptée | Ambroise Leclerc | Garde-fou `MinimalCoreAssets` (#314) : la liste est vérifiée par CTest, budget de 150 Kio d'octets décodés ; le favicon devient `FaviconData`, généré par CMake pur depuis `js/core/favicon.ico`. | [c0ee031](https://github.com/ambroise-leclerc/WebFront/commit/c0ee03131d3104721f8a24224533e753a5f6ad13) |
| 1.2 | 2026-10-23 | Acceptée | Ambroise Leclerc | Auto-hébergement (#315) : le dépôt est un projet `wf` dont les scripts construisent l'environnement, le site et la vérification du pin avec l'environnement d'amorçage épinglé ; octets identiques à la construction de l'époque, preuve de reconstruction du bundle bootstrap. | — |
| 1.3 | 2026-10-24 | Acceptée | Ambroise Leclerc | Tests, régénération et CI sans Node.js ni npm (#318) : les en-têtes du cœur sont produits et vérifiés par un générateur CMake pur (`js/core/EmbedAsset.cmake`), qui remplace `wf run embed-core` et le générateur Node.js ; les paquets du registre de test sont téléchargés et vérifiés au configure ; les tests JavaScript deviennent des specs Jasmine exécutées par `wf test` ; garde-fou global `NoNodeDependency`. | — |
| 1.4 | 2026-10-24 | Acceptée | Ambroise Leclerc | Qualification du parcours (#316) : ADR-013, ADR-014 et ADR-015 passent à « Acceptée ». | [#348](https://github.com/ambroise-leclerc/WebFront/pull/348) |

## Statut et date

**Acceptée le 2026-10-22** (épique #303, issue #304). Cette décision fixe la direction
architecturale et les règles que les issues suivantes de l'épique doivent respecter. Elle ne
déclare **pas** les mécanismes déjà proposés (ADR-013, ADR-014, ADR-015) comme acceptés : leur
passage à « Acceptée » attend les preuves multiplateformes de #316. Aucun code n'est modifié par
architecturale et les règles que les issues suivantes de l'épique doivent respecter. Les mécanismes
déjà proposés (ADR-013, ADR-014, ADR-015) sont passés à « Acceptée » le 2026-10-24 avec les preuves
multiplateformes de #316. Aucun code n'est modifié par
cette décision ; les retraits qu'elle annonce sont réalisés par #311 à #319.

## Contexte
Expand Down Expand Up @@ -138,10 +139,9 @@ développeur ni outillage. L'outillage de construction n'est jamais embarqué da
abonnements UI multiples et l'injection du navigateur appelant restent des contrats du cœur.
- **[ADR-013](ADR-013-bootstrap-developpeur-a-la-demande.md),
[ADR-014](ADR-014-construction-javascript-dans-le-browser.md),
[ADR-015](ADR-015-ressources-generees-par-application.md)** restent **Proposées**. Preuves
manquantes avant acceptation : validation CEF, WebKitGTK, WebView2 et WKWebView du parcours
complet, compatibilité d'un échantillon de paquets npm, restauration hors ligne, publication
vérifiée d'une release (#316).
[ADR-015](ADR-015-ressources-generees-par-application.md)** sont **Acceptées** (#316, 2026-10-24) :
parcours complet validé sous CEF, WebKitGTK, WebView2 et WKWebView, échantillon de paquets npm,
restauration hors ligne et release publiée et vérifiée.

### Trajectoire de dépréciation

Expand Down
Loading
Loading