Skip to content

fix(update): remember a failed update and skip a refused version - #348

Merged
nervouna merged 4 commits into
mainfrom
342-update-problem
Dec 4, 2026
Merged

nervouna merged 4 commits into
mainfrom
342-update-problem

Conversation

@nervouna

@nervouna nervouna commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes #342

Acceptance

  1. bash macOS/scripts/test.sh settings: pass (exit 0, 10 PASS update lines, including update problem store and update failures).
    Failing first on the old code: before the behaviour was added, the first new expectation failed:
    FAIL .../UpdateTests.swift:131 A failed automatic download is remembered and retried: nil.
    Repeated download, with the skip rule temporarily removed (restored afterwards):
    FAIL .../UpdateTests.swift:161 The version that the helper did not install is not downloaded again: ["updateDownload:begin", "updateDownload:failed", ..., "updateInstall:failed", "updateDownload:begin"]
  2. bash macOS/scripts/test.sh updater: pass (PASS updater: verification order, ownership, refusals, sessions, lifetime, PASS 1 units: updater).
  3. bash macOS/scripts/build.sh: pass (exit 0).
  4. build_swift_test settings-ui-tests build/settings-ui-tests: compiled (exit 0). The harness was not run.
  5. docs-lint.py, comment-lint.py --base origin/main, style-lint.py --base origin/main: all pass (exit 0). style-lint first flagged three long lines; fixed in the same commit.
  6. git status --porcelain: empty after commit.

Deviations and open issues

  • The first red run stopped at the first new expectation, so the repeated-download output above comes from a second run with the skip rule removed, not from the first run on the old code.
  • Settings UI harness: compiled only, not run, as the spec requires. The new settings.updates.problem and settings.updates.package checks are therefore unverified on screen.
  • The IFUpdaterAccess settings view section is untested visually; the date string 12月4日更新失败 comes from Date.FormatStyle with locale zh_Hans and was not checked in a rendered window.
  • The test.sh settings run left build/ artifacts, all inside the worktree and not committed.

Delivery record

Implementer model Implementer tokens Rework rounds Dispatch to merge Defects found in review Defects found in acceptance
claude-haiku-5-5 163221 (44 tool calls) 0 51m 39s (14m 06s implementation) 2 (README order, duplicate accessibility identifier), fixed by the orchestrator 0

A failed download, a refused install or an unreachable helper is kept
in Settings > Updates with its date and message. A refused or
unreachable automatic update is not downloaded again by the daily check.
The record is hidden once a download finishes, an install succeeds or a
build at least as new as the version runs.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T07:17:59.180585Z ff1caf7 PR opened
🔒 Security Review ✅ Completed 2026-12-04T07:21:53.878945Z ff1caf7 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.

The identifier was applied to both texts, so the Settings UI check found two matches. Also move the README sentence behind the paragraph's description of automatic updates.
… changes

Sparkle reports the change through KVO, the fake did not, so the manual Settings UI check stopped before the new update problem assertions.
@nervouna

nervouna commented Dec 4, 2026

Copy link
Copy Markdown
Owner Author

Orchestrator review: accepted

On d9c27366d986. main merged in as 0c32510, no conflicts.

# Acceptance item Result
1 test.sh settings pass: PASS 1 units: settings, on c2fafc1; d9c2736 changes only the Settings UI harness
2 test.sh updater pass: PASS updater: verification order, ownership, refusals, sessions, lifetime, on c2fafc1
3 build.sh pass: exit 0 on c2fafc1
4 settings-ui-tests compiles pass: Build complete on d9c2736
5 docs, comment and style lint pass: exit 0 each on d9c2736, base origin/main
6 git status --porcelain pass: empty on d9c2736

Own checks: Rendered the new row for an unreachable helper, a refused version, a failed download and a long message, in light and dark. Ran checkUpdateSettings in a real window (moved to the start of the suite for that run): PASS update settings layout. Two defects found and fixed here: the README sentence separated the automatic-update toggle from its explanation, and the settings.updates.problem identifier was on both texts (c2fafc1). The fake updater did not notify the view, so the check stopped before the new assertions, on main too (d9c2736).

Deviations: Accepted: the store tests cover a new API and cannot fail on the old code; the repeated download was shown failing with the skip rule removed.

Open for the user:

@nervouna
nervouna merged commit d5c85d8 into main Dec 4, 2026
7 checks passed
@nervouna
nervouna deleted the 342-update-problem branch December 4, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed updates show nothing, and an uninstallable version is downloaded every day

1 participant