Skip to content

test: add lightweight runtime smoke tests - #14

Merged
Skaronator merged 2 commits into
mainfrom
test/runtime-smoke-tests
Oct 30, 2026
Merged

Skaronator merged 2 commits into
mainfrom
test/runtime-smoke-tests

Conversation

@Skaronator

@Skaronator Skaronator commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the automatically discovered tests/smoke.sh runtime hook and a minimal empty-job configuration.
  • Check daemon readiness through the control interface, the upstream version of the installed Debian package, and graceful shutdown.
  • Keep the exact Debian package-pin assertion in the Containerfile. The shared workflow currently passes the normalized upstream version to the hook, despite the documentation describing the full installation pin.
  • Use the production entrypoint without network access, privileged mode, ZFS pools, or a host ZFS kernel module.
  • Include bounded readiness checks, cleanup, and failure diagnostics without asserting unstable output formats.

Validation

  • Bash syntax and ShellCheck passed for the initial hook; ShellCheck and diff checks also passed after the version-comparison fix.
  • Hook passed against the existing local amd64 image with package version 0.7.0-1, including a run with the actual CI argument 0.7.0 after fixing the version mismatch.
  • No fresh builds or arm64 runs performed locally; PR CI validates the current metadata pins on both architectures.

@Skaronator
Skaronator enabled auto-merge (squash) October 30, 2026 12:01
@github-actions

Copy link
Copy Markdown

Container preview: stable

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

Pull the latest build of this PR:

docker pull ghcr.io/tuxcrate/zrepl-pr:pr-14-stable

Pull the build for this commit:

docker pull ghcr.io/tuxcrate/zrepl-pr:pr-14-stable-dababe1757cf31fe873140625fc328f1e89088de

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

docker pull ghcr.io/tuxcrate/zrepl-pr@sha256:50f3c8121de913be4e1ccfdff13f3a5d36ae13e766680f348a4d8e479db507b9

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/zrepl",
  "track": "stable",
  "version": "0.7.0",
  "imageVersion": "0.7.0",
  "revision": 0,
  "immutableTag": "0.7.0-r0",
  "digest": "sha256:50f3c8121de913be4e1ccfdff13f3a5d36ae13e766680f348a4d8e479db507b9",
  "aliasesAtPublication": [
    "0.7.0",
    "0.7",
    "latest"
  ],
  "platforms": [
    "linux/amd64",
    "linux/arm64"
  ],
  "sourceCommit": "dababe1757cf31fe873140625fc328f1e89088de",
  "os_flavor": "debian",
  "os_version": "13.7"
}

@Skaronator
Skaronator merged commit 448c4d9 into main Oct 30, 2026
6 checks passed
@Skaronator
Skaronator deleted the test/runtime-smoke-tests branch October 30, 2026 12:06
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