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
6 changes: 3 additions & 3 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ tag, rule 3 above; every push is read back through the API and recorded).
and 2 hours after the merge (GitHub's raw cache is per edge; a stale edge serves the old file long after the
first one matched). The later comparisons confirm the cache stayed right, they do not delay the canary. Check https://www.githubstatus.com
before the news post: a GitHub incident during the first hours means sites download nothing, not a bad file.
6. Canary: two sites, each clicked by the maintainer himself while logged in as that site's admin (the agent
prepares, watches and verifies; it never holds the admin passwords), one after the other: www.wondercms.com first, then robert.si
6. Canary: two sites, each clicked by the maintainer himself while logged in as that site's admin (whoever
prepares and verifies the release never holds the admin passwords), one after the other: www.wondercms.com first, then robert.si
(a custom theme, `skyPersonal`, so a theme that is not shipped with the release meets the new core too). Start
robert.si only once wondercms.com has passed. On each site: confirm the live `index.php` is the stock previous
release (compare its SHA-256; if it is not, stop and do not click: find out why the file differs first, since a
Expand Down Expand Up @@ -191,7 +191,7 @@ tag, rule 3 above; every push is read back through the API and recorded).
repo's daily `wcms-modules.json` workflow is enabled and has run.
11. Close the fixed issues with the commit links; fast-forward `develop` to `main`.
12. Every remote write (a push, a workflow dispatch, a comment) is read back through the GitHub API before it is
recorded as done; a pipe after `git push` hides a rejected push. While a review panel is reading a snapshot,
recorded as done; a pipe after `git push` hides a rejected push. While a review is reading a snapshot,
no remote action is taken.

## After the checklist
Expand Down
6 changes: 3 additions & 3 deletions tests/DatabaseLockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ public function testOnANearlyFullDiskAShortTempWriteIsRefusedAndRemoved(): void

public function testAHostThatDisablesTheStreamFunctionsStillReadsAndSaves(): void
{
// Round-14 gpt-7 and gpt-3: with flock (or fopen, stream_get_contents, fclose) in disable_functions every request fataled on the new read; 3.6.0 called none of them at boot.
// Review finding: with flock (or fopen, stream_get_contents, fclose) in disable_functions every request fataled on the new read; 3.6.0 called none of them at boot.
// Each function alone, then all four: a guard that checked only one of them would pass the combined run (gate F-2).
// getmypid: on hardening lists too; the save's temp name must not need it (round-17 opus-3: every save fataled).
// getmypid: on hardening lists too; the save's temp name must not need it (otherwise every save fataled).
foreach (['flock', 'fopen', 'stream_get_contents', 'fclose', 'getmypid', 'flock,fopen,stream_get_contents,fclose'] as $disabled) {
$cmd = escapeshellarg(PHP_BINARY) . ' -d disable_functions=' . $disabled . ' ' . escapeshellarg(__DIR__ . '/probe.php') . ' locked-save after-' . strlen($disabled);
$process = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes, dirname(__DIR__));
Expand All @@ -527,7 +527,7 @@ public function testAHostThatDisablesTheStreamFunctionsStillReadsAndSaves(): voi
public function testAVanishedDatabaseFileReadsAsEmptyLikeTheOldRead(): void
{
// lockedRead() returns '' when fopen() fails (the file removed between the existence check and the read); 3.6.0's
// file_get_contents() gave false there, and both end in the same TypeError on getDb()'s return type (round-15 opus-4).
// file_get_contents() gave false there, and both end in the same TypeError on getDb()'s return type.
$wcms = new Wcms('data_test', 'files_test', 'database_probe.js');
$read = new ReflectionMethod(Wcms::class, 'lockedRead');
if (PHP_VERSION_ID < 80100) {
Expand Down
2 changes: 1 addition & 1 deletion tests/WcmsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testLoginAction(): void
$this->assertFalse(isset($_SESSION['loggedIn']));
$this->assertFalse(isset($_SESSION['rootDir']));
$this->assertEquals($_SESSION['alert']['danger'][0]['message'], 'Wrong password.');
$visitorToken = $this->wcms->getToken(); // the token the failed attempt's session carries (round-14 opus-7: a planted session must not know the admin's token)
$visitorToken = $this->wcms->getToken(); // the token the failed attempt's session carries (a planted session must not know the admin's token)

// Test right password
wcmsSetPasswordOnDisk($this->wcms, self::PASSWORD);
Expand Down
Loading