engineering

Choose a release policy for unavailable scan results

Define how your release pipeline handles a missing scanner result. Compare pending, unavailable and failed verdicts with a controlled staging trial.

TrustIvan · · 5 min read

A scan job times out during a normal release. The pipeline has a report for the previous artifact and a status line for the current job, but it has no completed result on the candidate. In this fictional release, that distinction determines whether the next action is to retry evidence collection or review an exception.

Distinguish unavailable evidence from a completed verdict

CandidateScanner resultExample gate handling
AComplete and within policyPermit for approved target
BComplete, violates ruleHold for policy remediation
CJob timed outAwait fresh result
DComparator report covers previous digestRequest current subject evidence

Define the policy when no required result is available, with escalation and time bounds if the organization authorizes exceptional treatment. Avoid taking scan job success as evidence that target coverage is complete. Confirm the result actually names the expected subject and assessment scope.

Make the decision scope readable at promotion

A release gate joins a piece of evidence to a policy at a particular point in a workflow. Write down the required evidence and who may interpret it for the target. Capture the immutable artifact, intended destination, policy revision and observation window when those fields affect the decision. The build and promotion jobs may run under different identities. Give the promotion job an authoritative record it can check even when the producer has finished and the human-readable job output has expired.

Choose the default based on the release environment and risk. For production, unresolved evidence may require a hold and an escalation path. For a lower-risk test environment, a time-bound exception could allow a rehearsal while the scanner recovers. Record which operator can approve such a decision and how deferred checks will be verified.

Use an approved pipeline fixture to simulate a delayed result and a scanner outage. Compare how test products and their CI integrations propagate those states, whether they identify the unresolved artifact, and which record they export. The Snyk comparison and Aikido comparison list relevant pull request and scanner coverage questions.

Rehearse the timeout, an incomplete report and a late result. Display the reason the release is waiting in each case. When the scanning service recovers in the fixture, repeat evaluation for the held immutable candidate. If production now requests a different digest, its evidence must be assessed on its own.

Rehearse each release decision

Test candidate C with a receipt that marks the job timed out and candidate D with a complete report that names the wrong digest. These cases should request different evidence. C waits for a new result after the scanning service recovers, while D needs evidence bound to the selected subject, even if the previous report is valid for another build. Record which candidate is eligible and which timed-out or stale record was observed. If results arrive out of order, the reviewed gate state should still represent the latest admissible evidence for the intended release.

Exercise a permitted emergency review on harmless staging inputs if the organization has such a path. Retain approving role, reason, exact scope, expiry and follow-up date. Show how the pipeline returns to ordinary review for the next release so a temporary decision remains scoped.

Give the policy operator the fixture records at two times. At the first point, link to the entry in the gate evaluation receipt and document the appropriate provisional state. At the second, record the new evidence and the resulting decision. The reviewer should be able to distinguish the original observation from later review work and see across both records which claim the new evidence resolves. Keep the original decision in history so a subsequent handoff can explain the progression.

Set an owner for the missing result

Ask someone who did not run the build to identify what the gate examined and why the destination accepted the decision. They should be able to find the policy revision, the observed subject, the conclusion and approval basis directly. Include timestamps and retain the previous verdict when a repeat evaluation produces a different outcome. Determine where this history lives when there are multiple release jobs or a deployment tool change. The operator should know whether a new review, an evidence re-collection or a policy escalation will move the release forward.

Share the delay and recovery steps with the on-call operator. The records should explain what evidence was missing, who accepted any exception and which result eventually resolved the release concern. Use the observed missing-result reasons to distinguish scanner operations work from policy work.

Allow the fixture to remain incomplete for one review cycle. Show the open item in the normal queue with its scope, known evidence and scheduled next action. Give it to an alternate operator to confirm they can pick up the work where it stopped.

Keep an example of a result accepted by the reviewer and one still awaiting action. Match each example to its evidence and timestamp. This gives the next owner a reference when an automated summary or a later report uses a different display label.

Compare timeouts separately from missing coverage in the operational count. A growing timeout category may belong with scanning operations, while candidate results that systematically omit a supported platform require a change to the collection profile.