Skip to content

fix: retry status API requests and report package mismatches - #22

Merged
Skaronator merged 4 commits into
mainfrom
fix/status-api-smoke-test
Nov 1, 2026
Merged

Skaronator merged 4 commits into
mainfrom
fix/status-api-smoke-test

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

Fix

  • Retry a failed status API request up to four times with a ten-second socket timeout; do not retry a successful response with incorrect metadata.
  • Report the request exit status or expected/actual package field instead of a generic failure. Do not dump unrelated API response fields or the generated API key.
  • Keep the existing real-image startup, exact version, package author link, and shutdown checks. No additional mock-test suite is added.

Validation

  • The updated smoke test passed against the real local stable sonarr image on amd64.
  • ShellCheck and Bash syntax checks passed.
  • Arm64 validation remains for PR CI. The previous Radarr arm64 status API failure did not reveal whether the request failed or metadata was incorrect; this change makes that distinction visible.

Dependency

Merge tuxcrate/github-actions#32 first, then rerun this PR to exercise the new production release rehearsal before merging. It catches the draft-finalization failure that previously escaped image PR checks.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Container preview: stable

Built for merge commit b8b0b404441bfe033f27b4ae68f24c584ed8d565 on linux/amd64,linux/arm64.

Pull the latest build of this PR:

docker pull ghcr.io/tuxcrate/sonarr-pr:pr-22-stable

Pull the build for this commit:

docker pull ghcr.io/tuxcrate/sonarr-pr:pr-22-stable-b8b0b404441bfe033f27b4ae68f24c584ed8d565

Pin this exact image (tags may change on reruns):

docker pull ghcr.io/tuxcrate/sonarr-pr@sha256:e113caf044e4d0026d5a883e71c5ab51c582fbfc0ced17df3f3ef42309743089

Build details. Preview images are for testing, not production.

Synthetic release.json (validation only)

Generated to validate release metadata. Revision r0 is a placeholder, not a published release revision; the digest identifies the tested multiarch artifact.

{
  "schemaVersion": 2,
  "image": "ghcr.io/tuxcrate/sonarr",
  "track": "stable",
  "version": "4.0.20.3014",
  "imageVersion": "4.0.20.3014",
  "revision": 0,
  "immutableTag": "4.0.20.3014-r0",
  "digest": "sha256:e113caf044e4d0026d5a883e71c5ab51c582fbfc0ced17df3f3ef42309743089",
  "aliasesAtPublication": [
    "4.0.20.3014",
    "4",
    "4.0",
    "latest"
  ],
  "platforms": [
    "linux/amd64",
    "linux/arm64"
  ],
  "sourceCommit": "b8b0b404441bfe033f27b4ae68f24c584ed8d565",
  "os_flavor": "alpine",
  "os_version": "3.24.3"
}

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Container preview: prerelease

Built for merge commit b8b0b404441bfe033f27b4ae68f24c584ed8d565 on linux/amd64,linux/arm64.

Pull the latest build of this PR:

docker pull ghcr.io/tuxcrate/sonarr-pr:pr-22-prerelease

Pull the build for this commit:

docker pull ghcr.io/tuxcrate/sonarr-pr:pr-22-prerelease-b8b0b404441bfe033f27b4ae68f24c584ed8d565

Pin this exact image (tags may change on reruns):

docker pull ghcr.io/tuxcrate/sonarr-pr@sha256:843619af3727da8c017c44cf16d80335d2997ec5f00ed8ba7463671700fcd9de

Build details. Preview images are for testing, not production.

Synthetic release.json (validation only)

Generated to validate release metadata. Revision r0 is a placeholder, not a published release revision; the digest identifies the tested multiarch artifact.

{
  "schemaVersion": 2,
  "image": "ghcr.io/tuxcrate/sonarr",
  "track": "prerelease",
  "version": "5.0.0.2907",
  "imageVersion": "5.0.0.2907-prerelease",
  "revision": 0,
  "immutableTag": "5.0.0.2907-prerelease-r0",
  "digest": "sha256:843619af3727da8c017c44cf16d80335d2997ec5f00ed8ba7463671700fcd9de",
  "aliasesAtPublication": [
    "5.0.0.2907-prerelease",
    "5-prerelease",
    "5.0-prerelease"
  ],
  "platforms": [
    "linux/amd64",
    "linux/arm64"
  ],
  "sourceCommit": "b8b0b404441bfe033f27b4ae68f24c584ed8d565",
  "os_flavor": "alpine",
  "os_version": "3.24.3"
}

@Skaronator
Skaronator merged commit fe61560 into main Nov 1, 2026
8 checks passed
@Skaronator
Skaronator deleted the fix/status-api-smoke-test branch November 1, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant