Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
82bb3be
Plain copy: fail runs that end early, heal type swaps, add Repair, re…
razbenaharon Nov 14, 2026
276afa2
Versions: mark partial versions, release dead locks, batch deletions
razbenaharon Nov 14, 2026
bd75621
Window: one window, settings recovery, run warnings, honest run results
razbenaharon Nov 14, 2026
891984e
Drive check, privacy check and tools: fixes from the review
razbenaharon Nov 14, 2026
9636771
Docs and CI: describe the fixes and run the new tests on every push
razbenaharon Nov 14, 2026
0e53a64
Plain copy: preview of the recovery folders a clean-up would delete; …
razbenaharon Nov 14, 2026
72fc9aa
CI: let each test's own result decide the step
razbenaharon Nov 14, 2026
7d75ef2
CI: check the whole history on a default branch's first push; fail wh…
razbenaharon Nov 14, 2026
9986554
Versions: keep the newest N plus one a month for M months, per comput…
razbenaharon Nov 14, 2026
2c9a645
Window: two Keep versions settings, conversion with a copy, approval …
razbenaharon Nov 14, 2026
f0e258a
Docs and CI: the new Keep versions rule; run the clean-up test with t…
razbenaharon Nov 14, 2026
da98ad9
Versions: the first clean-up deletes only approved versions; a missin…
razbenaharon Nov 15, 2026
efc8566
Plain copy and drive check: approved recovery folders, files in use, …
razbenaharon Nov 15, 2026
a72dfc4
Window: approved-only first clean-up, offers and questions, 80% size,…
razbenaharon Nov 15, 2026
720e992
Docs and CI: this round's changes; a style test for names of built-in…
razbenaharon Nov 15, 2026
693af60
Tests: wait until a killed engine process is really gone before the n…
razbenaharon Nov 15, 2026
69fa4e9
Tests and CI: a screen with room for the window; wait for killed proc…
razbenaharon Nov 15, 2026
fae9ad9
Tests: name the case where Windows reuses the number of a killed process
razbenaharon Nov 15, 2026
418d216
Locks, Keep versions, earlier backups: tests against real programs an…
razbenaharon Nov 15, 2026
127ffec
Clean-up question: show the full list; deletion by hand protects the …
razbenaharon Nov 15, 2026
8bd8c5b
Tests: a killed run's process number given out again just after the w…
razbenaharon Nov 15, 2026
71b003b
Tests: a word boundary, not a control character, in the kill test's n…
razbenaharon Nov 15, 2026
df07619
Window: a question taller than the screen scrolls its text, so its bu…
razbenaharon Nov 16, 2026
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
79 changes: 67 additions & 12 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,30 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
# Every commit being pushed is checked, not only the newest: a detail added and removed again
# would otherwise stay in the history.
- name: Check for private backup details
shell: pwsh
run: ./Test-PrivacyGuard.ps1
env:
BEFORE: ${{ github.event.before }}
BASE: ${{ github.event.pull_request.base.sha }}
DEFAULT: ${{ github.event.repository.default_branch }}
BRANCH: ${{ github.ref_name }}
run: |
# A new branch is compared with the default branch. The first push of the default branch itself
# (a new repository or fork) has nothing to compare with, so its whole history is checked.
$range = if ($env:BASE) { "$env:BASE..HEAD" } elseif ($env:BEFORE -and $env:BEFORE -notmatch '^0+$') { "$env:BEFORE..HEAD" } elseif ($env:BRANCH -eq $env:DEFAULT) { 'HEAD' } else { "origin/$env:DEFAULT..HEAD" }
./Test-PrivacyGuard.ps1 -Range $range
- name: Verify the privacy check itself
shell: pwsh
run: pwsh -NoProfile -File ./Test-PrivacyGuardRules.ps1
- name: Check that no built-in variable is assigned to
shell: pwsh
run: |
Install-Module PSScriptAnalyzer -RequiredVersion 1.25.0 -Scope CurrentUser -Force
pwsh -NoProfile -File ./Test-BackupStyle.ps1
- name: Parse all PowerShell sources
shell: pwsh
run: |
Expand All @@ -36,28 +57,62 @@ jobs:
if ($config.MemoryMiB -lt 512 -or $config.Include.Count -eq 0) { throw 'Invalid example' }
- name: Verify concurrent status access
shell: pwsh
run: ./Test-BackupStatus.ps1
run: pwsh -NoProfile -File ./Test-BackupStatus.ps1
- name: Verify drive check rules
shell: pwsh
run: ./Test-BackupDriveCheck.ps1
run: pwsh -NoProfile -File ./Test-BackupDriveCheck.ps1
- name: Verify the AI session activity rule
shell: pwsh
run: ./Test-BackupActivity.ps1
run: pwsh -NoProfile -File ./Test-BackupActivity.ps1
- name: Verify colour themes and contrast
shell: pwsh
run: ./Test-BackupTheme.ps1
- name: Verify the clean-up of old versions
shell: pwsh
run: ./Test-BackupRetention.ps1
run: pwsh -NoProfile -File ./Test-BackupTheme.ps1
- name: Verify history selection safeguards
shell: pwsh
run: ./Test-BackupHistory.ps1
run: pwsh -NoProfile -File ./Test-BackupHistory.ps1
- name: Verify private credential file safeguards
shell: pwsh
run: ./Test-BackupSecuritySafety.ps1
run: pwsh -NoProfile -File ./Test-BackupSecuritySafety.ps1
- name: Verify plain copy rules
shell: pwsh
run: ./Test-BackupCopyRules.ps1
run: pwsh -NoProfile -File ./Test-BackupCopyRules.ps1
- name: Verify plain copy runs, failures and recovery folders
shell: pwsh
run: pwsh -NoProfile -File ./Test-BackupMirror.ps1
- name: Verify the rules for versions
shell: pwsh
run: pwsh -NoProfile -File ./Test-BackupVersionsRules.ps1
- name: Verify versions and the clean-up of old versions against a disposable repository
shell: pwsh
run: |
./Install-BackupEngine.ps1
# Without the engine the test would skip its real part and still pass.
if (-not (Test-Path -LiteralPath ./bin/restic_0.19.1_windows_amd64.exe)) { throw 'The versions engine was not installed, so the test would not run.' }
pwsh -NoProfile -File ./Test-BackupVersions.ps1
if ($LASTEXITCODE) { exit $LASTEXITCODE }
pwsh -NoProfile -File ./Test-BackupRetention.ps1
- name: Verify the window's data and run results
shell: pwsh
run: pwsh -NoProfile -File ./Test-BackupData.ps1
# Windows cuts a window down to the screen it is on, and the runner's screen (1024 x 768) is smaller
# than the window at full size, so the test would measure the runner instead of the window.
- name: Give the window tests a screen with room for the window
shell: powershell
run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force -ErrorAction Stop
Add-Type -AssemblyName System.Windows.Forms
$largest = [Windows.Forms.SystemInformation]::MaxWindowTrackSize
"Largest window Windows allows now: $($largest.Width) x $($largest.Height)"
if ($largest.Width -lt 1216 -or $largest.Height -lt 839) { throw 'The screen is still too small for the window at full size.' }
- name: Verify the window opens on every page
shell: pwsh
run: pwsh -NoProfile -File ./Test-BackupWindow.ps1
- name: Verify drive tools and the report generator
shell: pwsh
run: |
pwsh -NoProfile -File ./Test-BackupTools.ps1
if ($LASTEXITCODE) { exit $LASTEXITCODE } # a failing first test must not be hidden by the next command
python ./Test-BackupToolsReport.py
- name: Verify the hard memory limit
shell: pwsh
run: ./Test-BackupResourceControls.ps1
run: pwsh -NoProfile -File ./Test-BackupResourceControls.ps1
Loading