diff options
| author | Pjotr <wrk@bosa.lan> | 2026-10-03 09:42:00 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-03 09:42:00 +0000 |
| commit | 4e83398e9ec6ef4e9aaf778a2311b2214ae56397 (patch) | |
| tree | 60da774dbaa1f2b526b4f1e1284c315ee216cff4 | |
| parent | e18ba4152a149314bbe14d25d736fbaf8c841346 (diff) | |
| download | gn-bnw-4e83398e9ec6ef4e9aaf778a2311b2214ae56397.tar.gz | |
doc: add RELEASE_NOTES.md
Summary of the 31 commits since e9a320d0 (the last pre-Guix upstream commit, 2021-10-11), organized by theme: Guix deployment and testing, the GN2 integration fixes (server-side handshake conversion, XSS removal, My_Genenet spelling), the UX status/failure pages for execute_bn_gom.php, the PHP 8 robustness fixes, the build-system changes, the vendored-code removal and the test suites.
| -rw-r--r-- | RELEASE_NOTES.md | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md new file mode 100644 index 00000000..9c693472 --- /dev/null +++ b/RELEASE_NOTES.md @@ -0,0 +1,106 @@ +# BNW release notes + +Changes since `e9a320d0` (*Update home.php*, the last pre-Guix upstream +commit), summarized for users and deployers. 31 commits, 2021-10-11 → +2026-10-03. + +## Deployment / Guix packaging + +* **Guix system container and VM** (`7f460113`): BNW deploys as a Guix + system container (`gn-machines/genenetwork/containers/bnw-container.scm`) + and VM. The package definition lives in + `guix-bioinformatics/gn/packages/bnw.scm`, pinned to commits of this + repository and fetched from git.genenetwork.org. +* **Container test cycle** (`7b6a8ccf`, `f76f79b8`): `make` builds the + container from the pinned origin, starts it through the + run-guix-system-container daemon, runs the HTTP test suite, and stops + it again; `make run` leaves it up, `make clean` removes artifacts. + Checkout paths are overridable (`base`, `GUIX_BIOINF`, ...). +* **Anubis AI-bot firewall support** (in gn-machines): the web UI is + challenge-protected, while the GeneNetwork workflow endpoints, the + static assets and the .htm tutorial pages are exempt — the full + modeling flow runs without ever hitting a challenge. +* **Pinned container SSH keys** (`10ae4902`, `74f922e3`): host and admin + keys live outside the repository in the building user's `$HOME`, so + every container presents the same SSH host key. + +## GeneNetwork (GN2) integration + +* **Single-POST handshake, XSS fixed** (`8380798b`, `75761501`): GN2 + posts `My_Gennenet` (commas = columns, semicolons = rows) and the + conversion now happens **server-side** in PHP, returning the + prepared-data page in one request. The previous release echoed the + raw payload into a JavaScript string (`genenet_str = "<?php echo ... ?>"`), + an XSS hole on public deployments — that echo is gone. +* **Accept the GN2 field spelling** (`3616c964`): GN2's template posts + `My_Genenet` (one 'n'), while BNW historically read `My_Gennenet`. + Both spellings are accepted now. +* GN2 may also supply its own session key via `$_POST["My_key"]` and + later deep-link to `executionprogress_default.php?My_key=<key>`. + +## UX: feedback during structure learning + +* **Status page instead of a blank browser** (`1de3cbe0`): the + `execute_bn_gom.php` runner used to output nothing for the whole + run (~12 s+). It now immediately shows a status page — "Structure + learning is running. Forwarding to the network diagram when + done…" — flushed before the work starts. +* **Click-here fallback** (`1de3cbe0`): the status page links straight + to the network diagram in case the automatic forward is blocked. +* **Pipeline failures are shown, not blank** (`e18ba415`): when + `run.sh`/`run_octave` fails, the error (command, exit code, stdout, + stderr) is rendered on the status page with a link back to the + upload page, instead of an uncaught RuntimeException killing the + page mid-flight. + +## Bug fixes (PHP 8 compatibility and robustness) + +* Guard `valid_keyval()`/`valid_input()` against null input (PHP 8.1 + deprecation) (`4825da8e`); guard fopen() results before + fwrite/fprintf/fclose (`9cae7ea1`); guard arithmetic on non-numeric + file/shell values (`a1f64bda`). +* Fix undefined `$TextinFile`/`$keyval` in bn_after_upload_gom.php + (`9f820106`) and an orphaned fwrite() that crashed runtime_check.php + on PHP 8 (`55909cd3`). +* Misc fixes: missing key check (`47e8ac23`), path fix (`6254c4b4`), + variable moved to first use (`02c5eef4`). +* Shell scripts made executable (`f7d65f6a`) — the php pages invoke + them by name. + +## Build system + +* **pkgconf finds libRmath** (`ea3796d3`): `build.sh` no longer + hard-codes paths; under Guix the package passes the + rmath-standalone library path explicitly. +* **`runTerminalCommand()` wrapper** (`d1e617f3`, `a08f24c6`): a thin + proc_open wrapper (with argument escaping) replaces scattered + shell_exec/system calls and raises RuntimeExceptions on failure. + +## Vendored third-party code removed + +* **Vendored javascript libraries and prebuilt binaries removed from + the repository** (`00e5b05f`): the js libs (jquery, d3, cytoscape, + FileSaver, font-awesome, ...) come from Guix packages and are + symlinked in at package build time; the prebuilt .o/.dll/.so + binaries are recompiled from source by `build.sh`. 111 files / + ~36k lines of vendored code dropped. + +## Tests + +* `test/bnw_http_tests.py`: 26 checks covering the full user workflow + (static pages → key validation → upload → octave preparation → C + structure learning → network rendering), all six workflow.php + examples, the GN2 handshake (server-side conversion, no JS echo, + template spelling through the legacy `/sourcecodes/` action path), + and the asset downloads. +* `test/check_container_tools.sh`: verifies every unix tool BNW calls + externally exists in the container environment. + +## Internal + +* Ignore-list hygiene for build artifacts (`0a39376c`, `3c3f6c0d`). +* Test-path documentation: no hardcoded factory paths; checkout roots + and per-checkout overrides are environment variables (`4dd78e7b`). +* `make` no longer exports a local-source hook; the tests always build + the origin pinned in guix-bioinformatics (`dd8dc307`) — push to + gn-bnw main (or update the pin) before testing source changes. |
