Skip to content

chore(master): release - #308

Merged
chodeus merged 134 commits into
masterfrom
release/stable
Nov 27, 2026
Merged

chodeus merged 134 commits into
masterfrom
release/stable

Conversation

@chodeus

@chodeus chodeus commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Merge this PR to cut the next stable release. Edit the Unreleased section of CHANGELOG.md on this branch first; the release job stamps the version, renders it into the plugin manifest, and attaches the package.

Bullets are copied from commit subjects: reword or delete each one that is still word for word the copy (those ending in a commit hash, for example). On a stable release PR the Release notes check fails until none is left; the release itself only warns.

@coderabbitai ignore
This PR also brings beta release 2026.11.26b into master — merge it with a merge commit, not a squash.

Unreleased

  • perf: Faster in-use file checks: file leases replace fuser where the system supports them. (coppit)
  • perf: Logging costs much less, and almost nothing when it is off. (coppit)
  • perf: Large moves run faster, with fewer hardlink lookups and top folder checks. (chodeus, coppit)
  • fix: Apply now changes the mover schedule to the saved settings. (chodeus)
  • fix: File names holding $, <, : and similar characters now move; the filename check is removed. (chodeus)
  • fix: A file name holding < or > no longer breaks notifications before Unraid 7.2. (chodeus)
  • fix: Clean empty ZFS datasets keeps a dataset until everything in it has moved. (chodeus)
  • fix: Clean empty folders keeps the folder of a failed move, and on Yes the share's top folder. (chodeus)
  • fix: Turbo write is now restored when a move is stopped, Move Now included. (chodeus)
  • fix: Move Now no longer reads Unassigned Devices mounts or runs text from a share name. (chodeus)
  • fix: Test mode's folder cleanup and turbo write lines now match what a real run does. (chodeus)

masterwishx and others added 30 commits November 13, 2026 06:14
The page sent the schedule to updateCron.php in a request that raced the
settings save. When the save landed first, updateCron.php saw no change and
kept the old cron file, so a schedule migrated from Unraid (such as 3:40)
kept running whatever the page showed.

- update.php now runs updateCron.php apply after it saves the settings, and
  Defaults runs the same apply.
- sync also rewrites a cron file that differs from the settings, so an
  install heals a stale one.
- A saved schedule that is not valid cron is still not applied; the page now
  says so under its field.
- Debug zips include mover.tuning.cron, mover.watchdog.cron and the mover
  lines crond runs.
- The install again rewrites age_mover and old forced-move commands in the
  cron files: sync keeps a file whose saved schedule is invalid, so it
  would not heal those lines.
- A day or month name is valid only as dcron reads it (mon or Mon), so a
  schedule such as 0 4 * * MON is flagged instead of written and skipped.
The migration renamed mover.cron before the sync wrote mover.tuning.cron.
When the settings file does not parse, the sync writes nothing, so no
schedule was left. The rename now waits for the sync to write the
replacement or find the Mover Tuning schedule disabled.
A file name reaches rsync as its own argument and Unraid's move as a line
on stdin, never through a shell, so no character in it can run anything.
The check's other two parts never fired on a real name: a name is at most
255 bytes, and a name cannot hold /, so the traversal test caught only
names starting ..\ or holding \.., which are plain names on Linux. The
check kept those files on the cache and reported each one as a failure.

A name that ends in | now also moves in a rebalance with sync: the move
loop took the path through read, which drops a | that ends the row.

Anyone who added characters to the list to keep files on the cache can
list those files under "Ignore files and folders listed inside of a text
file" or "Ignore file types" instead.

Fixes #285
Unraid before 7.2 shows a notification's description as raw HTML, in the
pop-up and on the Archived Notifications page, so a < in a file name would
start markup there. From 7.2 the Unraid API sanitizes the description
itself, and from API 4.26 it decodes entities in the notification file
first, which undoes an escape; so from 7.2 the text goes through
unchanged. When the version cannot be read, it is escaped.

