Skip to content

fix(plugins): report refused automatic updates from Check Plugin Updates - #2251

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/plugin-update-task-failures
Oct 15, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/plugin-update-task-failures

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #2239
Related issue: #1223
Validation tasks: unblocks #1224 C1; unblocks #1225 C1

When an automatic plugin update is refused during the scheduled or manual Check Plugin Updates task, for example because the new binary doesn't match its catalog checksum, the old version keeps running but nothing records the refusal. The task finishes as completed, nothing is logged, and the admin has no way to learn that the update was attempted. Only the startup update pass logged these failures.

With this change the task run fails when any update or default install was refused, and the server logs a warning naming each plugin and the reason.

Approach

AutoUpdateService.Check now logs each per-plugin failure itself, so every caller gets the warnings, and Run no longer logs them separately. CheckPluginUpdatesTask still stores the summary and reports its counts, then returns an error listing each failure when FailedOperations is above zero. The admin tasks API already reports a failed run as "Task failed. Inspect administrator diagnostics for details." without the error text, so the reason reaches the admin through the server log. A partial-success status for tasks would need a new task state, which is more than this fix needs.

Validation

  • Go tests cover a refused update failing the task with the plugin and reason, a clean run still succeeding, and Check logging a recorded failure.
  • make lint-changed passes.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-2251/

Surface and build: web admin Scheduled Tasks at desktop and phone width, and the server log. Before: main (28d6c08c1); after: 024c2d37e.

Risks

A server whose catalog keeps listing a bad update now shows Check Plugin Updates as failed on every run until the catalog is fixed or the plugin's update policy is changed. That is the intended signal, but it's a new failed task on such servers.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code, GitHub CLI, Playwright
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Two independent Claude Code review passes (claude-opus-5-5) read this change together with the other [v1] Plugin management / marketplace #1223 fixes, checking for correctness. Neither found an issue in this change.

A failed automatic update during the scheduled or manual Check Plugin
Updates task was recorded only in the task's result data: nothing was
logged and the run finished as completed. Check now logs each per-plugin
failure for every caller, and the task fails with each plugin's reason
when any update or default install was refused. The old version keeps
running as before.

Closes Silo-Server#2239
@silo-kody

silo-kody Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T21:52:08.661857Z 024c2d3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dc77671c-20b9-4dd6-a297-aacbfeee0234

📥 Commits

Reviewing files that changed from the base of the PR and between 024c2d3 and ed06a90.


📒 Files selected for processing (2)
  • internal/plugins/auto_update.go
  • internal/plugins/auto_update_defaults_test.go

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9e03bec9-fd69-42f6-b11e-c84337437787



📥 Commits

Reviewing files that changed from the base of the PR and between 0c7e419 and 024c2d3.




📒 Files selected for processing (4)
  • internal/plugins/auto_update.go
  • internal/plugins/auto_update_defaults_test.go
  • internal/taskmanager/tasks/check_plugin_updates.go
  • internal/taskmanager/tasks/check_plugin_updates_test.go



Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.





📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The update check now logs recorded plugin failures. The Check Plugin Updates task returns an error when its summary reports failed operations, including the failure count and reasons.

Changes

Plugin update failure reporting

Layer / File(s) Summary
Log recorded update failures
internal/plugins/auto_update.go, internal/plugins/auto_update_defaults_test.go
Check logs each recorded failure. Run relies on Check for these logs and continues to warn on whole-pass errors. The test checks that a required-plugin lookup error appears in the logs.
Return errors for failed updates
internal/taskmanager/tasks/check_plugin_updates.go, internal/taskmanager/tasks/check_plugin_updates_test.go
Execute returns an error when the summary reports failed operations. Tests check that failures include the plugin and reason, and that a summary without failures succeeds.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: quick104





Merge Risk: 🟠 High · up to 024c2

Plugin update failures can put credentials from diagnostic URLs into server logs and task history. Sanitize failure text before merging.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed The changes satisfy the coding requirements in #2239. AutoUpdateService.Check logs every recorded per-plugin failure with the failure text, including the plugin name and reason. `CheckPluginUpdatesT…
Out of Scope Changes check Passed The changes stay within #2239. The Run logging change prevents duplicate failure logs after Check becomes the common logging path. The added tests verify the required task and logging behavior. No…
Title check Passed The title clearly identifies the main change: reporting refused automatic plugin updates from the Check Plugin Updates task.
Description check Passed The description directly explains the problem, implementation, validation, risks, and user-visible behavior for refused automatic plugin updates.



✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR





  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@Quick104 Quick104 added priority: P2 Limited scope, workaround exists, or polish impact: usability Core flow broken or severely blocked labels Oct 10, 2026 — with Cursor
Comment thread internal/plugins/auto_update.go Resolved
@Rhainland Rhainland mentioned this pull request Oct 10, 2026
12 tasks done
Failure text now reaches the task error as well as the log and result data, so mask credential assignments and URL userinfo when a failure is recorded.
@silo-kody

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: usability Core flow broken or severely blocked priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] A failed automatic plugin update isn't logged or shown when Check Plugin Updates runs

2 participants