Skip to content

refactor: remove unused ADL diagnostic tool example#1430

Merged
shm11C3 merged 2 commits into
developfrom
remove/unused-file
May 1, 2026
Merged

refactor: remove unused ADL diagnostic tool example#1430
shm11C3 merged 2 commits into
developfrom
remove/unused-file

Conversation

@shm11C3

@shm11C3 shm11C3 commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

Related Issues

Type of Change

  • Bug fix (fix/ branch)
  • New feature (feat/ branch)
  • Refactoring (refactor/ branch)
  • Documentation (docs/ branch)
  • Dependencies update
  • Other (chore/ branch)

Screenshots / Videos

Test Plan

  • Manual testing
  • Unit tests

Checklist

  • Self-reviewed the code
  • Linting and formatting pass (npm run lint && npm run format / cargo tauri-lint && cargo tauri-fmt)
  • Tests pass (npm test / cargo tauri-test)
  • No new warnings or errors

Summary by CodeRabbit

  • Chores
    • Removed the AMD GPU diagnostics example and its accompanying documentation, eliminating the example tool and user guide for running the diagnostic.

Copilot AI review requested due to automatic review settings May 1, 2026 01:35
@coderabbitai

coderabbitai Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 2ec3bd72-7868-4ba5-b958-4a4750301ae1

📥 Commits

Reviewing files that changed from the base of the PR and between 94552d1 and 48170ae.

📒 Files selected for processing (1)
  • docs/internal/adl-diagnostic.md
💤 Files with no reviewable changes (1)
  • docs/internal/adl-diagnostic.md

📝 Walkthrough

Walkthrough

Removed the ADL Diagnostic Tool example and its documentation: the example source src-tauri/examples/adl_diagnostic.rs and doc docs/internal/adl-diagnostic.md were deleted, eliminating the ADL dynamic-loading, adapter enumeration, and sensor-query demonstration.

Changes

Cohort / File(s) Summary
Example deletion
src-tauri/examples/adl_diagnostic.rs
Full removal of the ADL diagnostic Rust example that dynamically loaded atiadlxx.dll, resolved ADL2/Overdrive/PMLog entrypoints, created an ADL context, enumerated adapters, and queried temperature/activity sensors.
Docs removal
docs/internal/adl-diagnostic.md
Deleted documentation that described how to run and interpret the ADL Diagnostic Tool, its ADL pipeline steps, queried sensors/paths, vendor IDs, and link to the example implementation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through code, then gave a wink,
The ADL page and sample took the sink.
A tidy burrow, no traces stay—
Gone the diagnostics, off they stray.
🥕✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is entirely empty—all sections (Summary, Related Issues, Type of Change, Test Plan, Checklist) contain only template placeholders with no substantive content provided. Fill in at least the Summary section explaining why the ADL diagnostic tool was unused and why removal is appropriate. Complete the Type of Change checkboxes and confirm testing was performed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: removing an unused ADL diagnostic tool example, matching the file deletions shown in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove/unused-file

Review rate limit: 2/5 reviews remaining, refill in 27 minutes and 45 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the rust Pull requests that update Rust code label May 1, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes May 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the Rust Tauri example adl_diagnostic (an ADL/atiadlxx.dll diagnostic helper) from src-tauri, as part of cleaning up unused tooling in the backend workspace.

Changes:

  • Deleted src-tauri/examples/adl_diagnostic.rs (standalone ADL diagnostic example).
Comments suppressed due to low confidence (1)

src-tauri/examples/adl_diagnostic.rs:1

  • Removing this example leaves stale internal documentation that still references it. docs/internal/adl-diagnostic.md instructs running cargo run --example adl_diagnostic and links to src-tauri/examples/adl_diagnostic.rs, which will now fail. Either update/remove that doc, or keep the diagnostic tool (possibly moved under a tools/ or scripts/ location) and adjust the doc accordingly.

@github-actions github-actions Bot added the docs label May 1, 2026
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Rust Backend Coverage Report

