Skip to content

v4.6.3

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 20:29
· 21 commits to master since this release
0052fd7

What's Changed

  • The shared proxy and a project's nginx reload the configuration madock has just written, not an older view of it. On a Mac running OrbStack 2.2.5, a bind-mounted file rewritten in place on the host was measured on 2026-11-29 to stay behind inside the container: the content arrived within a second or two and the size up to a second later, and after the file had sat unchanged for some minutes the container kept the old size for 40 s, for 52 s, and once for more than two and a half minutes, through a touch and through a smaller rewrite. nginx reads its configuration up to the size it is told, so a reload in that state failed with "unexpected end of file" or loaded a file cut short, and a project just added by project:clone got no route. :delegated, no flag and :ro behaved the same. The mounts are unchanged. Before the proxy reloads, and before a project's nginx reloads or one of its services restarts because its mounted files changed, madock compares the size and the SHA-256 of each generated file inside the container with the host's, in one docker exec; only a file that differs is written from inside the container, through its own mount (sh -c 'cat > path'), and compared again. A file that still differs after that stops the reload or the restart with the file named, and the old configuration keeps serving. A file mounted read-only cannot be written from inside: it is waited for up to 10 s and then named. A container without sh, stat or sha256sum is not compared, as before. On Linux the two always agree and nothing is written. Each write from inside is recorded in debug.log as written into the container from inside, one line with no stack trace and nothing on the screen; logger.Note writes such lines. Not yet seen against a container caught in the stuck state: one could not be produced on demand afterwards. TestSyncWritesAFileWhoseContentIsNewButSizeIsOld fails when only the content is compared, TestSyncFailsWhenTheWriteFromInsideDoesNotTake when the check after the write is skipped, TestSyncWaitsForAReadOnlyFileAndNeverWritesIt and TestSyncNamesAReadOnlyFileThatNeverCatchesUp when a read-only file is written, TestSyncLeavesAContainerItCannotCompareAlone when that case is passed over in silence, TestGeneratedFileMountsListsOnlyWhatMakeConfWrote when a mounted directory is not expanded into its files, TestNoteWritesOneLineWithoutAStack when a note carries the stack.
  • project:orphans lists projects/<name>/ directories that have no registry entry. The entry is that directory's config.xml; project:remove ends with RemoveAll on the directory, and a file it cannot delete keeps the directory after config.xml is gone. Nothing named it after that. A directory without config.xml whose name the registry does not hold is now listed as kind directory, with its path; bin, docker and assets, which projects/ holds beside the projects, are not. Listed only: --remove still takes docker volumes, networks and images and nothing else, and the text says so when a directory is listed. docker.RegisterOrphanSource lets an edition add what it keeps outside docker (madock Pro adds its zfs datasets). A source that cannot answer is named under unknown in --json (always a list) and as an error line in the text, with a non-zero exit, never as "nothing left"; orphans is [] rather than null when empty. TestAProjectDirectoryWithNoRegistryEntryIsListed fails without the config.xml check and without the registry check, TestAFailingSourceIsUnknownNotNothing when a failing source is dropped.

Full Changelog: v4.6.1...v4.6.3