The log keeps the name as it is. Before 7.2, email and agent notifications
show &lt; or &gt; for a name holding < or >; & and quotes are left alone,
so names like Tom & Jerry read the same everywhere.
The install kept Unraid's mover.cron when its sync failed, but it had
already saved moverTuneCron, so no later install tried again, and an
Apply that then wrote mover.tuning.cron left both schedules running. A
disabled schedule with an invalid forced schedule also kept it, because
the sync's exit status counted the forced schedule's error.

The migration now leaves a marker. A sync or apply that finds it renames
mover.cron to mover.cron.old once mover.tuning.cron exists or the
schedule is disabled, then removes the marker.
While the retirement waited, Defaults or clearing the schedule left
Unraid's mover.cron running, though the tab showed no schedule and a
finished migration would have left none. Only a schedule that is on,
set and not written yet now keeps it.
Make the cron files follow the saved settings when Apply is pressed
Escape < and > in notification text before Unraid 7.2
Remove the filename check, so names holding $, <, : and the like move
tests/age_mover runs each row shape the planner writes through the real
processTheMoves, rsync and getMoverSettings in a throwaway Debian
container, with only Unraid's move stood in. It pins where names land,
the counters and the log lines, including today's held collisions, so
later changes to the group lookup show up as deliberate test edits.
…te counters

The move stand-in copies, so names of one inode stay linked only within one run. A row for a missing name, stderr or an early exit fails the case. Debug logging really turns on in the second pass, rows from the array come from a disk, a hardlink group's size counts once as in the planner, and the in-use, soft stop and pause cases wait for a later PR.
Add regression tests for age_mover's moves
Add regression tests for age_mover's folder cleanup
…SOFTSTOPFILE

- The two fatal exits ran `rm $SOFTSTOPFILE`, which share_mover never sets, so rm's
  "missing operand" reached the syslog. Removed.
- Quoted the rest, split local from its assignment, counted the pool configs with a
  glob instead of ls, and picked the move binary with || instead of && ... ||.
- tests/age_mover/test_share_mover.sh runs the real share_mover against Unraid's
  config files. On beta's share_mover, only the rm and ls stderr checks fail.
…nstall

Nothing reads them since the filename check was removed, and a backtick saved in invalidFileChars stops debug_mover's source of the config at that line. test_install.sh runs the plg's post-install step, read by xmllint.
…; note why SC2016 is off for the rsync wrapper
chodeus and others added 9 commits November 26, 2026 14:35
A failed or missing move left the run exiting 0. The run now sets the
write method back, logs both statuses and exits with move's, else
find's. Tests pin it, and pin that a stop's EXIT trap tries the restore
once, before the pid file goes.
A find that fails while move succeeds gives find's status; when both fail, move's.
share_mover: run find without eval, put turbo write back on a stop, exit with the move's status
One user-facing line per change since 2026.11.13; tests, CI, ShellCheck and fixes to this cycle's own changes left out.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 6 complexity · 0 duplication

Metric Results
Complexity 6
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

A publish run can post its first build comment between the sweep's two notes; the cached empty id left that comment pointing at a removed build.
… sweep

A publish run's --cleanup-tag can delete an orphaned tag between the sweep's inventory and its delete; GitHub answers 422 "Reference does not exist" (or 404), which stopped that pull request's cleanup.
…is retried

The sweep finds a pull request by its pr- tags. Deleting them with the releases, before the final note, meant a note that failed was never written again and the comment kept pointing at a removed build. Releases go first, then one note, then the tags; the note before the deletes is no longer needed.
…uild

Its comment is written in the next step. With the tag gone, a failed write left the comment on a removed build and PR cleanup never came back to it; the tag now leads that sweep to note the comment and remove the tag.
ci: clear CodeFactor workflow findings and close the test-build cleanup gaps
Resolved as on release/stable (#308): master's wording and headings, beta's in-use check text, and no filename validation bullet, as beta removed that check.
@chodeus
chodeus marked this pull request as ready for review November 27, 2026 07:19
@chodeus
chodeus merged commit d9ed655 into master Nov 27, 2026
10 checks passed
@chodeus
chodeus deleted the release/stable branch November 27, 2026 07:19
@masterwishx

Copy link
Copy Markdown
Owner

Released as 2026.11.27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants