Software engineering · Transition to production

Production-Ready Vision Software: Testing, CI/CD and Deployment

Modular code, the test pyramid and release manifests distinguish a working notebook from a maintainable production application. Versioned models, runtimes, configuration and test data connect CI/CD with shadow mode, staged rollout and rollback. Health checks, event records, access management and maintenance handover identify where software tests stop and physical line acceptance begins.

Article sectionsWhy is a model that works in a notebook not production-ready?How should a modular code structure be organized?How is the test pyramid adapted for image processing?How do model and software versioning work together?How is a CI/CD pipeline adapted for production?Does Docker solve every problem?Why is configuration management important?Logging and observabilityHealth checks and watchdog strategyNetwork security and access managementRegression testing after changesStaged rollout, shadow mode, and pilot deploymentHow do you roll back safely?Maintenance and the long-term software lifecycleWhy is versioning test data as important as versioning code?How are tolerances set in golden image tests?How should a release manifest be structured?How do you distinguish error logs from event logs?What boundaries must be maintained when using shadow mode realistically?Application security and the supply chainHow do you write an operational maintenance document?Which tests should be automated in a CI pipeline?Matching the model version with the configuration versionHow do you choose a pilot for a staged rollout?How do you write an incident investigation report?Why does a security update require a dedicated plan?The minimum documentation package for handoverHow do you design regression tests for model outputs?Change management for production deploymentOperational security is as important as model accuracyWhat should health monitoring and observability track?An example version change: why does a working model need renewed acceptance?Frequently asked questions

Why is a model that works in a notebook not production-ready?

A notebook makes it easy to experiment and view results. In production, however, image processing software is expected to manage the camera connection, detect faulty or missing images, maintain the model version, communicate reliably with the PLC, and run continuously for months. State that changes when a notebook cell is rerun can lead to untraceable and irreproducible results in an actual production system.

Production-ready software is not just a model that exposes an API. The system's startup, operation, failure, maintenance, update, and rollback lifecycles must be supported. Questions such as which camera will be used, which model version is loaded, who changed the decision threshold, which product a message matched, and how the system was started after a failure must always be answerable.

Software engineering is therefore not a packaging step added to an image processing algorithm afterward; it is the core discipline that determines the system's reliability and verifiability.

Layers of responsibility in vision softwareKeeping dependencies unidirectional makes test isolation easier.Hardware adapters and abstractionImage / signal data modelsModel / rule decision coreIntegration / communication servicesOperations, logs, and application interface
Figure 1. Keeping dependencies unidirectional makes test isolation easier.

How should a modular code structure be organized?

Image acquisition, preprocessing, model execution, decision logic, the PLC adapter, and monitoring should be separated through explicit interfaces wherever possible. This allows preprocessing and decision logic to be tested without a real camera, and an emulator to replace the PLC. A change in the camera SDK does not force you to rewrite the entire decision application. These boundaries do not have to be separate processes or microservices; a modular structure within a single application may be sufficient.

Component contracts must clearly specify data types, units of measurement, and error behavior. For example, image dimensions should be expressed as width×height, timestamps in a specified time domain, and coordinates in pixels or a physical-world reference frame. A function returning None on failure has a completely different outcome from returning an old frame. Hiding an error condition increases the risk of an incorrect quality decision in production.

Wherever possible, the vision layer should not be aware of business rules outside the model implementation. Obtaining an anomaly score and rejecting a product because of that score are different responsibilities. This separation lets us change a threshold without repackaging the model and validate the decision change separately.

How is the test pyramid adapted for image processing?

Unit tests check small components such as color conversion, ROI boundaries, normalization, coordinate transformation, thresholds, and error codes. Integration tests bring dependencies such as a camera SDK or PLC emulator together. System tests examine end-to-end behavior with a real camera, GPU, network, and rejection mechanism. Each level catches different errors; none should be considered sufficient on its own.

The test pyramid and example expectationsUnit tests do not replace acceptance testing on the physical line.Unit testImage size / decisionruleFast and frequentIntegration testSDK, PLC emulatorDependenciesSystem testReal line, timing, errorsCostly but critical
Figure 2. Unit tests do not replace acceptance testing on the physical line.

Another category in image processing testing is the golden image regression set. Specific defective and normal examples are stored with known expected outputs or tolerances. If the mask shape, bounding box coordinates, or product decision changes in a new version, the difference is reported. However, strict pixel-by-pixel equality can be unnecessarily demanding in some accelerated runtimes; comparison tolerances and quality acceptance criteria must be defined separately.

When testing a camera module, checking only that images arrive is not enough. Missing frames, incorrect formats, reconnection, buffer lifetime, and timestamp consistency must also be tested. For the PLC protocol, scenarios involving late ACKs, duplicate messages, and incorrect sequence numbers must be tried.

How do model and software versioning work together?

The model weights, preprocessing configuration, decision threshold, and inference runtime jointly determine actual production behavior. If only the name model_v2.onnx is retained, it may not be possible to establish later what results the same model produced with a different threshold. Hashes or unique version identifiers and a deployment manifest can be used for this purpose.

This manifest may include the application version, model hash, configuration hash, runtime version, GPU driver, camera profile, and required calibration data. Production decision records can also reference the relevant versions. When an operator says, "It was correct yesterday, but it is wrong today," this makes it possible to investigate systematically what changed.

How is a CI/CD pipeline adapted for production?

Following a code change, automated unit tests, static checks, dependency scanning, golden image regression testing, and artifact creation can be performed. However, before making changes on the production line, a staging environment or test station, shadow mode, and an approved pilot process may be required. A successful CI run is not always sufficient justification for sending new decision software directly to a live PLC.

The deployment chain from change to productionAutomated production decisions must not be changed without approval and a record.Review codeCI testsModel + data hashStagingShadow modePilot / rollback
Figure 3. Automated production decisions must not be changed without approval and a record.

The commissioning process should proceed through a quality gate: the data used to evaluate the release candidate, its behavior on critical defects, its latency, hardware compatibility, and rollback plan are documented. Whether the gate is passed depends more on the facility's acceptance requirements than on a test result in the code repository.

Continuous automated redeployment in the production environment may be unsuitable for some applications. A controlled release according to the time of day, shift, and production schedule, approval from the OT team, and a measurement report may be required. A DevOps approach does not mean uncontrolled deployment.

Does Docker solve every problem?

Container packaging can make dependencies more predictable and make it easier to run the same application in different environments. However, the camera driver, USB device access, kernel modules, GPU driver, and physical PLC connection are either outside the container or shared with the host system. The same image should therefore not be assumed to produce exactly the same device behavior at every site.

Docker's official best practices emphasize reducing unnecessary packages, separating dependencies, and producing reproducible images. On an industrial machine, however, an automatically restarting container may incorrectly enter a "ready" state before the device has connected. A health check should monitor not just whether the process is running, but also whether the required camera/PLC dependencies are healthy.

Why is configuration management important?

The model threshold, camera exposure setting, product ROI, PLC address, and log level do not all have the same importance. An incorrectly changed image quality parameter can increase the missed-defect rate. Parameters that affect quality decisions must therefore be versioned and changed only by authorized people. Secret keys and credentials must not be written into the source code either.

Alarm types for three different faultsAlarm severity is determined by the facility's acceptance criteria.EventCriticalWarningInformationCamera loss✓——Rising p99—✓—Version update——✓
Figure 4. Alarm severity is determined by the facility's acceptance criteria.

A sensible configuration split is between model/decision parameters, site connection parameters, and operating parameters. While the model threshold requires validation, log retention duration may follow a different approval workflow. The settings that site personnel may change are explicitly restricted; changes are recorded with the time and user.

Logging and observability

A print() output may not be enough to debug events. Every critical decision must be logged with fields such as product ID, camera ID, model version, result, latency, error code, and PLC ACK. Records from different services can then be linked using a correlation key. If clocks differ, the source used to generate the timestamps must also be specified.

Three layers of configurationUnrestricted changes on site without versioning and authorization are risky.Model settingsWeights, threshold, ROISite settingsCamera IP, PLC tag,encoderSystem settingsLogs, monitoring, permissions
Figure 5. Unrestricted changes on site without versioning and authorization are risky.

Overly detailed logs can also cause problems: writing hundreds of lines for every frame can create a disk I/O bottleneck. Operational events, performance measurements, and detailed debug records may have different retention/sampling policies. More detailed logging can be enabled when an error occurs, but it must be remembered that this change may increase latency.

Observability is more than just logs. Metrics (dropped frames, p99, GPU/RAM, connection status), event traces, and user-facing health indicators work together. It must be decided which alarms reach the shift operator and which reach the software team.

Health checks and watchdog strategy

