Commit Graph
834 Commits
Author SHA1 Message Date
dependabot[bot] d3b911e410 Bump codacy/codacy-analysis-cli-action
Bumps the github-actions group with 1 update: [codacy/codacy-analysis-cli-action](https://github.com/codacy/codacy-analysis-cli-action).


Updates `codacy/codacy-analysis-cli-action` from 1.1.0 to 4.4.7
- [Release notes](https://github.com/codacy/codacy-analysis-cli-action/releases)
- [Commits](https://github.com/codacy/codacy-analysis-cli-action/compare/d840f886c4bd4edc059706d09c6a1586111c540b...562ee3e92b8e92df8b67e0a5ff8aa8e261919c08)

---
updated-dependencies:
- dependency-name: codacy/codacy-analysis-cli-action
  dependency-version: 4.4.7
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-25 19:04:04 +00:00
Alexander Shaduri 334703cb6b Merge pull request #131 from ashaduri/claude/msys2-ucrt64-ci
CI: Fix Windows build (MSYS2 UCRT64), restructure workflows, add warnings report
2026-10-25 20:01:37 +01:00
Alexander ShaduriandClaude Opus 5.5 2b11931679 CI: Drop an unused loop variable in the warnings report script
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:30:55 +01:00
Alexander ShaduriandClaude Opus 5.5 ee6f7c129b CI: Link warnings to the commit that was actually built
On pull requests, checkout builds the merge of the PR into the base
branch (github.sha), not the PR head. Link source lines to that commit
so the line numbers match the compiled code, and label it in the
report footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:30:02 +01:00
Alexander ShaduriandClaude Opus 5.5 a3176d8344 CI: Make all warnings inspectable from the warnings report
Besides the PR comment, the report script now writes:
- a full report listing every unique warning, grouped by file, with
  links to the source lines and the builds that reported each; it is
  shown as the workflow run's job summary (up to 1 MiB), and
- warnings.txt, all unique warnings in file:line:col: warning: format
  for IDEs and grep.

Both are uploaded as the "warnings-report" artifact, and the PR comment
links to the full report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:28:24 +01:00
Alexander ShaduriandClaude Opus 5.5 f928701cf2 CI: Keep the warnings report within GitHub's comment size limit
Instead of cutting the rendered text (which could leave open <details>
tags), list fewer warnings in changed files (200, 100, 50, 20) until the
report fits, then fall back to the summary tables with a link to the
workflow run. Long diagnostic messages are shortened to 300 characters.

Also drop the msys-style path conversion (/d/... -> d:/...), which
misread Linux paths with a single-letter top-level directory; the
save-build-log action already records Windows paths as D:/...

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:26:19 +01:00
Alexander ShaduriandClaude Opus 5.5 9084a2e4d5 CI: Use a single-line module docstring in the report script
Codacy enables both pydocstyle D212 and D213, which contradict each
other for multi-line docstrings. Keep the docstring to one line and
move the details into comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:24:08 +01:00
Alexander ShaduriandClaude Opus 5.5 c90e4a727e CI: Keep the CodeQL category; fix Codacy findings in the report script
- 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>
2026-10-25 19:22:56 +01:00
Alexander ShaduriandClaude Opus 5.5 327d916024 CI: Reorganize the warnings report for readability
- 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>
2026-10-25 19:20:46 +01:00
Alexander ShaduriandClaude Opus 5.5 46618d42ea CI: Gather warnings from every CI build into one PR report
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>
2026-10-25 19:18:46 +01:00
Alexander ShaduriandClaude Opus 5.5 4ec5de9b75 CI: Post a deduplicated clang-tidy / GCC warnings report on PRs
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>
2026-10-25 19:15:34 +01:00
Alexander ShaduriandClaude Opus 5.5 a2ba01f4d9 CI: Harden and extend workflows
- 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>
2026-10-25 19:11:41 +01:00
Alexander ShaduriandClaude Opus 5.5 b4d774bb1f CI: Build Linux on Ubuntu 22.04, 24.04 and 26.04 via a matrix
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>
2026-10-25 18:58:45 +01:00
Alexander ShaduriandClaude Opus 5.5 2bbd6a60f6 CI: Move the Windows build into a reusable workflow, bump actions
- 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>
2026-10-25 18:49:04 +01:00
Alexander ShaduriandClaude Opus 5.5 b668603213 CI: Switch Windows builds from MSYS2 MINGW64 to UCRT64
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>
2026-10-25 18:38:27 +01:00
Alexander Shaduri 25f4dd6759 Merge pull request #129 from ashaduri/claude/humanize-data-amounts
Show data amounts (written / read) in human-readable form
2026-10-25 18:31:22 +01:00
Alexander ShaduriandClaude Opus 5.5 db3d2415c9 Use correct unit sizes when converting data amounts to bytes
- 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>
2026-10-25 18:27:43 +01:00
Alexander Shaduri 52d3bfb297 Merge pull request #128 from ashaduri/claude/save-output-as-text
Allow saving smartctl output as text from all Save As dialogs
2026-10-25 18:03:56 +01:00
Alexander Shaduri cfdee534fc Merge pull request #126 from SpookySkeletons/patch-1
Fix regex pattern for NVMe self-test detection
2026-10-25 17:56:36 +01:00
Alexander ShaduriandClaude Opus 5.5 e5f2b349f9 Show data amounts (written / read) in human-readable form
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>
2026-10-15 23:28:06 +02:00
Alexander ShaduriandClaude Opus 5.5 d6b109dc65 Allow saving smartctl output as text from all Save As dialogs
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>
2026-10-15 23:22:50 +02:00
Alexander Shaduri fed68f60e9 Merge pull request #127 from ashaduri/claude/fix-scanned-on-tooltip
Fix scan time missing from virtual drive tooltip
2026-10-15 23:14:13 +02:00
Alexander Shaduri 90e38fa7cb Merge pull request #117 from ashaduri/claude/fix-model-family-display-issue
Fix HTML entity encoding in main window labels
2026-10-15 23:13:33 +02:00
Alexander Shaduri a6cad5e25f Merge pull request #109 from ashaduri/copilot/fix-test-completion-eta-message
Fix misleading self-test ETA using adaptive estimation
2026-10-15 23:12:27 +02:00
Alexander Shaduri 28e385a039 Merge pull request #110 from ashaduri/claude/update-type-attribute-explanation
Clarify the Type attribute explanation
2026-10-15 23:10:59 +02:00
Alexander Shaduri dae6f79ad6 Merge pull request #107 from ashaduri/claude/add-ctrl-tab-for-tabs
Switch device information tabs with Ctrl+Tab
2026-10-15 23:09:30 +02:00
Alexander ShaduriandClaude Opus 5.5 7d9bcae73c Fix scan time missing from virtual drive tooltip
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>
2026-10-15 23:08:42 +02:00
Alexander ShaduriandClaude Opus 5.5 971aa8d1bf Self-test ETA: Estimate from observed progress speed per percent
- 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>
2026-10-15 23:05:58 +02:00
Alexander Shaduri 55931f2a88 Merge remote-tracking branch 'origin/main' into copilot/fix-test-completion-eta-message
# Conflicts:
#	src/applib/tests/CMakeLists.txt
2026-10-15 23:04:14 +02:00
Alexander ShaduriandClaude Opus 5.5 c63983ba05 Type tooltip: Clarify that the type alone is not a warning
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>
2026-10-15 23:03:09 +02:00
Alexander ShaduriandClaude Opus 5.5 f48dae74cd Ctrl+Tab: Include Advanced sub-tabs in the main tab cycle
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>
2026-10-15 23:01:34 +02:00
Alexander Shaduri c927afdc28 Merge pull request #108 from ashaduri/claude/adjust-default-window-sizes
Adjust default window sizes when fractional HiDPI scaling is used on Windows
2026-10-15 22:47:58 +02:00
Alexander ShaduriandClaude Opus 5.5 08d200af94 Scaling: Fix sub-100% scale handling, test real helpers
- 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>
2026-10-15 22:43:13 +02:00
Alexander ShaduriandClaude Opus 5.5 cb5b1284be Adjust default window sizes for fractional scaling on Windows
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>
2026-10-15 22:43:13 +02:00
SpookySkeletons cfb96c3924 Fix regex pattern for NVMe self-test detection
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.
2026-10-15 14:27:41 -04:00
Alexander Shaduri 871cd51e8a Merge pull request #121 from OldMan2525/main
Use bundled icons when theme icons are too small
2026-07-08 20:57:37 +02:00
OldMan2525 fa31a696a7 Use bundled icons when theme icons are too small
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.
2026-07-07 02:13:11 -07:00
Alexander Shaduri cab21bd6dd Add scam alert and download instructions to index.md
Added a scam alert regarding a phishing site and provided guidance on downloading GSmartControl from official sources.
2026-05-31 11:55:43 +02:00
Alexander Shaduri 19c50fdd72 Add scam alert and official download links to README
Added a scam alert about a phishing site and provided official download links.
2026-05-31 11:54:47 +02:00
anthropic-code-agent[bot]andashaduri d768d8b690 Fix HTML entity encoding in main window labels
- Fix model family label to use set_markup() instead of set_text()
- Fix family label tooltip to use markup mode
- Fix name label tooltip to use markup mode
- All labels now properly render HTML entities like quotes

Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/d14daedd-b7c3-45ae-adf0-b9de6c8ea901

Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-04-04 15:33:54 +00:00
anthropic-code-agent[bot] 7ded00815e Initial plan 2026-04-04 15:27:11 +00:00
anthropic-code-agent[bot]andashaduri 37090a8556 Fix Type tooltip and FailTime condition per PR feedback
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/b9ea2530-2c7d-4061-accb-eb7d7bb1dc16
2026-03-22 17:09:02 +00:00
anthropic-code-agent[bot]andashaduri c673bd95bb Add unit tests for SelfTest adaptive ETA algorithm
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/8b4b77f5-beb6-4c32-bf49-93d641714685
2026-03-22 17:04:36 +00:00
Alexander Shaduri 57a16f6971 Fix compilation. 2026-03-08 19:08:51 +01:00
Alexander Shaduri 79f1c7d5b0 Merge pull request #106 from ashaduri/claude/fix-red-text-legibility
Red text is barely legible when using a dark theme
2026-03-08 19:05:19 +01:00
Alexander Shaduri a7f0cb78cd Merge remote-tracking branch 'origin/claude/fix-red-text-legibility' into claude/fix-red-text-legibility
# Conflicts:
#	src/applib/warning_colors.h
#	src/gui/gsc_info_window.cpp
2026-03-08 19:04:00 +01:00
Alexander Shaduri 3642afc46f Use readable text highlight colors in dark mode. 2026-03-08 18:52:27 +01:00
Alexander ShaduriandCopilot e4c9afeed0 Update src/applib/warning_colors.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-08 18:52:27 +01:00
Alexander ShaduriandCopilot 06a0a75349 Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-08 18:52:27 +01:00
anthropic-code-agent[bot]andashaduri c322e96741 Revert to umbrella gtkmm.h include per maintainer request
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-08 18:52:27 +01:00