Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
4 posts · #ci
Clear filters·5 min read

DiskDesk · Story
Two things my DiskDesk release workflow got wrong in its first hour
gh release create fails when the release already exists, and $env:ProgramFiles(x86) does not mean what it looks like in PowerShell. Two small CI fixes, 14 seconds apart.
In short
- The workflow ended with gh release create, which assumes the release does not exist yet; a tag pushed by hand or a rerun breaks that assumption.
- The Inno Setup path used $env:ProgramFiles(x86) in PowerShell, whose parentheses are not part of the variable name, so it needed braces.
- The fix is two small edits, but the version guard and the workflowdispatch split around them are what keep a release honest.
#github-actions#powershell#ci#windows
·5 min read

DailyBrief · Story
A 72 MB upload kept dying, so I moved releases off my laptop
Pushing the DailyBrief installer from a home uplink took 14 minutes or ended in ECONNRESET, and left tags with no files. A tag-triggered GitHub Actions workflow made the upload local.
In short
- electron-builder created the release first and then died uploading the installer, leaving a tag with no assets.
- A GitHub Actions workflow now builds, tests and publishes on a runner that sits inside GitHub's network.
- scripts/publish-assets.js stays as a manual repair path, with the sha512 the updater checks and retries on every upload.
#github-actions#electron#ci#auto-update
·6 min read

Pterodactyl yolks · Story
SQL Server built fine and could not start under Wings
A passing docker build proved nothing. A file capability on sqlservr and an eval echo on the startup string only showed up once CI booted the image the way Wings does.
In short
- sqlservr ships with the capnetbindservice file capability, and Wings drops that capability, so the kernel refuses to exec it.
- Rewriting each executable removes the capability, and a CI boot test with Wings' uid and dropped capabilities now gates publishing.
- The same test caught the startup string being expanded with eval echo, which ran the panel's console banner as code.
#docker#pterodactyl#sql-server#ci#security
·5 min read

Pterodactyl yolks · Story
A MySQL init file full of passwords, and a CI check that raced it
MySQL's first start needs a SQL file with the root and app passwords in it. I moved it out of the startup line, locked down the run directory, and fixed a test that raced the cleanup.
In short
- The init file is now referenced from the generated config (init-file=...), not appended to the startup line and echoed to the console.
- The socket and pid file moved from /tmp into a run directory created with mode 700.
- The CI step that asserts the init file is gone now waits for the removal instead of racing it.
#mysql#docker#pterodactyl#security#ci