If the camera service is running as a process but is not producing new frames, a basic process check may consider the system healthy. A meaningful application health check examines indicators such as the time of the last successful capture, the last decision, the age of pending products, the PLC response, and model inference errors. Automatically restarting the system after every failure is not, by itself, a safe solution; what happens to products during the restart must be defined.

A major source of errors is the PLC continuing to hold its last OK bit when the decision service crashes. Connection validity and decision validity must therefore be assessed separately. Production behavior under uncertainty must be approved with the process owner, and general-purpose software must not replace a certified safety system.

Network security and access management

In the operating environment, access boundaries for cameras, PLCs, HMIs, MES, and development computers can be considered separately. There is no need to expose every port to the corporate network. Appropriate authentication, certificate management, network segmentation, and an update policy reduce risks. An operator's permission to change the model threshold may differ from their permission to view line records.

Production lines sometimes run for long periods without internet access. License checks, log collection, and monitoring services must therefore support offline behavior. When verifying a software update's signature and artifact integrity, the required packages must also be checked to ensure they come from trusted sources.

Regression testing after changes

Accelerating a model may reduce small-object detection performance. An image format change may reverse the color order. A fix in the PLC adapter may break product ID matching in the result message. Release testing is therefore not limited to local tests of the modified function; end-to-end regression testing at the product level is required.

Event record schemaCritical events can be traced using a correlation key.TimestampProduct + image IDModel / config hashDecisionLatencyPLC ack
Figure 6. Critical events can be traced using a correlation key.

A sample set should be prepared by subgroup: critical defects, low contrast, glare, objects at the edge of the camera view, two closely spaced products, late ACKs, frame loss, and line restarts. The test report should include not only F1 or FPS but also operational metrics such as incorrect product decisions and timeouts.

Staged rollout, shadow mode, and pilot deployment

A new version can initially produce results without making production decisions. In shadow mode, decisions compared with the existing system are recorded. However, triggering the actual PLC output and the valve separating a product on time are not validated in shadow mode. A controlled pilot and on-site acceptance testing are therefore required in the next stage. The product family or shift included in the pilot must be documented.

Operational metrics for version comparisonIllustrative numbers; metric units and scope must be consistent.Old p9965New p9959Old fault alarms40New fault alarms32
Figure 7. Illustrative numbers; metric units and scope must be consistent.

Pilot success criteria must be written in advance: p99 latency, recall on critical defects, false alarm volume, operator review workload, and camera/PLC connection errors. Changing the criteria during the test to fit the results makes reliable comparison difficult.

How do you roll back safely?

When problems occur after switching to a new model version, simply replacing the weights file with the previous version may not be enough. If the runtime, configuration, or driver has changed, the old model may also encounter problems in this environment. The rollback package must include the application + model + configuration + compatible runtime components.

Safe rollback workflowRollback covers the model, runtime, and configuration together.New version pilotAlarm / thresholdDecision authorityPrevious versionRecord + verify
Figure 8. Rollback covers the model, runtime, and configuration together.

A rollback decision can also be tied to automatic or manual conditions: a critical missed-defect threshold, excessive latency, connection count, or operator approval. However, automatic decisions that change live line control must be validated by the process owner. After rollback, tests must confirm that the old version is actually running and that the PLC is handling the correct product.

Maintenance and the long-term software lifecycle

The process does not end once the system has been successfully commissioned. New product variants, camera replacements, operating system updates, different lighting conditions, and material batches can create new failure patterns. A regular checklist should include versioned comparisons of camera settings, storage capacity, and monitoring of decision statistics.

Production maintenance cycleEvery fix can introduce a new distribution shift.ObserveClassify the problemCollect site dataFixRegression testingDeploy under control
Figure 9. Every fix can introduce a new distribution shift.

To manage technical debt, it is useful to distinguish the sources of problems: insufficient data, model errors, optical setup, SDK drivers, performance, or PLC integration. Recommending new model training for every problem can waste resources. With a controlled change process, the system can be updated and evolve without losing its reliability.

Why is versioning test data as important as versioning code?

A change to a model or preprocessing may produce different results on different images. The image regression set must therefore be versioned just like code. File hashes, label definitions, product family, capture conditions, and expected decisions are recorded. When the test set changes, the conditions under which it is fair to compare the new and old results directly must be explained.

The test set should specifically include critical defects, low-contrast examples, scratches at the mask boundary, glare that produces false alarms, and hard negatives. Some of these images may be suitable for automated comparisons of expected masks or decisions; others may require human review. An automated test does not mean that the entire quality assessment can be automated.

How are tolerances set in golden image tests?

Floating-point computations on different runtimes and GPU architectures can produce small numerical deviations. Requiring bit-level equality across all output tensors is therefore sometimes unnecessarily strict. Differences that change a critical defect decision, however, matter. Alongside numerical tolerances, regression tests must also check product-level acceptance/rejection and mask boundaries.

For example, an average boundary difference of 0.3 pixels in segmentation may be insignificant for one application but become critical in metrological measurement with a 0.1 mm tolerance. Tolerances must be determined by process requirements, not the model family. A goal of merely reproducing the old model's behavior can also perpetuate its errors; the correctness of expected results should be checked periodically.

How should a release manifest be structured?

For a production package, versions of the application, model, preprocessing, decision thresholds, camera profile, and PLC contract can be stored together. This prevents the question "Which version?" from being reduced to a single filename during an incident. Hash fields in the manifest can verify which components were actually deployed and can be used alongside human-readable version numbers.

The system should issue a warning if the version running on the device differs from the version recorded in the central repository. An operator unknowingly copying an older configuration file can change the model's expected behavior. Change control must cover not just code, but all parameters affecting quality.

How do you distinguish error logs from event logs?

Not every INFO entry is a quality audit trail. Debug logs describe what the driver did, whereas production event records provide evidence of which decision was made for which product. These two types of data may have different retention and access policies. Mandatory production events must be preserved even if the application deletes detailed debug logs.

A decision event may include the product ID, camera ID, model version, decision, and timestamp. The same event's correlation ID is used in the error log. A camera timeout, PLC retry, and HMI alarm can then be linked retrospectively. Whether the records rely on a single PC's clock must also be documented.

What boundaries must be maintained when using shadow mode realistically?

In shadow mode, the new model's decision is not applied to the physical line; it is compared with the existing system's decision. This is a low-risk way to understand differences in false alarms and critical defects. However, PLC output timing, the effect of the rejection mechanism, and the effect of multiple messages on the production sequence are not tested in real operation in shadow mode. A controlled pilot is required after successful shadow-mode testing.

The image stream used in shadow mode must represent real production conditions. A shadow model running only on selected easy products provides no evidence of generalization. Subgroups can be created for product batches, shifts, and lighting changes. Decisions that disagree with the operator should be reviewed separately.

Application security and the supply chain

The origin of a model file, runtime library, or container image must be known. Version pinning, integrity verification, dependency scanning, and permission boundaries reduce the attack surface. Leaving unnecessary network services enabled on a computer in the production network or retaining passwords used during development is inappropriate.

Libraries changed during updates may affect the camera driver or GPU runtime. Although a security update is important, the application's production compatibility must therefore be tested. A maintenance window and rollback plan are prepared where necessary. Security and operational stability are not opposing goals, but requirements that must be managed together.

How do you write an operational maintenance document?

When a maintenance technician sees that the screen has gone dark, they should know which device to check, what the error code means, which actions they can safely take, and when to contact the specialist team. The documentation should not consist solely of API names familiar to the developer. Camera reconnection, configuration verification, and model checks can be explained step by step.

The documentation must be linked to the tested version. If the replacement procedure changes with a version update, the maintenance notes are updated. Avoiding dependence on a single developer is an important criterion for production readiness.

Which tests should be automated in a CI pipeline?

With every change, tests for input/output contracts, image preprocessing, decision rules, and model regression can run automatically alongside code style and type checks. For example, the pipeline should fail if an ROI defined in the configuration file extends beyond image boundaries. Similarly, an incorrect camera color order or an unexpected model output shape can be caught early.

It may not be possible to run all device-dependent tests in a CI environment. If the camera SDK, actual GPU driver, or PLC access is unavailable, emulators and contract tests are used; however, the risks these tests do not cover must be stated explicitly. The need for staging on the target device and subsequent FAT/SAT remains.

Matching the model version with the configuration version

A model consists of more than weights alone. The normalization used during training, input resolution, color order, ROI, and decision threshold may affect the result. For this reason, the production model_hash and config_hash must be stored together. Even if the model stays the same, this makes it possible to understand why product decisions changed when the threshold was modified.

Recording these versions in logs is not just for debugging. Suppose a customer disputes the rejection of a product on a particular date. Conducting an audit becomes difficult without knowing which model and configuration made the decision. Retrospective explainability rests on disciplined engineering records.

How do you choose a pilot for a staged rollout?

A controlled pilot can be conducted by applying a new version only to a low-risk product or a particular line. The pilot's purpose is not to assume that the model will perform well across all production, but to discover unexpected on-site errors with a smaller impact. If the pilot group is not representative of product batches, lighting conditions, and shifts, positive results should not be generalized.

During the pilot, automated results, operator confirmations, missed critical defects, p99 latency, reconnections, and PLC decision matching are monitored together. If the predefined acceptance conditions have not been met at the end of the test, the rollout is not expanded. This makes the decision evidence-based rather than intuitive.

How do you write an incident investigation report?

When a false rejection or late decision occurs in production, the report should not merely state "the error was fixed." It should document the incident time, affected products, system version, camera and PLC records, observed symptoms, possible causes, experiments performed, and permanent preventive action. If the root cause has not yet been confirmed, it must be identified as a hypothesis.

For example, p99 latency may have increased while GPU inference remained unchanged. If records show that a disk archiving task delayed CPU preprocessing, simply retraining the model will not solve the problem. Establishing this distinction prevents the same problem from recurring.

Why does a security update require a dedicated plan?

A security update to a GPU driver or camera SDK may be necessary for the system, but it may change model runtime compatibility. The version, validation set, and rollback package must therefore be prepared before the update. The update is applied during a maintenance window, and critical functions are tested. This approach is necessary not to postpone security updates, but to apply them safely.

Update packages must be verified through trusted sources and integrity checks. Leaving unnecessary development tools on the production network can increase the attack surface. Roles, secrets, network access, and backup policies are also part of the operating process.

The minimum documentation package for handover

When a vision system is handed over to someone else, the package should include an architecture diagram, camera profile, model and configuration manifest, PLC data contract, alarm codes, update and rollback procedures, health metrics, and the final acceptance report. These documents should be interlinked and kept consistent with the live version.

In a practical maintenance test, another engineer can be asked to use the documentation to verify the camera connection, start the system, and explain an error code. If this exercise fails, maintainability is lacking even if the software works. Production readiness includes the ability to operate the system safely without the developer.

How do you design regression tests for model outputs?

Unit tests in software engineering can verify that camera frames can be opened and correct JSON can be produced; they do not, however, guarantee that updated preprocessing or a model engine will make the same quality decision for the same product. A useful resource for vision systems is therefore a golden dataset: a versioned, highly representative validation set. The set should not consist solely of defect-free examples; it should include challenging on-site subgroups such as fine scratches, low contrast, product edges, reflections, different shifts, and production batches.

The outputs of each version are compared on the same test set. Pixel masks, bounding box coordinates, or probability scores may differ slightly because of floating-point operations. Requiring exact bitwise equality for every output may therefore be inappropriate. Acceptance rules can be defined, such as stricter checks on examples close to decision thresholds, separate tolerances for general tensor differences, and zero unexpected decision changes for critical defects. These rules must be written before testing begins and must not be relaxed after viewing the results.

The camera calibration version also matters in image processing tests. If a geometry or ROI parameter changes, the same raw frame can be transformed into different coordinates. The measurement result may change even if the model weights remain the same. The model, optical configuration, calibration, decision thresholds, and software version must therefore be tracked as parts of a single compatible deployment package.

Change management for production deployment

Before a model package is put into production, its differences from the previous version, expected benefits, and rollback conditions must be documented. Simply copying a new model file is not a safe deployment. It must be decided in advance which machines the configuration will apply to, which product families it covers, whether the queue will be drained during the version transition, and what the operator will see. A single-station pilot, shadow mode, or controlled on-site comparisons resembling A/B testing can be used; however, which version issues the physical rejection command must be explicitly restricted.

Rollback is not just a matter of restoring the previous weights file. The runtime, model engine, threshold, camera ROI, calibration, and communication contract may have changed. File and driver incompatibilities may arise when restarting the old version. The rollback scenario is therefore tested on the real device; the time from restoring the backed-up image and configuration until the system handles the first product correctly is measured.

A message saying that the service appears healthy is not sufficient evidence of deployment success. Separate verification indicators are needed for image acquisition, product matching, model accuracy, PLC communication, and MES records. The new version may run for an hour without any defective product passing through; approval based only on good products does not validate defect-detection behavior in that case. Controlled test pieces and versioned validation examples close this gap.

Operational security is as important as model accuracy

Unauthorized software or remote access on the production computer can affect physical production outcomes. Connections between the camera, PLC, and office networks must therefore be enabled only as needed; device access must be restricted by role, and credentials must not be written to logs. Mechanisms such as OPC UA, TLS, and certificates do not provide security on their own unless configured correctly. NIST's operational technology security guide also emphasizes making security decisions in conjunction with process reliability and safety requirements.