Coverage Details
Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
core/src/collector/history.rs                                  710               154    78.31%          47                15    68.09%         373                89    76.14%           0                 0         -
core/src/collector/sampling.rs                                 445               178    60.00%          45                20    55.56%         283               117    58.66%           0                 0         -
core/src/collector/system_monitor.rs                            72                72     0.00%           4                 4     0.00%          39                39     0.00%           0                 0         -
core/src/enums/hardware.rs                                      14                14     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
core/src/event_bus.rs                                          167                 3    98.20%          19                 1    94.74%         108                 3    97.22%           0                 0         -
core/src/infrastructure/database/db.rs                          28                28     0.00%           4                 4     0.00%          22                22     0.00%           0                 0         -
core/src/infrastructure/database/gpu_archive.rs                 51                51     0.00%           4                 4     0.00%          18                18     0.00%           0                 0         -
core/src/infrastructure/database/hardware_archive.rs            41                41     0.00%           4                 4     0.00%          18                18     0.00%           0                 0         -
core/src/infrastructure/database/process_stats.rs               41                41     0.00%           4                 4     0.00%          27                27     0.00%           0                 0         -
core/src/infrastructure/providers/linux/dmidecode.rs           229                15    93.45%          16                 3    81.25%         319                14    95.61%           0                 0         -
core/src/infrastructure/providers/linux/drm_sys.rs             205               156    23.90%          21                14    33.33%         126                93    26.19%           0                 0         -
core/src/infrastructure/providers/linux/hwmon.rs               119                94    21.01%           8                 6    25.00%          68                56    17.65%           0                 0         -
core/src/infrastructure/providers/linux/kernel.rs              165                22    86.67%          19                 2    89.47%         161                 8    95.03%           0                 0         -
core/src/infrastructure/providers/linux/lspci.rs                83                20    75.90%           8                 2    75.00%          50                11    78.00%           0                 0         -
core/src/infrastructure/providers/linux/net_sys.rs             171               171     0.00%          13                13     0.00%          93                93     0.00%           0                 0         -
core/src/infrastructure/providers/linux/procfs.rs              261                24    90.80%          25                 3    88.00%         222                19    91.44%           0                 0         -
core/src/infrastructure/providers/sysinfo_provider.rs           54                54     0.00%           2                 2     0.00%          45                45     0.00%           0                 0         -
core/src/monitoring/state.rs                                   230                 0   100.00%          28                 0   100.00%         155                 0   100.00%           0                 0         -
core/src/persistence/archive.rs                                897               151    83.17%          61                 8    86.89%         581                89    84.68%           0                 0         -
core/src/persistence/preflight.rs                              297                 5    98.32%          27                 0   100.00%         190                 6    96.84%           0                 0         -
core/src/platform/factory.rs                                    18                18     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
core/src/platform/linux/cache.rs                                53                53     0.00%           4                 4     0.00%          38                38     0.00%           0                 0         -
core/src/platform/linux/gpu.rs                                 137               137     0.00%          14                14     0.00%          98                98     0.00%           0                 0         -
core/src/platform/linux/memory.rs                               43                43     0.00%           6                 6     0.00%          41                41     0.00%           0                 0         -
core/src/platform/linux/mod.rs                                  33                33     0.00%          11                11     0.00%          69                69     0.00%           0                 0         -
core/src/platform/linux/network.rs                               4                 4     0.00%           1                 1     0.00%           4                 4     0.00%           0                 0         -
core/src/settings/hardware_archive.rs                           36                 0   100.00%           4                 0   100.00%          26                 0   100.00%           0                 0         -
core/src/settings/mod.rs                                       328                37    88.72%          26                 8    69.23%         168                19    88.69%           0                 0         -
core/src/utils/formatter.rs                                    195                 8    95.90%          16                 0   100.00%         160                12    92.50%           0                 0         -
core/src/utils/ip.rs                                            65                 0   100.00%           5                 0   100.00%          33                 0   100.00%           0                 0         -
core/src/utils/rounding.rs                                      68                 0   100.00%           7                 0   100.00%          41                 0   100.00%           0                 0         -
src-tauri/src/_tests/commands/background_image_test.rs          39                 0   100.00%           6                 0   100.00%          21                 0   100.00%           0                 0         -
src-tauri/src/_tests/commands/settings_test.rs                 219                 0   100.00%          18                 0   100.00%         162                 0   100.00%           0                 0         -
src-tauri/src/adapters/tray.rs                                  91                91     0.00%           7                 7     0.00%          60                60     0.00%           0                 0         -
src-tauri/src/adapters/window.rs                               254                69    72.83%          21                 8    61.90%         195                47    75.90%           0                 0         -
src-tauri/src/app/startup.rs                                   188                87    53.72%          10                 3    70.00%         114                58    49.12%           0                 0         -
src-tauri/src/commands/background_image.rs                      22                 7    68.18%          11                 5    54.55%          19                 7    63.16%           0                 0         -
src-tauri/src/commands/hardware.rs                              62                62     0.00%          20                20     0.00%          68                68     0.00%           0                 0         -
src-tauri/src/commands/settings.rs                             578               578     0.00%         102               102     0.00%         497               497     0.00%           0                 0         -
src-tauri/src/commands/system.rs                                12                12     0.00%           6                 6     0.00%          10                10     0.00%           0                 0         -
src-tauri/src/commands/ui.rs                                    17                17     0.00%           2                 2     0.00%          13                13     0.00%           0                 0         -
src-tauri/src/commands/updater.rs                               97                97     0.00%          15                15     0.00%          66                66     0.00%           0                 0         -
src-tauri/src/enums/error.rs                                   115                10    91.30%           9                 1    88.89%          99                10    89.90%           0                 0         -
src-tauri/src/enums/hardware.rs                                194                 7    96.39%          16                 1    93.75%         120                 6    95.00%           0                 0         -
src-tauri/src/enums/settings.rs                                425                16    96.24%          26                 2    92.31%         289                10    96.54%           0                 0         -
src-tauri/src/infrastructure/database/migration.rs              66                 1    98.48%          10                 0   100.00%          86                 0   100.00%           0                 0         -
src-tauri/src/lib.rs                                           200               200     0.00%           5                 5     0.00%         120               120     0.00%           0                 0         -
src-tauri/src/lifecycle.rs                                      94                45    52.13%          11                 7    36.36%          57                34    40.35%           0                 0         -
src-tauri/src/main.rs                                            3                 3     0.00%           1                 1     0.00%           3                 3     0.00%           0                 0         -
src-tauri/src/models/hardware.rs                               375                83    77.87%          31                12    61.29%         275               100    63.64%           0                 0         -
src-tauri/src/models/hardware_archive.rs                         8                 0   100.00%           2                 0   100.00%          10                 0   100.00%           0                 0         -
src-tauri/src/models/settings.rs                               283                 0   100.00%          16                 0   100.00%         246                 0   100.00%           0                 0         -
src-tauri/src/services/background_image_service.rs             165                96    41.82%          16                10    37.50%          93                59    36.56%           0                 0         -
src-tauri/src/services/gpu_service.rs                           56                56     0.00%          11                11     0.00%          43                43     0.00%           0                 0         -
src-tauri/src/services/hardware_service.rs                      85                85     0.00%           4                 4     0.00%          51                51     0.00%           0                 0         -
src-tauri/src/services/language_service.rs                     101                 0   100.00%          18                 0   100.00%          57                 0   100.00%           0                 0         -
src-tauri/src/services/memory_service.rs                        12                12     0.00%           3                 3     0.00%           7                 7     0.00%           0                 0         -
src-tauri/src/services/motherboard_service.rs                   12                12     0.00%           3                 3     0.00%           7                 7     0.00%           0                 0         -
src-tauri/src/services/network_service.rs                       14                14     0.00%           1                 1     0.00%           8                 8     0.00%           0                 0         -
src-tauri/src/services/settings_service.rs                     321               143    55.45%          31                13    58.06%         269               130    51.67%           0                 0         -
src-tauri/src/services/system_service.rs                        22                22     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
src-tauri/src/services/ui_service.rs                            45                45     0.00%           8                 8     0.00%          36                36     0.00%           0                 0         -
src-tauri/src/utils/color.rs                                    66                 1    98.48%           4                 0   100.00%          26                 0   100.00%           0                 0         -
src-tauri/src/utils/file.rs                                    224                 5    97.77%          14                 0   100.00%         144                 4    97.22%           0                 0         -
src-tauri/src/utils/formatter.rs                                55                 0   100.00%           5                 0   100.00%          39                 0   100.00%           0                 0         -
src-tauri/src/utils/logger.rs                                   71                71     0.00%           1                 1     0.00%          38                38     0.00%           0                 0         -
src-tauri/src/utils/tauri.rs                                   138                 0   100.00%          17                 0   100.00%          82                 0   100.00%           0                 0         -
src-tauri/src/workers/mod.rs                                    32                32     0.00%           2                 2     0.00%          20                20     0.00%           0                 0         -
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        10021              3606    64.02%         944               414    56.14%        7065              2599    63.21%           0                 0         -

@shm11C3 shm11C3 merged commit 7a8e37e into develop May 1, 2026
26 checks passed
@shm11C3 shm11C3 deleted the remove/unused-file branch May 1, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants