mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 10:48:06 -05:00
v11.21
42
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
357bdc1e94 |
Fix failing regression suites
Restore protected activity placeholders in locale data, align source-based assertions with the current implementations, exclude diagnostic and runtime-only paths from parity checks, and allow the reactive browser test its observed bounded delivery time.\n\nThanks to xet7 ! |
||
|
|
e40455ca6f |
Document safe Transifex push removal
Record the removal of force-push translation helpers in the upcoming release notes, prevent target-translation pushes from returning, and classify the historical-human restoration script as an internal pull helper. Thanks to xet7 ! |
||
|
|
8122c84a48 |
Keep tests on an installed local Node
When the Dockerfile Node patch is newer than the toolchain already downloaded under .tools, select the newest installed architecture-matching Node so plain imports and Playwright Docker version discovery do not fall back or fail. Thanks to xet7 ! |
||
|
|
af1924567b |
Repair all-tests regressions
Use the suite's own Node executable for translation subprocesses, account for the placeholder repair helper and current translation totals, and activate the Table filter after the view-change reload in its browser regression test. Thanks to xet7 ! |
||
|
|
09db353b6c | Clean up tests before complete runs. | ||
|
|
c51e6938dc | Add three complete test execution modes. | ||
|
|
6ec619e438 | Bound platform resources and report runtime failures. | ||
|
|
69e9a8ba14 |
Bound full test-suite resource use.
Remove the CPU-exec regression's duplicate nested shell, limit Go package compilation during EVERYTHING, and avoid preloading unused FerretDB module graphs before conformance.\n\nThanks to xet7 ! |
||
|
|
1753280610 |
Bound test runtime memory.
Keep the larger adaptive heap for Meteor compilation, while limiting the long-lived bundle server and Node, E2E, and browser test processes to 2-4 GiB each. Allow explicit test-only overrides without weakening build capacity.\n\nThanks to xet7 ! |
||
|
|
a2ba64c0fe |
Fix regressions found by the full test run.
Thanks to xet7 ! |
||
|
|
cc3201292a |
CHANGELOG.md holds the current MONTH; earlier months move to old-CHANGELOG/.
Moving whole years out left 1.9 MB, and that was still too large, because
releases here are FREQUENT: 2026 alone is 272 releases over eight months, and
July was 80 on its own. A year is not a small enough unit when a year is that
busy. So the cut is by month:
CHANGELOG.md the current month, plus the Platforms, TODO
Later and Upcoming sections
old-CHANGELOG/<year>/<MM>.md earlier months of the current year
old-CHANGELOG/<year>.md years that are over, whole
2.5 MB becomes 822 KB. Past years stay one file each because they are already
small - 30 to 107 KB - and splitting them further would trade a size problem
nobody has for a hundred more files to navigate. A month file counts releases
per day, a year file per month; both tables are regenerated from each file's own
headings on every run, so neither can drift from the sections beneath it.
TWO BUGS FOUND WHILE DOING IT, both the same shape - a pattern that matched less
than it looked like it did, and silently absorbed what it missed into the section
above rather than failing:
* the version is MAJOR.MINOR most of the time and MAJOR.MINOR.PATCH sometimes
(v1.49.1, v6.99.5). Requiring exactly two numbers skipped 28 sections, which
were then filed under whatever month preceded them - 2018 counted 127
releases instead of 147, 2023 counted 58 instead of 66, and 2016 had no file
at all;
* the same assumption sat in the append and refresh paths, where an archive
whose first heading was a three-part version would have been re-read from the
wrong offset.
Verified against the untouched original, section by section: 1,100 release
headings before and after, none lost, none duplicated, and all 1,100 section
bodies byte-identical once whitespace is normalised.
releases/changelog-archive.mjs replaces changelog-archive-years.mjs, which only
knew about years. It takes the month to keep from the FILE rather than the
clock, so two people running it on the same day agree and a quiet month cannot
archive itself out from under the next release.
Thanks to mimZD and xet7 !
|
||
|
|
7fa8ba12ea |
CHANGELOG.md keeps the current year; older years move to old-CHANGELOG/.
CHANGELOG.md had reached 2.6 MB and 51,365 lines across 1,070 releases going back to 2015, which is slow to open and slower to read on the web. The current year stays; every older year moves out whole to old-CHANGELOG/<year>.md, with a bullet in `# Platforms` linking each one. 798 releases move, 272 stay, and the file goes from 2.6 MB to 1.9 MB - 2026 is a big year on its own, because releases here are frequent. Nothing is deleted and no entry is rewritten. An archived section reads exactly as it did before, for the same reason a released section is never edited in place: it is a record. That `git blame` is less useful on the split file is accepted rather than worked around - the history is still in git for anyone who wants it, through gitk, git-gui or `git log --follow`, and being small enough to open is worth more. releases/changelog-archive-years.mjs does it, and it is a JANUARY job: run it once when a year turns over. It is idempotent, so a stray run does nothing. Cutting by YEAR rather than by a count of releases is what makes a link into the archive stable - once a year is over, nothing in it moves again. One thing the script had to learn: eleven years of headings do not agree on their own wording. Of 1,070, 539 say "Wekan release", 524 say "WeKan ® release", and the rest are one-offs - "Sandstorm-only Wekan release", "Wekan relase", and one that explains it was NOT released. Matching the strict modern form found only half of them and silently absorbed the others into the section above, so the version and the DATE are what is matched and whatever follows is left alone. Verified by counting headings before and after: 1,070 both times, none lost and none duplicated. Thanks to mimZD and xet7 ! Fixes #6580, |
||
|
|
43341fc753 |
Releases are frequent: say so in CLAUDE.md, and make the tooling suit it.
I had been describing releases as happening "mid-work" and treating each one as an interruption to reason around. That is backwards. The maintenance loop here is build.sh option 1 (git pull + git push) and releases/release-all.sh with no arguments, several times a day when a fault is being chased. A release landing in the middle of a piece of work is not a special case; it is the normal case, and anything that only works when releases are rare is broken here. CLAUDE.md now says that where the release instructions are, with the two consequences that have actually cost a released section its accuracy: work continues immediately after a release, and a released section is a record rather than a draft. And the tooling stops making the mistake possible. release-all.sh renamed `# Upcoming WeKan ® release` to `# v<NEW> ...` and left nothing behind, so the next entry written had nowhere correct to go - it landed above the closing "Thanks to above GitHub users" line, which is now INSIDE the release just published. v10.96 and v10.97 both ended up that way; the second was worse than misplaced, because an entry already published was EDITED afterwards and the notes then described a smaller, tidier change than the one that shipped - and the one that shipped was the one that stopped the bundle starting. releases/changelog-open-next.mjs opens the next section as soon as a release is named, carrying the `**In short:**` placeholder and the binaries table that tests/changelogFormat.test.cjs requires, so the file is valid the moment release-all.sh finishes. Re-running it is a no-op, since release-all.sh can be run again after a failure. changelogFormat now allows an Upcoming that is empty AND still carries the placeholder - and fails one that has entries and still carries it, because that is a summary nobody replaced. tests/changelogEntriesBelongToTheirRelease.test.cjs is the check that the home was used: git knows which commits a release contains, so an entry linking a commit that is not an ancestor of its release is in the wrong section. Scoped to the newest three releases on purpose - over the whole file it flags 83 entries back to v2.99, from old release practices and history rewrites, and a guard reporting 83 things nobody will act on is a guard people learn to skip. Thanks to xet7 ! |
||
|
|
71ff74c6d2 |
The reachability graph must read Meteor's module.link, not only require().
v10.97 shipped a bundle that crash-looped:
Error: Cannot find module ".../nodemailer-openpgp/lib/nodemailer-openpgp.js"
at packages/email.js:347
packages/email.js does not require() that package. Meteor compiles an ESM import
to its own linker call:
module.link('nodemailer-openpgp',{openpgpEncrypt(v){openpgpEncrypt=v}},6);
and prune-unreachable-npm.mjs only ever looked for require(). So it missed every
ESM import in every Meteor package, which is most of them, and reported live
code as dead. The reachable count goes from 211 to 450 with the fix - the
measurement that entry was based on was badly wrong, not marginally.
Four forms count now: require(), module.link(), module.watch(require()) and
module.dynamicImport().
THE SAFETY WORKED, which is the one good part. With the corrected graph the
policy still named openpgp, the graph vetoed it, and the tool refused and said
so rather than deleting it. That entry is now removed outright rather than left
to be vetoed every run: the reason is what grants the permission, and this
reason - "reachable only through an optional plugin nothing requires" - was
never true. 61.3 MiB becomes 40.0 MiB, all of it typescript, @types/* and sinon.
AND THE CHECK THAT WAS MISSING BOTH TIMES. v10.96 died on a source map that had
been deleted but not un-named; v10.97 on this. Both were reasoned about by
reading the code, and reading the code is how both mistakes were made. So
releases/bundle-smoke-boot.sh starts the bundle with a database address that
cannot answer and requires it to get as far as trying to reach it - which proves
the whole server image loaded, because the database is the first thing WeKan
needs that the check does not provide. The amd64 build runs it after the trim
and the prunes, and every other architecture's bundle derives from that one.
It is verified against both real failures: a bundle with nodemailer-openpgp
removed, and a manifest naming maps that are not there. Each fails with its own
diagnosis, because the fix for each is a different one. A bundle that exits
quietly or hangs is not a pass either - a smoke test whose failure mode is
passing when it learned nothing is worth less than none.
Thanks to xet7 !
|
||
|
|
d6e21202f2 |
Prune what no require() in the server bundle can reach.
programs/server/npm/node_modules is 347 MB of an ~850 MB bundle, and measuring
its require graph says 206 MB of that is unreachable from any server entry
point. Two things cause it, neither a bug in Meteor:
* the tree is OUTSIDE the bundler's graph. Meteor 3.5 compiles through rspack
- the server output is minified and programs/server/app/app.js requires only
76 bare specifiers, because rspack inlined the app's real dependencies into
it - but this tree is what Atmosphere packages declare with Npm.depends() and
load through Npm.require(), which rspack cannot follow. The tree is largely
the INPUT to a build whose OUTPUT ships beside it;
* it is a full `npm install`, devDependencies included.
Duplication is the smaller half: 586 distinct packages exist as 815 copies, but
the redundant copies are only ~28 MB, because Meteor keeps per-package
node_modules on purpose so packages can pin conflicting versions.
releases/prune-unreachable-npm.mjs removes 61.3 MiB of it, in four categories
whose reason is PROVABLE rather than merely plausible - the standard the
uWebSockets.js removal met:
* typescript, 23.2 MiB - a devDependency of 196 packages here (the @aws-sdk
family) and a runtime dependency of none;
* openpgp + nodemailer-openpgp, 21.3 MiB - reachable only through an optional
nodemailer plugin nothing in meteor/email requires;
* @types/*, 9.6 MiB across 24 copies - verified to contain no .js at all, so
no require() can resolve into one;
* sinon, 7.2 MiB - a test framework inside meteor/ostrio_files.
The remaining 145 MB of unreachable packages STAYS. jquery, hotkeys-js and the
@azure storage adapters are almost certainly dead too, but "almost certainly" is
not the standard, and the tail of 590 packages is where a static scan is most
likely to be wrong.
Two independent safeties, because this is riskier than the uws removal was. The
reachable set is recomputed from the bundle every run and deliberately
OVER-approximated - once a package is reached, every file in it is scanned and
every require() string literal counts. The policy then only proposes; the graph
has a VETO, so an entry whose package is actually required is refused and said
out loud rather than applied. And after deleting, every path in the reachable
set must still exist or the run fails.
Verified on a real bundle: 473M -> 410M, and the reachable count is 211 before
and after - nothing that was reachable became unreachable. A second run finds
nothing left to do.
Thanks to xet7 !
|
||
|
|
14e8ca4a1e |
The Sandstorm .spk gets under 1 GiB, by dropping what a grain cannot run.
v10.93, v10.94 and v10.95 all failed to pack with *App exceeds uncompressed size
limit of 1 GiB*. v10.95 was the first run whose size report worked, and it named
the gigabyte: `.meteor-spk/bundle` 852M plus `.meteor-spk/deps` 336M, so 1188M
against a 1024M ceiling. It also answered the question that report was written
to ask — a second `meteor-spk pack` REUSES the bundle rather than rebuilding it,
because the pruned tree stayed pruned across the retry (852M to 833M). So
trimming between the two attempts works; 19M was simply never going to close a
165M gap.
Measuring the bundle rather than guessing at it turned up two passengers that
are large, unreachable at runtime, and safe to drop:
* uWebSockets.js ships TWENTY prebuilt binaries — linux/macOS/Windows times
x64/arm64 times four Node ABIs, 121M — and its loader is one line:
`require('./uws_' + process.platform + '_' + process.arch + '_' +
process.versions.modules + '.node')`. A grain is one platform running one
Node; the other sixteen files can never be opened by it. Keeping every ABI
of the target platform+arch, so a Node major bump still finds its binary,
still frees ~93M.
* Source maps — 4766 files, 188M, over a fifth of the bundle. They exist for
a debugger attached to the process. A packed app has none, and a missing
.map degrades a stack trace at worst.
releases/bundle-trim.mjs does both, measured at 281 MiB on a real bundle, and
the Sandstorm leg runs it beside the existing prune before the retry pack:
1188M becomes ~888M, with 136M of headroom.
An architecture with NO uWebSockets.js prebuild at all — ppc64le, s390x,
riscv64, where ddp-server falls back to sockjs — is left completely alone, since
deleting the other platforms' files there would free nothing that matters and
could only break the fallback. tests/bundleTrim.test.cjs pins that, the four
kept ABIs, that a directory merely ending in `.map` is not a source map, and
that the trim runs before the retry pack rather than after it.
Thanks to xet7 !
|
||
|
|
ac02941663 |
v10.92 could not start bash: the release notes outgrew an environment variable.
The release job failed before running a line of its script:
##[error]An error occurred trying to start process /usr/bin/bash with
working directory /home/runner/work/wekan/wekan. Argument list too long
Nothing in the step was wrong. The notes are the whole newest CHANGELOG
section - prepare measured them at 172,458 characters - and they reached
the step as env: CHANGELOG. Linux caps a SINGLE argv/envp string at
MAX_ARG_STRLEN, 128 KiB, so execve refused to start the shell at all. Both
bundles had built and verified; the release, and every job that needs it -
snap, docker, AppImage, the Windows and macOS bundles - never happened.
The environment was itself the fix for the previous failure: interpolated
inline as ${{ }} the notes become part of the shell SOURCE, so a backtick
in any `code` span runs as a command, which is how v10.59 published nothing
and printed "Incorrect: command not found". One shape is unsafe, the other
does not scale, and this release was big enough to find the second wall.
So the notes stop being a shell value at all. releases/release-notes.sh
prints the CHANGELOG section for a version, reading the file itself and
taking its arguments from the environment inside a QUOTED heredoc; the jobs
append its stdout to release-notes.md. Only file paths are passed around,
which has no size limit and leaves the text as data no shell ever parses.
prepare keeps the validation - a missing section is still cheap to fix
there - but no longer publishes the text as a job output, because an output
nobody can safely consume is a trap for the next person. The release job
and the notes-rewrite job check out ref: main, the same ref prepare read.
The guard test is rewritten around the new shape: no changelog job output,
no CHANGELOG in an env:, no interpolation into a script, and the extraction
script is what all three consumers run. It kept passing through this
failure, because it only knew about the injection.
Thanks to xet7 !
|
||
|
|
f225b3245d |
Korean is Korean again: 354 values that were Japanese.
The scan for the TODO Later backlog turned up something worse than any missing string, and this is the first of the four files it found. `ko.i18n.json` held 354 values in Japanese kana - `board` was ボード, every activity line was Japanese - beside 2,000 that were correct Korean. Mixed, so no whole-file revert could have told them apart. That is worse than English. An untranslated string shows English, the reader sees it is unfinished, a speaker fixes it, and `--missing` counts it. A value in the wrong language shows confident text the reader may not be able to read, nothing counts it, and the merge rules protect it forever because it is not equal to the English source. It would have survived every pull and every fill. All 354 are Korean now, written from the English source and the file's own correct vocabulary so the new lines use the same words for board, list, card and swimlane that the rest of the file already used. `--count ko` is 0. releases/translations/wrong-script.mjs is the tool: --count says how many values each language carries in a script that is not its own, --list dumps those keys with their English source, and --apply writes translations back. It overwrites, which fill-translations.mjs deliberately never does - filling only ever touches English placeholders - and that is exactly why it is a separate tool: replacing a wrong-language value is the one case where overwriting a non-English value is right, and --apply refuses any key the scan did not flag. The shared Indic danda is not counted as evidence of Devanagari, and Korean hanja is not counted as evidence of Chinese, so neither shows up as a false positive. Still to do, recorded in TODO Later: ta 1,637, hi 1,204, ka 789. The README said WeKan is translated to 154 languages. It has been 234 for a while - 142 of them essentially complete - and the number is checked against the data files now rather than remembered, so it cannot drift again. Thanks to xet7 ! |
||
|
|
9ee8deae3a |
Conformance cases for $meta, and a test run that stops the databases it started.
Two things. $META HAS CONFORMANCE CASES NOW. The catalogue gained $slice and $elemMatch when they were implemented; $meta went in afterwards and had none, so the one part of the projection work that a live database could check was the part nothing checked. Two cases, compared differently on purpose: projection/$meta recordId COMPARE.SHAPE projection/$meta textScore full value comparison recordId is the STORAGE identity of a document, so its value is each backend's own and comparing values would report a difference that is not one. What has to agree is that every backend ANSWERS, and answers with the same shape - a number on every row - which is what SHAPE checks. Before the fix they all errored, so that is exactly the regression worth guarding. textScore is computed by the handler ABOVE the backends, from the document's own strings, so every backend must produce the same number and the values are compared in full. It is also the only case that exercises $text: only `alpha` (_id 1) carries the term, and carries it once. Sorted by _id so the comparison does not depend on the order a backend returns rows in. A TEST RUN STOPS ITS DATABASES ON EVERY WAY OUT. build.sh stopped the test server and the mongod at the END of the run - reached when the run finishes, and not reached when it is interrupted or when one of the early failures returns. Then the mongod on :3001 and the bundle server on :3000 outlive the run. That is not untidy so much as expensive, and the cost lands on the NEXT run. The harness reuses a database only when it ANSWERS - a port held by something else moves it aside - so a leftover mongod IS reused, holding a database this run never seeded, and the failures land somewhere else entirely. So the stopping is a shell function called from a trap on EXIT INT TERM, and the normal path calls the same function. It is idempotent - each half clears its PID - so the trap firing afterwards stops nothing twice, and a database this run did NOT start is still left alone, because its PID was never recorded. Conformance containers go with it: that stage names each engine's container wekan-conformance-db-<timestamp> and removes it when the engine is done, but an interrupted run leaves the one it was on, and a container still holding 5432 or 3306 fails the next run's engine before it starts. cmd has no trap, so build.bat does the same clearing on the way IN as well as on the way out: one :stop_test_databases label, called at the start and the end of both all-tests flows. Starting from a clean slate is the batch answer to a trap it cannot have. The two copies of the stopping that were already there are now that one label, so they cannot drift. tests/buildScriptParity.test.cjs pins both: the trap and the idempotence in build.sh, the four calls in build.bat, and that both stop the same two servers and the conformance containers. Thanks to xet7 ! |
||
|
|
2b30439ced |
push-all-translations pushed 146 of 245 languages, and said nothing about it.
`tx push -t` uploads translations for the languages the PROJECT has as targets. A language that exists only here - every language added to imports/i18n/data/ since the project was last reconciled - is not a target there, so the CLI skips its file without a word. WeKan ships 245 translated languages; the project had 146, so ninety-nine were pushed nowhere and the run looked like it had worked. Pushing harder cannot fix that: the language has to exist on the project first. So the script reconciles before it pushes. sync-transifex-languages.mjs enumerates the language files, resolves each to the code Transifex knows it by (reversing .tx/config's lang_map, so `ar-DZ.i18n.json` is asked for as `ar_DZ`), reads the project's current target languages over the API - following pagination, since a project with hundreds of languages does not answer in one page - and adds the missing ones. English is the source, not a target, so it is left out: 245, not 246. They are added ONE AT A TIME on purpose. Transifex refuses a language code it does not know, and in a batch that one refusal takes the whole batch with it. A code WeKan invented should cost only itself and should be NAMED, so it can be mapped in lang_map the way `vec: ve-CC` and `vls: vl-SS` already are. The count is printed at both ends of the run, so "146 of 245" would be visible rather than something noticed months later when a language is still English on Transifex. --dry-run says what it would add and changes nothing; --list prints the codes and needs neither a token nor the network, so the enumeration can be checked offline. The token comes from TX_TOKEN or ~/.transifexrc, the file the tx CLI itself writes; without one the reconcile fails loudly and the push stops, because pushing anyway is exactly the silent partial push this fixes. --skip-sync is there for a push known to add no language. Checked here: the enumeration returns 245 with lang_map reversed correctly, and the API paths were exercised against a stub server - pagination followed across two pages, --dry-run posting nothing, and the live run adding each missing language and skipping the two the project already had. One thing the enumeration turned up: lang_map still carries `es_TX: es-TX`, for which there is no file. It is left alone here - it is a config question, not a push bug - but it is why the map has 63 entries and only 62 are used. Thanks to xet7 ! |
||
|
|
456dfb93e4 | CHANGELOG: the fifteen further languages go under Upcoming. | ||
|
|
b4499b0ddc |
Docker: wait for the database behind a page, not behind a closed port.
"We upgraded to 10.91 ... Gateway timeout appears" - from the same reporter as #6592, whose fix shipped in 10.91 and could not reach them: that fix is the snap's, and this is a container. WeKan does not open its web port until the database answers, and in a container nothing else was listening while it waited, so a reverse proxy in front returned a gateway timeout. That is the same symptom for two completely different faults: WeKan is broken, or the database has simply not come up yet. The entrypoint now asks whether the database answers - one ping, with the driver already in the bundle (releases/ferretdb/db-ready.mjs) - and while it does not, it serves the bridge page the recovery case already uses, taught a second reason: "WeKan is waiting for its database", with where to look, as a 503 that refreshes itself. What is bounded is the PAGE, not the wait. A database can take minutes to come up after an update and giving up on it would be worse than waiting, so when the window ends the page stops, WeKan starts, and WeKan keeps waiting exactly as it did before. WEKAN_DB_WAIT_PAGE=false turns it off; WEKAN_DB_WAIT_MAX_SECONDS sets the window. The page is killed and reaped before WeKan binds the port, because two servers cannot hold one. tests/dockerWaitsBehindPage.test.cjs pins that, the probe writing nothing, and that the recovery reason still says recovery. Thanks to Alishara and xet7 ! Fixes #6595, |
||
|
|
6157094ab8 |
Stop shipping npm and node-gyp, and raise the bundle's own npm packages.
A container scan of ghcr.io/wekan/wekan:v10.91 reported 80 findings against "Node.js", three of them CRITICAL, and not one of them was in code WeKan runs. Three CRITICAL and most of the HIGH findings were three copies of one package - tar 6.2.1 twice, tar 7.5.11 once - carried by two BUILD tools left in the finished image: - node-gyp and @mapbox/node-pre-gyp are meteor-dev-bundle dependencies that compile native modules during the npm install in programs/server. WeKan compiles nothing at run time; uWebSockets.js, bcrypt and argon2 all ship prebuilt .node files that node-gyp-build picks at require time. Their tree is 83 of the 120 packages that install leaves behind, and it brought tar 6.2.1 (node-gyp, cacache), brace-expansion, minimatch and npm's networking stack with it. - npm itself runs exactly once, for that install. The container starts bash /build/wekan-entrypoint.sh and never calls it, so its bundled tar 7.5.11, sigstore 4.1.0, @sigstore/*, ip-address 10.1.0 and brace-expansion 5.0.4 were image content no code path could reach. releases/prune-build-only-modules.mjs removes the first. It is a REACHABILITY walk, not a list of 83 names - start from every dependency of programs/server/package.json except those two, follow each package's own dependencies, keep the closure - so it does not go stale when Meteor changes its dev-bundle. The Dockerfile removes npm and npx in cleanup; node stays. Verified by booting the pruned bundle: identical failure at the database, no missing module. The rest of the report was the npm packages Meteor's own packages bundle - nodemailer 8.0.3, openpgp 5.11.1, svgo 2.8.2, postcss 8.5.1, nanoid 3.3.15, qs 6.13.0, cookie 0.4.1, on-headers 1.0.2, tmp 0.2.3, lodash 4.17.21, diff 3.5.0, body-parser 1.20.3, @babel/runtime 7.20.7, underscore 1.13.7. Npm.depends names an exact version and meteor build copies it into programs/server/npm/node_modules/meteor/<package>/node_modules, where no package.json or overrides entry here is consulted - so the bundle is the only place they can be raised. releases/bump-bundle-npm-deps.mjs does that from the minimums in releases/bundle-npm-security-bumps.json, with --ignore-scripts so no prebuilt native is rebuilt, replacing only copies below the minimum. A minimum stays inside the major the package was built against, and that was learned rather than assumed: uuid's lowest fixed release, 11.1.1, moved its entry point to dist/cjs/index.js and the bundle - which recorded dist/index.js at build time - died on boot with "Cannot find module .../uuid/dist/index.js". It is in notFixable with that error, beside lodash.template, which has no fixed release at all. Both run in every place a bundle is made: the amd64 build, the arm64 container, three Windows legs, two macOS legs, install-node-for-arch.sh for the emulated arches, and the Dockerfile - each reinstalls programs/server, which is also why each bumps again (meteor-dev-bundle pins underscore 1.13.7, CVE-2026-27601, over the bumped copy). tests/imageBuildOnlyModules.test.cjs and tests/bundleNpmSecurityBumps.test.cjs pin both, and buildScriptParity's skip list records why these two scripts are not menu entries. The debian 13.6 target's 176 findings are all "Fixed in: -" and no upgrade closes them; the build/<tool> and build/ferretdb targets are fixed in wekan/mongo-tools-patches and wekan/FerretDB. Thanks to xet7 ! |
||
|
|
a6edf86bc3 |
Install packages through a script that survives a mirror mid-republish.
The bump job of the same afternoon died on a repository the release does not use: E: Failed to fetch https://dl.google.com/linux/chrome-stable/deb/dists/stable/main/binary-amd64/Packages.gz Hash Sum mismatch E: Some index files failed to download. Error: Process completed with exit code 100. It was installing python3 and curl. A GitHub runner ships with google-chrome, microsoft-prod, azure-cli and docker repositories configured, and apt-get update fails as a whole when any one of them serves an index that does not match its own hashes. releases/apt-install.sh retries the update, clearing the cached lists first, because a Hash Sum mismatch is a cached index disagreeing with the server and re-reading it reports the same thing. If it still fails, it moves the third-party lists aside and updates from the distribution archive alone - where every package a release job installs comes from. Both steps say so in the log, and a mirror that never comes back still fails the job, naming the mirror. Every apt-get update + install pair in release-all.yml, release-all-missing.yml, sandstorm.yml, sandstorm-store.yml, meteor-spk.yml, Flatpak.yml and the emulated build container goes through it. tests/releaseAptInstall.test.cjs drives it with a fake apt-get that mismatches on demand and a fake sudo that records rather than runs. cpuExecWiring's qemu-user-static guard now looks for the package wherever it is asked for, not only after a literal apt-get install. Thanks to xet7 ! |
||
|
|
e771f8c661 |
Wait out a 503, and keep telling it apart from a 404.
github.com spent the afternoon returning 503, and it took a second release run an hour after the first - this time in build-amd64, downloading the FerretDB binary: curl: (22) The requested URL returned error: 503 Warning: Problem : HTTP error. Will retry in 10 seconds. 5 retries left. ... curl: (56) Connection died, tried 5 times before giving up nodejs.org was fine in the same step, seconds earlier: the bundled Node.js downloaded and verified. --retry 5 --retry-delay 10 is fifty seconds. releases/fetch.sh downloads a file in a release now. 5xx, 429, 408 and the connection errors are retried on a backoff of about fifteen minutes, and every download in release-all.yml, release-all-missing.yml, embed-verified-node.sh, install-node-for-arch.sh and resolve-node-source.sh goes through it. The Dockerfile copies it in beside resolve-node-source.sh, which asks it which Node.js builds exist, and its two bare wgets get the same --retry-on-http-error as the others. A 404 is not an outage, and that is the half a longer --retry cannot do. The preflight that skips an architecture with no Node.js build yet, the MongoDB tools not built for every platform, the .sha256sum a source may not publish: those fail at once, and quietly with --optional. An existence check has three answers - present, absent, and the server would not say. The third used to be the second, which is how a 503 could drop a platform from the Docker image or skip an architecture whose binary was published all along. check-arch-binaries.sh, require-binaries.sh and the docker job's platform list now stop and say to re-run instead. tests/releaseDownloads.test.cjs runs it against a local server that 503s, 404s and 429s on demand, and reads the workflows for a download that still goes straight to curl. Thanks to xet7 ! |
||
|
|
644e61f6a3 |
Retry the release's npm installs when the far end 5xxes.
The v10.86 run failed in build-amd64 with npm error code E503 npm error 503 Service Unavailable - GET https://github.com/meteor/node-source-map-support/tarball/81bce1f9... github.com was 503ing for a few minutes. npm's own fetch-retries is two quick attempts and does not cover a git tarball fetch at all, so the install gave up; every other Linux bundle is repacked from the amd64 one, so the whole release - eleven architectures, the Docker images, the snap - was skipped and had to be started again by hand. Every curl in that workflow has carried --retry 5 for years; the npm installs carried nothing. releases/npm-retry.sh runs an npm command with backoff (15s, 30s, 60s, 120s, five attempts) and every npm install, npm pack and meteor npm install in release-all.yml now goes through it, including the two inside docker run, which get releases/ mounted the way the arch builds already do. Release All Missing repacks through the same container script and inherits it. A real npm error is NOT retried: ERESOLVE, a 404 for a package that does not exist, a gyp compile error fail on the first attempt saying they are not a network reason, because five attempts at an emulated arm64 install that was never going to work is half an hour spent to print the same message. Only 5xx, 429 and the socket errors count as transient. The Meteor installer is downloaded and then run instead of curl | sh, which cannot be retried once sh is half way through the script. tests/npmRetry.test.cjs pins both halves against a fake npm and reads the workflow for a bare npm install. Thanks to xet7 ! |
||
|
|
6dce9dda79 |
Release notes and snap logs: report what really happened.
Four things the v10.77 run got wrong, all of them silent - nothing
errored, the reports were simply not what they claimed to be.
THREE GOOD SNAPS WERE REPORTED AS FAILED. s390x, ppc64el and riscv64
each printed "Remote build <arch> succeeded on attempt 1" and downloaded
their .snap, and each job then ended FAILED - because the step that
SAVES the build log could not upload it:
The path for one of the files in artifact is not valid:
/snapcraft-wekan-f82a93c2…_s390x_2026-08-09T11:39:05.txt.
Contains the following character: Colon :
snapcraft names a remote-build log after the recipe and an ISO
timestamp, and upload-artifact refuses a colon because NTFS cannot hold
one. The colons become dashes now, so the timestamp is kept rather than
the name thrown away - and the upload is continue-on-error, because a
DIAGNOSTIC upload must never be able to fail the build it is diagnosing.
The snap is the deliverable; the renaming is not the last thing that
could ever make a log file unuploadable.
EVERY ROW OF THE PROVENANCE TABLE APPEARED TWICE. provenance-table.sh
globbed `provenance/**/*.tsv provenance/*.tsv`, and with globstar `**/`
matches ZERO or more directories, so the first pattern already covered
the second and every file was read twice. It is one pattern now, and
rows are also deduplicated on the WHOLE line - a retried step or a job
that ran again records an identical line, and nothing tells the copies
apart. Deliberately not `sort -u -k1,1 -k2,2`: two rows sharing a bundle
and a binary but differing elsewhere are not a duplicate, they are a
real disagreement about which Node.js went into a bundle, and hiding one
at random is worse than showing both.
AMD64 WAS MISSING FROM THAT TABLE - the platform most people download.
Its step runs `cd .build` before `mkdir -p provenance`, so the rows went
to .build/provenance while upload-artifact looked at provenance/ from
the workspace root and found nothing: "No files were found with the
provided path: provenance/". Every other build job records from the
workspace root, which is why only this one was affected. It uses
$GITHUB_WORKSPACE now.
SIX PLATFORMS SAID VERSION "LATEST". amd64, arm64, win64, win32,
mac-arm64 and mac-x64 passed the literal string; only the
extra-architecture job asked which version `latest` actually was, and it
did so with its own inline curl+python. "Which FerretDB did v10.77 ship"
is the one question that column exists to answer. All seven sites now
call the new releases/ferretdb-latest-tag.sh, which asks once per job
and caches, authenticates when there is a token so a shared 60/hour
limit is not what makes it fail, checks that the answer is shaped like a
tag before printing it into a markdown cell, and prints NOTHING and
exits 0 when it cannot find out - the caller's ${FERRET_TAG:-latest} is
then exactly what it had before. A release note must never fail a build
that produced a good bundle.
The table's own prose linked [wekan/node](https://github.com/wekan/node);
the binaries come from wekan/node-patches, which is what the rows
themselves already linked.
New test tests/provenanceTable.test.cjs, 20 checks, most of them running
the scripts rather than reading them. Verified in both directions: with
the doubled glob restored the glob guard fails, with amd64's relative
path restored its guard fails, and with the literal 'latest' restored
its guard fails.
Thanks to xet7 !
|
||
|
|
114d6c0599 |
Build script parity: git pull and git push, on Windows too.
The one red suite in the test run, and it was right twice over. `Setup: "git pull" and "git push" that finish the job` added two entries to build.sh's menu and left build.bat behind, so `build.bat git-pull` answered nothing. It answers to both names now, with its own :gitpull/:gitpush labels - the ones its interactive menu already used. The guard also had to learn what a `!` entry is. It marks something build.sh runs ITSELF rather than by executing a file in releases/. Most are raw commands and the .bat runs those the same way, so those still compare as before; the exception is an entry naming a build.sh FUNCTION, which is shell the .bat has no way to call. Comparing those as scripts is what made this suite fail the moment "Update git" was replaced. A function entry is now exempt from the script comparison and checked separately: build.bat must implement a label of the same name, so one dropping out of a menu still fails. The node suites are 339 run, 0 failed for the first time in this branch. Thanks to xet7 ! |
||
|
|
8c2565e996 |
releases/: delete two superseded scripts, and two exemptions that outlived them.
An audit of releases/ against who actually calls each script. It holds 89 of
them, and they divide cleanly:
20 invoked by .github/workflows - CI checks out the repo and runs the FILE, so
these cannot move anywhere;
65 reachable from the build.sh / build.bat Releases menu, which is what the
menu is for;
1 sourced by another script (ensure-tools.sh);
3 referenced by nothing that runs.
Of those last three, wekan-entrypoint.sh is the Docker image's entrypoint - named
by the Dockerfile, not by a caller in this repo - so it stays.
old-build-bundle-arm64.sh and translations/old-pull-translations.sh are the other
two, and both were already recorded as superseded, by build-bundle-arm64.sh and
pull-translations.sh. Nothing referenced them but the exemption list that excused
them from being menu entries. They are deleted, and their exemptions with them.
Two more exemption notes were wrong rather than stale-adjacent:
fix-changelog-hashes.sh said "Setup -> Update git runs it", an option that no
longer exists - it is Setup -> git pull and git push now, both of which run it -
and resolve-fork-node-tag.sh excused a file that is not in the tree at all. An
exemption naming a missing script is an exemption nobody can check.
Checked after: every remaining releases/ script is either a menu entry or exempt
with a reason, and no exemption names a file that does not exist.
Thanks to xet7 !
|
||
|
|
b55cbda20d |
build.sh: Tests -> EVERYTHING runs again instead of quitting the script.
Renaming the menu entry broke it. choose() shows the SHORT labels and sets $opt
to the FULL DESCRIPTION of the one picked, and the dispatcher hundreds of lines
below matches that description as a case arm - so the description is an
identifier written twice, and the rename in the previous commit changed only one
of them. With no arm matching and no catch-all, the case fell through, the
`for _once` loop ended and the script EXITED: choosing Tests -> 1 printed nothing
and ran nothing.
The arm now carries the same string as the menu entry, so EVERYTHING runs its
four stages again. Two guards so it cannot come back:
* tests/buildScriptParity.test.cjs checks every one of the 25 choose() entries
against the case arms, and fails on a description that matches none. It fails
on the previous commit's build.sh.
* the dispatcher has a *) arm that says which option has no handler and that
nothing was run, so if one ever does get past the test, the person in front
of the menu is told rather than dropped back to the shell.
build.bat was checked for the same thing and cannot fail this way: its menus
dispatch on the NUMBER typed, not on a sentence, and its EVERYTHING hands the run
to releases/run-everything.sh rather than reimplementing it. Verified anyway,
both directions: every printed menu number has an if-dispatch in all seven menus,
and every goto/call target resolves to a label. That is now pinned too.
Thanks to xet7 !
|
||
|
|
c6b0af16eb |
Card drag no longer resizes every list, and EVERYTHING runs every check.
#6573: picking up a card made every list on the board expand horizontally to fill the window, and dropping it snapped them back, which makes landing a card in the intended list a guess. Two correct changes met. A list's custom width is an inline --list-width custom property, and what turns it into a width is a rule in list.css whose selector needs an ancestor: .js-swimlane, .dragscroll, or a swimlane-<id> id. In lists view the container is .swimlane.list-group.js-lists.dragscroll - no js-swimlane class, no such id - so .dragscroll was the only one of the three that matched, and every list's width there hung on that one class. #6558 then taught a card drag to stop the board panning under the same pointer, and it does that by REMOVING the dragscroll class for the duration of the drag. So the drag deleted the class the width rule matched on: flex: none and the width declarations switched off and the lists re-flowed, for exactly as long as the drag lasted. It also explains the workaround in the report - dragging one list's edge first sets that list's width through the resize path, so that column stopped jumping while the others did not. A layout rule may not hang on a class that an interaction removes. .js-lists is on the container in both views and nothing takes it off, so the width rules, their mobile-mode counterpart and the resize rules name it now. tests/listWidthDuringDrag.test.cjs pins that every width rule still matches in lists view with dragscroll gone - it fails on the previous CSS - and pins the premise that suspending the pan really does remove that class. build.sh -> Tests -> EVERYTHING is what a release is tested with, so a check that is in the Tests menu and in no whole-run is a check that runs when somebody remembers it. The floating-promises guard was that: menu entry 12, in no run. It is the first of four stages now - seconds, so an unawaited permission check is reported before an hour of browsers - and its return code is in the verdict like the others. What runs there is checks only: the menu entry may install ripgrep and the @typescript-eslint packages and write the rule into .eslintrc.json, which is a person setting the guard up, while EVERYTHING runs unattended and must modify nothing - a run that rewrites .eslintrc.json is no longer testing the commit it started from. The two checks are one shared function using grep rather than ripgrep, so they also work where nothing may be installed. build.bat ran the three browsers as one Playwright invocation into one wekan-alltests-browsers.log, where neither "which browser failed" nor "what did WebKit print" was answerable afterwards, and CLAUDE.md's "check the newest test logs" names the per-browser files. It starts chromium, firefox and webkit as three jobs with a log, a status and a summary row each now, with a per-browser --output because Playwright clears its output directory at startup. EVERYTHING is not reimplemented there: Windows hands the run to releases/run-everything.sh, which calls build.sh --run-everything, so the new stage arrives on both platforms at once. The parity guard pins all of it, including that the shared checks install nothing. Verified without node or meteor, which this sandbox has neither of: the extracted checks were run for real against the tree (clean) and against fixtures with an unawaited auth call, a missing rule and no .eslintrc.json at all (all three fail as they should); the new and changed guards were ported assertion-for-assertion to Python and run against the same files, including that the #6573 guard fails on the pre-fix CSS; build.sh passes bash -n and every build.bat call now resolves to a label. Thanks to yulqen and xet7 ! Fixes #6573, |
||
|
|
b9eff391b9 |
Take Node.js from official, then unofficial, then wekan/node-patches.
WeKan's bundle .zip, Docker image and snap now resolve their Node.js from three sources in order - https://nodejs.org/dist/ , then https://unofficial-builds.nodejs.org/download/release/ , then the wekan/node-patches releases - instead of only from the retired wekan/node fork. A platform none of the three publishes a Node.js for is NOT BUILT that release rather than failing it, and returns by itself on the first run after one appears. Sandstorm is amd64 only and untouched. releases/resolve-node-source.sh is the one place that order and the platform-name mapping live; the bundle jobs, the extra-architecture preflight and the Dockerfile all ask it, so the image and the .zip of one CPU cannot be built on Node.js from different places. The snap takes its node out of the bundle, so it follows without a change of its own. Thanks to xet7 ! |
||
|
|
59e54e384a |
win32/mac-x64: resolve the fork version, and cross-build ia32 native modules against the fork's node.lib.
The win32 and mac-x64 preflights checked .../releases/download/${NODE_VERSION}/…
with NODE_VERSION=24 (the bare MAJOR), which 404s - the fork tags by full version
(v24.19.0) - so both jobs ALWAYS skipped. They now resolve the newest v24.x fork
tag carrying the asset via a shared helper, releases/resolve-fork-node-tag.sh
(authenticated with the workflow GITHUB_TOKEN, so the GitHub API is not
rate-limited); the win32 preflight hands the resolved node_full to the rebuild.
And the win32 native-module rebuild is completed. npm_config_arch=ia32 alone was
not enough: an ia32 addon must LINK against an ia32 node.lib, and nodejs.org
dropped 32-bit Windows in Node 23, so node-gyp cannot fetch win-x86/node.lib. The
rebuild now assembles a nodedir node-gyp CAN use - node headers (arch-independent,
from nodejs.org) plus the fork's own node-win32.lib (now published beside
node-win32.exe) at the two paths node-gyp looks in - and points node-gyp at it
with npm_config_nodedir, so bcrypt cross-builds to ia32 against the fork's Node.
(The inline python that resolved the tag broke YAML - a multi-line heredoc cannot
be indented into a `run: |` block - which is why it is a helper script, reused by
both preflights and mirroring embed-verified-node.sh / check-arch-binaries.sh.)
Thanks to xet7 !
|
||
|
|
e802d52eed |
Ship a named, checksummed Node.js and FerretDB in every native bundle.
The four native bundles (amd64, arm64, win64, mac-arm64) shipped Node.js with `cp $(command -v node)` - the runner's node. It has no published checksum, so the release provenance table could only say "no checksum published" and nobody could tell WHICH Node.js build a platform carried - the exact thing needed when a Node.js CVE lands. Worse, build-arm64 has no setup-node, so ubuntu-24.04-arm's DEFAULT Node 22 went into the arm64 bundle instead of the pinned Node 24, silently. Each native bundle now downloads the pinned Node.js for its OS+CPU from nodejs.org and verifies it against SHASUMS256.txt (releases/embed-verified-node.sh), and verifies FerretDB against the .sha256sum wekan/FerretDB now publishes beside every binary. Provenance records nodejs.org + the exact version + the verified SHA256; win64 and mac-arm64 now upload provenance too, so every platform is traceable. The emulated arches already did this via install-node-for-arch.sh. tests/releaseNodeVerified.test.cjs pins that no native bundle goes back to the runner's node or an unverified download. Thanks to xet7 ! |
||
|
|
d62c4f3766 |
Add release-all-missing.yml: finish a release without remaking it.
release-all.yml is one run that bumps the version, tags, builds every
platform, and publishes Docker images, snaps, the website and the charts. It
is the right thing for MAKING a release and the wrong thing for FINISHING
one. When the v10.57 run ended with all six extra architectures missing -
four on a shell-quoting bug, two on a base image that is not built for their
CPU - there was no way to get those six except to run the whole thing again,
version bump and all.
This finishes a release that already exists. It never bumps a version, never
tags, and never touches Docker, snap, the website or the charts.
What makes it possible: only build-amd64 runs Meteor. Every other bundle
WeKan ships is that same bundle with its native modules rebuilt, its Node.js
swapped and its database binaries replaced. So this downloads the PUBLISHED
wekan-<v>-amd64.zip - verifying its checksum, since it is the bundle every
other architecture is cut from - and repacks it with
releases/repack-bundle-for-arch.sh, the same script release-all.yml's
build-extra-arches runs. A bundle added to a release months later is
therefore built exactly like the ones already on it.
It builds the six extra architectures and calls AppImage.yml and
Flatpak.yml, which are reusable workflows now and take the same `only`
filter.
It does NOT claim to build everything, and says which: amd64 is the Meteor
build, arm64/win64/mac-arm64 each need their own kind of runner and their own
steps, and the Sandstorm .spk is signed. When one of those is missing the run
names it and points at release-all.yml, as a warning rather than a failure.
What a complete release looks like is releases/expected-assets.sh, in one
place, with the kind of each asset saying which build makes it. Present means
the .sha256sum is there too - a bundle whose checksum upload failed is
half-published - except the .spk, which is signed rather than checksummed.
Verified against the real v10.57 release: every one of its five assets
matches a name this predicts, with nothing left unaccounted for. Three
states, through the plan's own logic:
v10.57 as published 6 extra + 4 AppImage/Flatpak to build; amd64, arm64,
win64 and mac-arm64 reported as needing
release-all.yml (they predate the checksums, which is
noted in the script)
only the 6 extra extra=[all six], appimage=[], flatpak=[], nothing
arches missing manual - the case this exists for
complete release everything empty, nothing built
Thanks to xet7 !
|
||
|
|
78b2f9ebcd |
Admin Panel reports: subscribe again once the login lands.
Opening a report BY ITS ADDRESS - /admin/problems/files typed, bookmarked or refreshed - drew the column headers, "No results" and a "1 / 1" pager over data that was plainly there. Reached by clicking the menu entry it worked, so this only ever happened to the URL. A full page load resumes the login from localStorage ASYNCHRONOUSLY, and the route sets `problemsOpenPane` before that lands. The subscription was therefore made with no user; the publication's isAdmin check answered `this.ready()` with no rows; and nothing re-subscribed, because the autorun that opens the pane did not depend on the user. The count METHOD, called later from the same page, happily reported five - which is what made this look like a publication bug rather than a timing one. The autorun depends on Meteor.userId() now. openReportPane() returns early when the pane is already open, so re-running it after the login would do nothing at all - hence the second branch, which re-subscribes the report that is already open now that there is a user to subscribe as. Found by the e2e test's own diagnosis, added in the previous run for exactly this purpose: "attachments in minimongo: 0; report_pages index: no report-files index doc" - neither half arrived, which of the three possibilities it lists is the one meaning the publication returned early or never ran. ALSO, a release-build bug of my own from earlier today: build-extra-arches had no actions/checkout. It calls releases/check-arch-binaries.sh and releases/record-provenance.sh and mounts $(pwd)/releases into the container - none of which exist without one, so every one of the six extra architectures would have stopped at "No such file or directory". The checkout goes before the artifact download, because actions/checkout cleans the workspace and would remove the bundle. And releases/repack-bundle-for-arch.sh: the amd64 bundle turned into one architecture's zip, lifted out of that job so it is one script rather than one job's inline steps. Only build-amd64 runs Meteor; arm64, win64, mac-arm64 and the six extra architectures are all this same bundle with its native modules rebuilt, its Node.js swapped and its database binaries replaced. That is what lets a release be completed one architecture at a time without rebuilding the rest, and it had better be the same script or a bundle added later would differ from the ones beside it. Thanks to xet7 ! |
||
|
|
cea2ff6f7d |
Drop standard-minifier-js: rspack already minifies, and Meteor was doing it again
Two builds died in the same place - after both rspack compiles report done, in
the phase where Meteor writes the production bundle - the second with twice the
heap of the first:
=> Compiled Rspack client app: done
=> Compiled Rspack server app: done
<--- Last few GCs ---> 8146 MB of 8192, then 15526 MB of 15542
So it was not a ceiling set too low. rspack is the bundler here and it minifies
for production itself - the asset-size warnings a build prints are about
rspack's own minified output, 4.797 MiB of client-rspack.js and its chunks.
standard-minifier-js then ran Meteor's minifier plugin over that same output a
second time, in exactly the phase that runs out of memory.
.meteor/packages says so in a comment rather than leaving the removal to look
like an accident, including what to check first if this turns out to be wrong: a
bundle that is broken rather than merely unminified twice means put it back.
The stale pin is dropped from .meteor/versions so the two files agree;
minifier-js stays, because it is a library other packages depend on rather than
the plugin that was running.
Four guards failed on this and on the last few commits, and all four were
pinning something that deliberately changed. Each keeps its assertion and gains
the reason:
changelogFormat - three Upcoming summaries of mine had no commit link,
which every summary in a release must have, and the
section was not grouped by area. That one was a real
defect in the CHANGELOG, not in the guard: the entries
are linked and grouped now, under "The extra-
architecture bundles", "Which Node.js a bundle carries"
and "Running the tests locally".
buildScriptParity - looked for `rm -rf .build` in the first 400 characters
of build_wekan. That window was an accident of how long
the comment above it happened to be, and it broke when
build_wekan gained an explanation of where its log
goes. It searches the whole function. It also needed
the five release-workflow helpers exempted from "every
script is a menu entry": they are called by a build job
with its matrix and environment, and would have nothing
to do on a developer's machine.
cpuExecWiring - looked for the qemu handling inline in release-all.yml.
It moved into releases/install-node-for-arch.sh, which
is the fix for the apostrophe-in-a-single-quoted-string
bug, so the guard looks there and also pins that the
workflow runs the file.
dbConformanceWiring - pinned ../log literally in three places. The root is
WEKAN_LOG_ROOT now, because ../log is not writable in a
Flatpak sandbox; what is pinned is that the same
question is asked and that WEKAN_LOGDIR still wins.
300 node suites pass, 0 failed.
NOT verified: the build itself - Meteor is not installable in this sandbox, so
whether dropping the minifier gets past the OOM is the next run's answer, and
whether the resulting bundle is correct is the thing to look at if it does.
|
||
|
|
74a8f931f1 |
Twelve one-line wrappers become menu commands, and both menus get a CLI.
The wrappers first. `releases/ufw-enable.sh` was one line - `sudo ufw enable` - and so were eleven others: ssh-start/stop, snapd-start/stop, docker-start/stop, multipass-remove, syncloop, git-add-revert, stable-tag and ufw-disable. Nothing in the repository called them except the menus added yesterday, so they are the command itself now, in the same menu entries. Checked one by one before deleting: docker-build-deps.sh looked like the same kind of thing and is NOT gone, because releases/docker-build.sh runs it. An entry is "Group|Label|what|prompt|platform|key" now. `what` is a path under releases/ or, with a leading "!", the command. `platform` is "linux" for the ten that are systemd, ufw, snap or multipass: build.bat does not offer those, because Windows cannot do them at all - it is not a parity gap, and the guard knows the difference. ssh-start ran `systemctl enable ssh` twice; the entry enables AND starts it, like its stop counterpart always did. Then the CLI, which is what makes any of this usable from a script or a cron entry: ./build.sh --help usage and examples ./build.sh --list all 84 names, with what each one does ./build.sh <name> [arguments] run one, without the menu ./build.sh release-snap 10.50 ./build.sh push-translation ja ./build.sh ufw-enable what releases/ufw-enable.sh used to do The name is the file name without its extension, or - for the twelve commands - the name of the wrapper file it replaced, so anything anybody had in a script keeps working. Arguments after the name are passed through unchanged. An unknown name says so and exits 2 instead of doing nothing. build.bat has the same thing, dispatched before the menu, and both menus have a "CLI commands" entry that prints the help and the list. tests/buildScriptParity.test.cjs gains: both scripts must dispatch from the command line, every name build.sh answers to must work in build.bat unless it is linux-only, the linux-only ones must NOT be in build.bat, and every example in the help text must be a real name - which is the guard that catches a help text teaching a command that fails. Thanks to xet7 ! |
||
|
|
b7d66e97a5 |
build.sh and build.bat: a Releases menu for the ~90 scripts in releases/.
releases/ holds 90 maintainer scripts and FOUR of them were reachable from a menu - the test run, the database conformance run, run-everything and the CHANGELOG hash repair. Everything else existed only for whoever remembered the file name: the bundle builds per architecture, the whole snap flow, the Transifex scripts, the Sandstorm packaging, the tag and release helpers, the Docker image publishing, the VM helpers. They are one list now, `RELEASE_SCRIPTS` in build.sh, as "Group|Label|path|argument prompt", in eight groups: Release, Snap, Bundles, Docker images, Sandstorm, Translations, Git and repo, Server and VM. Pick a group, pick a script; a script that needs a version, a language code, a branch or a file is ASKED for it and gets it passed through, so it works from the menu instead of only from a remembered command line. An .mjs entry is run by node, everything else by bash. build.bat has the same eight groups with the same scripts in the same order, run through Git Bash - and it says so by name when bash is not on PATH, rather than failing with "not recognized as an internal or external command". Not in the menu, each for a reason the guard states: run-everything.sh, db-conformance.sh and fix-changelog-hashes.sh (already in the Tests and Setup menus), ensure-tools.sh (a helper the others source), ferretdb/* (they run inside the built snap, bundle or Docker image), the superseded old-*.sh, and build-bundle-win64.bat, which bash cannot run - the Bundles menu of build.bat says to run that one directly. tests/buildScriptParity.test.cjs gains the two guards that keep this true: every .sh/.mjs/.bat in releases/ must be reachable from BOTH menus unless it is in the documented skip list, and the two menus must offer the same scripts, in the same order, asking for the same arguments. Thanks to xet7 ! |
||
|
|
69f2cb1abb |
Tests menu: run everything first, and say what each option really tests.
The Tests menu had "ALL tests, parallel", "ALL tests, sequential" and, eleven entries below them, "EVERYTHING (sequential)" - and nothing said what the difference was. "ALL tests" runs WeKan's own suite only: Mocha, the node unit suites, the import regression, the node E2E harness and the three browsers. "EVERYTHING" runs that, then the database conformance run for every database with a Docker image for this CPU, then all of FerretDB's own tests. Two entries claiming to be all of them, one of which is not. Now the everything-run is entry 1 in both build.sh and build.bat, the other two are named "WeKan's own tests only" and their descriptions end with what they do NOT cover, and every option says where its logs go. Every option in the menu now also WRITES those logs: a new one_log helper in build.sh (:onelog / :tee in build.bat) puts Mocha, the import regression, node E2E, each Playwright browser, the floating-promises guard and the test counts into ../log/<datetime>/ beside the whole-suite runs. It reuses WEKAN_LOGDIR when a larger run set one, so a run stays in ONE directory. Before this, running a single option left nothing to check afterwards - "check the newest test logs" only worked for the whole-suite runs. The .bat prompts stay outside the tee: PowerShell's Tee-Object buffers the pipeline, so a piped "[y/N]" prompt is never shown. The guard test pins the order and the wording: entry 1 must be the everything -run, entries 2 and 3 must not claim to be ALL tests, and both scripts must log every option. Thanks to xet7 ! |
||
|
|
fa831e9822 |
"Run ALL tests" now runs all the tests, in build.sh and in build.bat.
Two gaps, and together they meant most of the test suite never ran anywhere. The flow ran six jobs - mocha, the import regression, the Node E2E harness and the three browsers - and no npm unit script at all. Everything in `test:unit:node` and `test:unit:all` was therefore never executed by "Run ALL tests": that is the ~165 .cjs guards plus the sticker, Trello and OAuth2 suites. A guard that never runs guards nothing, and several of those were written to fail the suite when a fix regresses. Both scripts now have a `unit` job that runs `meteor npm run test:unit:all`. It needs no server and no browser, so it starts beside Mocha and the import regression in the parallel flow, and takes its own step in the sequential one; it is counted, waited for and reported in both, with its own ../log/<run>/wekan-alltests-unit.log. And the scripts themselves were incomplete: 72 suite files existed that no npm script mentioned - addCardTabSubmit, apiLogout, boardRepair, exportHTMLXss, ldapPasswordLoginGuard, oidcProfileMerge, userDeletionCleanup and 65 more. They are all in `test:unit:node` now; `tests/rtl.test.js`, which documents itself as runnable by node, joins `test:unit:all`. `tests/all.test.js` stays out on purpose: it is the Meteor mocha ENTRY POINT that imports the two suite indexes, and it runs under `meteor test`, which is the mocha job. tests/testsAreRegistered.test.cjs - which already caught suites missing from the mocha indexes - now also fails when a plain-node suite is in no npm script, and when the ALL-tests flow stops running that script. tests/buildScriptParity.test.cjs pins the job in both files: the command, the launch, the key sets, the label, the counter, and in the .bat both flows starting it, waiting for it and reporting it. NOT verified here: there is no node in this environment, so those 72 suites have never been executed anywhere. Some may fail on the first real run - that is the information this change buys, not a regression it introduces. Thanks to xet7 ! |
||
|
|
a84cfa6be5 |
build.sh / build.bat: the tests always run against a freshly built WeKan.
Both scripts built the bundle only when .build/bundle was MISSING - which is
exactly the case where a bundle exists and is stale. The :3000 test server runs
that precompiled bundle, so Node E2E and every Playwright browser were testing
whatever was built last time, and the run passed or failed on code that is no
longer in the working tree. That is the one thing a test run must never do.
Both now delete .build and build before starting anything, every time, and stop
with an error if the bundle is missing afterwards rather than running the suite
against nothing. build.bat gets a :rebuild_for_tests subroutine with the same
steps as its Setup "Build WeKan", called from both the parallel and the
sequential flow. The line that promised "No recompile: your existing build is
reused" is gone from both.
build.bat was also behind build.sh - the menu that is used - by two entries,
which is the drift this pairing collects:
* Dev server: CUSTOM PORT + SUBDOMAIN, asking for the port and the ROOT_URL
host, with build.sh's rule for what is local and what is proxied;
* Tests: Install Playwright browsers, natively with system dependencies (the
Docker fallback build.sh uses for WebKit on Linux arm64 has no place here).
Both .bat menus renumber and dispatch the new entries.
tests/buildScriptParity.test.cjs keeps the two together: it fails if either
script stops rebuilding before the tests, if a build.sh menu entry has no
counterpart in build.bat, if a Docker compose file one can start and the other
cannot, if a .bat menu prints numbers it does not dispatch, or if a goto lands on
no label.
Thanks to xet7 !
|