SYSE.31:4.5 - Construct a stream of small integrations into the current mainline
Continuous integration is a way of keeping separately developing changes usable together. A server that builds isolated branches supplies feedback but does not create that combined result. The DORA CI Method is a directly usable starting treatment; the construction here explains its joins with the artifact, environment and recovery Methods in this framework.
First choose the integration boundary that matters to the application. Name the shared mainline and the components whose combination must work. One repository can contain independently deployable components, and several repositories can still contain a tightly coupled application. Choose checks for the behavior, interfaces and conditions those components must preserve together. A repository boundary is not evidence that two changes can be released independently.
Break a large change into increments that leave the mainline usable under its existing supported behavior. A preparatory increment may add an unused adapter; a later increment may switch one caller to it; removal waits until no supported caller needs the old route. Each increment should preserve the agreed behavior or openly change it under its acceptance conditions. A feature flag can separate installation from activation only if the disabled state really preserves the required behavior and the enabled path can be qualified. A dormant flag does not make an incompatible schema change harmless.
For one increment, take a current mainline base, construct the intended combined change, and run the relevant fast feedback against that combination. Resolve any incompatibilities in that combination before integration. When another change advances the mainline, update the candidate combination and re-establish the affected feedback. A merge queue is one possible implementation: it serializes or rebuilds candidate combinations against the current mainline state they are intended to join.
After integration, establish the build and feedback results for the resulting shared revision through the authoritative path. Reuse qualified evidence for that same combination and run the missing checks. Associate its produced artifact with that combined revision and its own results. An earlier artifact from the branch can be reused only when it is the same qualified subject under the needed conditions. The team must be able to find the current mainline result and its unresolved checks without reconstructing several private branch histories.
When the integration breaks, protect other development from treating the broken state as a usable base. Make restoration the immediate shared task. If a narrow repair can promptly restore the intended combination, integrate and check it. Otherwise the authorized team can withdraw the offending change and verify the resulting mainline. Withdrawing source changes does not undo an already executed external effect or data migration; those returns have their own state boundary. Keep the failed observation and unresolved business conflict so that a later attempt does not repeat it.
Choose integration frequency and feedback latency together. If a team accumulates several days of interacting changes because every run takes hours, asking for more merges alone creates a queue of unresolved combinations. First find the constraining feedback and improve its execution, split a genuinely independent check, or redesign the change so that each smaller increment remains useful. Slow necessary evidence can run separately while its affected release claim stays open. The sought gain is a short interval to a trustworthy combined result, not a mandated merge count.
For the range example in section 5, A and B are individually small but incompatible in business meaning. No branch strategy can choose whether a minimum of 8 or a maximum of 5 is intended. CI makes that conflict visible while it is still bounded. By contrast, adding a disabled new form with a lossless old-format adapter can be a legitimate preparatory increment, because the old behavior and storage contract remain usable while the new form is being developed.