- Use the full category of the previous CodeQL configuration
(.github/workflows/codeql-analysis.yml:analyze/language:cpp), so the
existing analysis keeps receiving results and its alerts get closed.
- warnings_report.py: rename the Warning tuple to CompilerWarning (it
shadowed the built-in), add docstrings for the __init__ methods and
start the module docstring on its first line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Lead with a one-line verdict for the files changed by the PR, and
flag builds whose log is missing.
- List warnings in changed files grouped by file, with links to the
source lines at the PR head commit and the builds that reported them
("all compilers" when every compiler build did).
- Separate compiler warnings from clang-tidy findings; clang-tidy's
re-reported compiler diagnostics are left to the compiler builds.
- Move whole-project breakdowns (by type, by file) into collapsed
sections, and link the workflow run in the footer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ci.yml, which calls tier 1 (Linux GCC, Windows UCRT64), tier 2
(macOS Apple Clang / LLVM, Linux Clang), sanitizers and clang-tidy as
reusable workflows, then posts a single warnings report to the PR.
Every build saves its log via the new save-build-log composite action
(with the platform title and its workspace path, so Windows and macOS
paths can be mapped to repository paths). The report lists per-platform
counts of warnings in changed files and in total, and the unique
warnings across all platforms, with the platforms that reported each.
The called workflows keep workflow_dispatch for manual runs; their own
push / pull_request triggers and concurrency settings move to ci.yml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace clang-tidy.yml with warnings-report.yml, which builds with
clang-tidy 22 and with GCC 15 (project warning flags), then posts a
sticky PR comment with warnings in changed files and total warnings.
Warnings are deduplicated and limited to project files (dependencies,
system headers and generated files are excluded) by
.github/scripts/warnings_report.py. The comment is updated in place on
each push. For PRs from forks the token is read-only, so the report is
only written to the job summary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cancel superseded PR runs (concurrency), restrict the default token to
contents: read, and set timeout-minutes on every job.
- Bundle smartmontools 7.5 (was 7.4) in Windows packages.
- Add Dependabot updates for GitHub Actions.
- Tier 2: build Linux with clang (Ubuntu 24.04 / clang 18, Ubuntu 26.04 /
clang 22); re-enable the macOS Apple Clang build and use Homebrew
LLVM 20 instead of 17.
- Add a clang-tidy workflow (warnings summarized, non-fatal) and an
ASan + UBSan workflow that runs the tests.
- CodeQL: build manually with the project's CMake configuration instead
of autobuild, and drop the template boilerplate.
- FreeBSD: pin release 15.1, use LLVM 23 and fix the compiler name
(FreeBSD installs clang++NN, not clang++-NN).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the separate Ubuntu jobs with a single matrix job:
22.04 (GCC 11), 24.04 (GCC 14) and 26.04 (GCC 15). Upload packages
from every matrix entry under a per-version artifact name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add windows-msys2.yml, a reusable UCRT64 build workflow used by both
cmake-tier1.yml (RelWithDebInfo) and windows-release.yml (Release),
so the two no longer drift apart. Always install NSIS.
- Remove the dead 32-bit matrix entries and i686-only steps.
- Use pacboy for MSYS2 package names and a default msys2 shell.
- Bump actions/checkout and actions/upload-artifact to v7, and the
DevSkim SARIF upload to github/codeql-action v4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MSYS2 has deprecated the MINGW64 and MINGW32 environments and removed
most of their packages, including gtkmm3, which broke the Windows CI.
- Build with the UCRT64 environment (mingw-w64-ucrt-x86_64-* packages).
- Remove the librsvg 2.58 downgrade step; those packages are no longer
available in the MSYS2 repository.
- Drop the MINGW32 release build (no gtkmm3 available anymore).
- Use the architecture, not the msystem, to pick per-arch steps, and list
$MINGW_PREFIX instead of hardcoded /mingw64 and /mingw32 paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ATA Device Statistics (Logical Sectors Written / Read) count actual
logical sectors, so use the device's logical sector size instead of
assuming 512 bytes. On 4Kn drives the totals were understated 8x.
If the sector size is unknown, the values are not converted.
- Parse smartctl's protocol-independent host_writes / host_reads
bytes_per_unit from both ATA and NVMe JSON output, and prefer them
when available.
- Only convert ATA attributes with an explicit unit suffix (e.g.
Host_Writes_32MiB). Units of LBA-counting attributes such as
Total_LBAs_Written vary between vendors, devices and firmware
versions (see smartmontools/smartmontools#251), and Device
Statistics provide the same information reliably.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Attributes, Device Statistics and NVMe health values that count amounts of
data are now shown with a human-readable size, e.g.
"11,538,326,532 [5.91 TB]".
- ATA attributes: detected by the smartctl-reported name, which encodes the
unit: LBA / sector counts (Total_LBAs_Written, Write_Sectors_Tot_Ct,
Total_Host_Sector_Write, ...) and explicit units (Host_Writes_32MiB,
NAND_Writes_1GiB, Lifetime_Writes_GiB, ...). Error / reallocation
counters are excluded.
- Device Statistics: Logical Sectors Written / Read.
- NVMe: Data Units Read / Written (units of 512,000 bytes).
- Decimal units (TB) are used, matching drive endurance (TBW) ratings and
smartctl's own NVMe output.
Fixes#28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "View Output" window always saved the raw output (JSON), even with a
.txt file name, and offered no format choice. The device information
window saved text into a .json file when the "Text Files" type was
selected, since the suggested file name has a .json extension.
- Add smartctl_output_export (applib): extracts the available formats
(JSON, and the text output embedded with --json=o) from smartctl output,
and decides the format and file extension from the selected file type or
the typed extension.
- Add a shared Save As dialog used by both windows, offering only the
available formats and confirming overwrites of extension-adjusted names.
- "View Output" window: add a JSON / Text selector, so the displayed (and
copyable) text can be switched; Save As suggests the displayed format.
Fixes#85
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Scanned on" format string lacked the %1 placeholder, so the scan
time was never shown in the main window icon tooltip for virtual drives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move the adaptive estimation into SelfTestEtaEstimator, which tracks
observed seconds per percent instead of per-change "segment" durations.
This fixes NVMe estimates (1% steps were counted as 10% segments, giving
~10x too short ETAs), and progress spanning several steps between two
polls (e.g. 80% -> 60%) being counted as a single segment.
- Reset the estimator state in start().
- Return unknown ETA when the test is not running.
- Add unit tests for the estimator (the existing tests did not cover it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start with "If" as suggested in the issue, state that the type by itself
does not indicate a problem, and restore the explanation of when an alarm
condition is reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Previously, once the Advanced tab was active, Ctrl+Tab only cycled its
sub-tabs, making it impossible to leave the Advanced tab using the keyboard.
Now the Advanced sub-tabs are stops in the same sequence as the main tabs.
Also ignore Ctrl+Alt+Tab and treat ISO_Left_Tab as backward navigation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Treat scales below 100% as non-fractional, avoiding a division by zero
in the correction ratio and a bogus font size increase.
- Add app_get_fractional_scaling_part_percent() and use it in gsc_init.
- Move scaling tests to applib_tests and test the actual helper functions
instead of duplicated inline math; remove the gui_tests target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GTK3 only supports integer scaling, so at e.g. 125% or 250% system scaling
the UI is rendered at 1x / 2x. Store the full system scale percentage and
scale the default (glade) window sizes by the remaining fractional ratio,
and increase the font size by the fractional amount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parsing of the smartctl output was broken here, tests would initiate but the GUI would report them as failing. Re-running the test would detect the in-progress SMART scan and function as expected on the second try. Fixed by modifying this regex on the stable smartmontools 7.5.
Some icon themes may return a lower-resolution icon than requested.
For example, under XQuartz on macOS, Gtk::IconTheme::load_icon()
returns a 16x16 drive-harddisk icon even when a 64x64 icon is
requested.
Because the theme lookup succeeds, the bundled higher-resolution
icons are never used, resulting in tiny drive icons in the main
window.
Fall back to the bundled icon when the theme-provided icon is
smaller than the requested size.
- Guard theme detection with Gtk::Main::level() check to avoid crashes in non-GUI executables
- Use narrow headers (gtkmm/settings.h, gtkmm/main.h) instead of umbrella gtkmm.h
- Return early from app_property_get_label_highlight_color() for WarningLevel::None
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>