mirror of
https://github.com/oblien/openship.git
synced 2026-11-16 06:57:12 +00:00
* fix(updates): report image services with an unknown deployed digest instead of up to date When the active service_deployment row has no image_digest — a carried service loses it when a per-service update upserts the row — the feed compared digests only when both were known and fell back to the equal ref strings, so the service read as up to date and `?behind=1` dropped the project entirely. The deployed side is now marked unknown, not current: evaluateDrift flags image services whose row has no digest, and the feed resolves those against the live daemon before rendering — the running container's image ID against the image ID the configured tag resolves to right now, the same test the deploy pipeline uses before carrying an unchanged service. A mismatch is behind; matching images recover the tag's RepoDigest onto the row when the registry comparison agrees; anything the daemon cannot answer stays unknown and the project is kept visible with an `unverified` flag instead of being dropped. Fixes #1702 * fix(updates): narrow the live runtime to DockerRuntime before resolving unknown digests `resolveDeploymentRuntimeForRead` returns a `RuntimeAdapter`, and `prepareDeploymentImage` is Docker-only, so the Typecheck job failed with TS2345 at local-image-drift.ts:79. Guard the call with the same `instanceof DockerRuntime` check `recordDeploymentArtifacts` uses: other runtimes leave the services unknown, and the runtime is still disposed on every path. --------- Co-authored-by: Hydra <abdelhamedmo59@gmail.com> |
History
|
|
|---|---|---|
| .. | ||
| advisory-feed.test.ts | ||
| drift-evaluation.test.ts | ||
| host-security.test.ts | ||
| image-apply.test.ts | ||
| runtime-image-check.test.ts | ||
| runtime-probes.test.ts | ||
| runtime-source.test.ts | ||
| runtime-update.test.ts | ||
| security-inventory.test.ts | ||
| security-notice.integration.test.ts | ||
| security-signature.test.ts | ||
| security.service.test.ts | ||
| updates-sdk-parity.test.ts | ||
| upstream-cache.test.ts | ||