Using containers can reduce some deployment errors, but it does not eliminate compatibility requirements for hardware drivers, the camera SDK, GPU runtime, and host operating system. A trustworthy software supply chain requires the image source, dependency list, signature/hash, vulnerability scanning, and update policy. Linking a production image to an immutable version identifier rather than identifying it only by its latest tag supports reproducibility. Security updates are also managed through risk assessment and regression testing rather than introduced without planning.

What should health monitoring and observability track?

A service process being up does not show that the system is production-ready. The camera connection may have dropped, the model may not have loaded, or the PLC acknowledgment may not be arriving. Health checks can therefore be divided into several levels: whether the application process is running, whether critical dependencies are accessible, whether production decisions are completed on time, and whether the industrial output is verified. The conditions under which the "Ready" signal is withdrawn during a critical problem must be determined together with production automation.

A basic monitoring dashboard may include metrics such as the number of images acquired, missing frames, inference time, p95/p99 end-to-end latency, memory usage/temperature, PLC timeouts, product matching errors, and the distribution of automated/manual decisions. However, transferring all raw data from every image to a central logging system can be costly and unnecessary under the retention policy. Identifiers and events can be kept in the event log, high-volume numerical measurements in the metrics system, and sample images in an appropriate archive.

Good maintenance documentation does more than give the operator an alarm list. It explicitly states the probable cause of an alarm code, a safe first step, permitted reset conditions, the role authorized to intervene, and the logs needed to investigate the fault. Actions taken after a failure are recorded. This structure ensures that system reliability does not remain dependent on personal knowledge when the engineer who developed the project leaves the factory.

An example version change: why does a working model need renewed acceptance?

Suppose version v1.4 of a defect-detection model is used on a production line, and the new version, v1.5, offers a better test score. The new version's installation package may involve more than a changed weights file: the input image size may have increased from 640 pixels to 768 pixels, the threshold may have been raised from 0.45 to 0.50, and the runtime may have been updated. Each of these changes can affect latency and the decision distribution in production. A single "model v1.5" label is not enough to explain the differences.

The change control form lists the old and new versions of every component. Differences in quality on the golden test set, end-to-end p99 latency, power consumption, and initial model loading time are compared. The list of examples receiving different product-level decisions is reviewed. If the new version produces more false alarms, the quality engineer evaluates the cost. The technical team should not immediately delete the old version's package simply because on-site results are positive.

Deployment can first take place at a controlled station or in shadow mode. In shadow mode, the new model's output is retained as a quality record, but the old approved system controls the physical rejection action. Differences between the two models' decisions for the same product can be observed; this comparison must not, however, be assumed to guarantee label correctness. Independent inspection or reference measurement is needed for actual critical examples.

If the camera connection is stable, memory is steady, and latency limits are met within the first hour, this is an interim approval. Long-term performance cannot be judged before changes in product family, temperature increases, and rare defect types have been observed. After final commissioning, monitoring thresholds, alarm ownership, and the rollback procedure remain explicit. Engineering maturity means not only releasing a new version, but also being able to return to the old version in a controlled and traceable way when necessary.

Frequently asked questions

Is putting a model in Docker enough for production?

No. Camera/PLC connectivity, hardware driver compatibility, error behavior, monitoring, security, and rollback must be validated separately.

Is on-site acceptance testing needed if unit tests pass?

Yes. Physical triggering, actual cable connections, mechanical actuators, ambient temperature, and the highest production speed cannot be fully represented by unit tests.

Is automatically updating the model every day appropriate?

It depends on production risk. Changes require records, testing, approval, and a pilot stage where necessary. Uncontrolled updates can silently change quality-control behavior.

Does rollback simply mean restoring the previous model file?

No. The configuration, runtime, and application version that work with the model are also part of the compatibility requirements.

Technical sources and verification

Documentation from manufacturers and standards organizations has been used as the basis for details of standards and runtimes associated with these methods. All example numbers are for educational purposes unless explicitly stated otherwise.

  1. Docker — Building best practices
  2. NIST — OT security SP 800-82
  3. NVIDIA — TensorRT performance benchmarking
  4. OPC Foundation — What is OPC?

Visual note: The nine technical diagrams are original, and the numerical examples are for educational purposes. The illustrations are not an actual device benchmark, facility measurement, or factory acceptance test.