客户反馈

<b>Эдуард Кабринский - Continuous integration development - Эдуард Кабринский <h1>Continuous integration development</h1> <p><youtube></p> Continuous integration development <a href="http://remmont.com">Local news today</a> Continuous integration development <h1>Continuous Integration</h1> <p><em>Continuous Integration (CI)</em> is the process of taking features from the Program Backlog and developing, testing, integrating, and validating them in a staging environment where they are ready for deployment and release.</p> <p>CI is the second aspect in the four-part Continuous Delivery Pipeline of Continuous Exploration (CE), Continuous Integration (CI), Continuous Deployment, and Release on Demand (Figure 1).</p> <h1>Details</h1> <p>Continuous integration is a critical technical practice for each Agile Release Train (ART). It improves quality, reduces risk, and establishes a fast, reliable, and sustainable development pace.</p> <p>With continuous integration, the “system always runs,” meaning it’s potentially deployable, even during development. CI is most easily applied to software solutions where small, tested vertical threads can deliver value independently. In larger, multi-platform software systems, the challenge is harder. Each platform has technical constructs, and the platforms must be continuously integrated to prove new functionality. In complex systems comprised of software, hardware, and components and services provided by suppliers, CI is harder still. But the fact remains: integrating and testing components together frequently is the only practical way to fully validate a solution.</p> <p>As a result, teams need a balanced approach, one that allows them to build quality in and receive fast feedback from the integrated increments. For the software elements, continuous integration can be more easily applied. For larger and complex systems, a ‘<em>continuish integration</em>’ process is required (see the Enterprise Solution Delivery article<em>)</em> to balance the economic trade-offs between frequency, the scope of integration, and testing.</p> <h2>The Four Activities of Continuous Integration</h2> <p>As illustrated in Figure 2, SAFe describes four activities associated with continuous integration:</p> <p style="clear: both"><ul> <li><strong>Develop</strong> describes the practices necessary to implement stories and commit the code and components to the trunk</li> <li><strong>Build</strong> describes the practices needed to create deployable binaries and merge the development branches into the trunk</li> <li><strong>Test end-to-end</strong> describes the practices necessary to validate the solution</li> <li><strong>Stage</strong> describes the practices necessary to host and validate the solution in a staging environment before production</li> </ul> <img style="float: left; margin: 0 10px 5px 0;" src="https://www.scaledagileframework.com/wp-content/uploads/2018/09/Continuous-integration_F02_web.png" />Figure 2. Four activities of continuous integration</p> <h3>Develop the Solution</h3> <p>Developing the solution refers to the implementation of stories by refining features from the program backlog as may be needed and then coding, testing, and committing the work product into the source control system. Testing in this activity tends to focus on unit and story-level testing and most times requires test doubles (see Test-Driven Development) to replicate other components or subsystems.</p> <p>Seven practices are associated with developing the solution:</p> <p><ul> <li><strong>Break features into stories</strong> – Splitting features into stories enables continuous delivery via small batches and smooth integration. This may include creating user story maps to ensure that workflows are designed to meet customer needs.</li> <li><strong>Behavior-Driven Development (BDD)</strong> –BDD is a process Product Owners and teams use to more thoroughly understand requirements and improve quality by creating acceptance criteria and acceptance tests, and often automating them, before the code is even written. BDD works with TDD and is more fully described here.</li> <li><strong>Test-Driven Development (TDD)</strong> – TDD involves writing the unit test first, then building the minimal code needed to pass the test. This leads to better design, higher quality, and increased productivity. TDD works with BDD and is more fully described here.</li> <li><strong>Version control</strong> – Effective version control allows teams to recover quickly from problems and to improve quality by making sure the right components are integrated together. Aggregating assets under version control is a leading indicator of continuous integration maturity.</li> <li><strong>Built-in quality</strong> – Built-In Quality prescribes practices around flow, architecture & design quality, code quality, system quality, and release quality.</li> <li><strong>Application telemetry</strong> – Application telemetry is the primary mechanism that acquires and then uses application data to help determine the results of relevant hypotheses.</li> <li><strong>Threat modeling</strong> – In addition to the threat modeling done in the Architect activity of continuous exploration, attention should be given during system design to possible vulnerabilities that may be introduced into the system.</li> </ul> </p> <h3>Build the Solution</h3> <p>During the build phase, teams continuously integrate new code. This can be accomplished by automating the build and test tools to run upon code commit. Passing versus not-yet-passing and broken automated tests are the real indicators of progress. Automating code building enables teams to fix problems quickly, <em>before they affect larger parts of the system</em>. Addressing a broken build should be the highest priority. A ‘gated commit’ ensures software has passed the gate (e.g. unit tested, performance tested, and free of known defects, etc.) before being checked into the main codebase or <em>trunk</em>. Code that passes the gate is automatically integrated into the trunk; which removes the complications of managing multiple branches. This <em>trunk-based development</em> helps to ensure the code can be reliably released on demand without the need for costly code freezes or hardening iterations.</p> <p>There are five practices which can help build the solution:</p> <p><ul> <li><strong>Continuous code integration</strong> – Code commit should automatically trigger compilation and testing of changes. Ideally, this happens on each commit but should happen at least several times a day.</li> <li><strong>Build and test automation</strong> – The compilation process should be automated and include unit- and story-level tests to verify the change. These tests often use test doubles to replicate other parts of the systems and enable fast builds.</li> <li><strong>Trunk-based development</strong> – Long-lived branches must be avoided. Teams should merge back as quickly as they can, at least once per day, and all teams should work off a single trunk.</li> <li><strong>Gated commit</strong> – Committing to a single trunk is risky, as broken changes can impact many teams. This is why only the changes that have been validated through the build and test process are merged into the trunk.</li> <li><strong>Application security</strong> – Code analysis tools inspect the code and third-party packages for known vulnerabilities.</li> </ul> </p> <h3>Test the solution end-to-end</h3> <p>While critical, automated local story and component testing aren’t enough. In order to thoroughly test features, system-level integration and testing are required. With the support of the System Team, the work of all teams on the ART must be frequently integrated to assure that the solution is evolving as anticipated, as Figure 3 illustrates.</p> <p style="clear: both"> <img style="float: left; margin: 0 10px 5px 0;" src="https://www.scaledagileframework.com/wp-content/uploads/2014/12/F6-Integrating-the-work-of-all-teams-1.png" />Figure 3. Integrating the work of all teams on the ART</p> <p>System-level testing happens as frequently as possible during the iteration, ideally after every commit. However, whatever the circumstances, such full-system integration must be accomplished at least once per iteration. Otherwise, the late discovery of defects and issues reflects back to earlier iterations, causing substantial rework and delays.</p> <p>There are five practices which can help in end-to-end system testing:</p> <p><ul> <li><strong>Test and production environment congruity</strong> – Environment congruity assures that testing exercises the solution as it would behave in front of live users and decreases the probability that defects will escape into production.</li> <li><strong>Test automation</strong> – Many types of tests need to be run: functional testing, integration testing, regression testing, etc. The Agile Testing article details a testing matrix of what can and should be automated.</li> <li><strong>Test data management</strong> – To create stability, tests must be consistent and realistic, replicating production as much as possible, and under source control.</li> <li><strong>Service virtualization</strong> – Different kinds of testing require different environments. Service virtualizations allow teams to simulate a production environment without the costs and effort associated with creating and managing real environments.</li> <li><strong>Testing nonfunctional requirements (NFRs)</strong> – system attributes such as security, reliability, performance, maintainability, scalability, and usability must also be thoroughly tested.</li> <li><strong>Continuous integration with suppliers</strong> – Suppliers bring unique contributions that can have a significant impact on lead-time and value delivery. Their work must be continuously integrated as well. It helps to adopt a shared integration cadence and establish objective evaluation milestones.</li> </ul> </p> <h2>Validate on Staging</h2> <p>Finally, the entire solution must be validated on a staging environment, based on the following practices:</p> <p><ul> <li><strong>Maintain a staging environment</strong> –A staging environment, which matches production provides the place for such validation.</li> <li><strong>Blue/Green deployment</strong> – Blue/green deployment provides two environments, one live and one idle. To deploy, a switch is flipped, or a load balancer is updated, and the idle environment becomes the staging environment, while the other becomes the new idle environment. This enables quick transition and recovery where necessary.</li> <li><strong>System demo</strong> – This is the event where stakeholders validate the solution.</li> </ul> </p> <h2>Enabling a Culture of Continuous Integration</h2> <p>Continuously integrating large and complex systems is a time-consuming journey. The following section provides some suggestions for building a successful CI culture and practice.</p> <p><ul> <li><strong>Integrate often</strong> – The more frequently teams integrate, the quicker they find problems. And the harder it is to do, the more often they need to do it—eliminating impediments and adding automation along the way. This results in faster learning cycles and less rework.</li> <li><strong>Make integration results visible</strong> – When the integration process breaks, everybody should know it broke and why. When it’s fixed, new tests should be added to detect the problem earlier and prevent it from happening again.</li> <li><strong>Fixing failed integrations is a top priority</strong> – Teams that just keep working through integration failures fall short of the values and culture associated with building a system that can be released into production at any time. To create the right sense of urgency and importance needed to fix integration problems, teams often use flashing lights or other notifications to draw attention to a broken build, and establish visible indicators displaying the percentage of the time the system remains broken.</li> <li><strong>Establish common cadence</strong> – Integration points are more accessible when all the teams are moving at the same consistent rhythm. If full CI can’t be accomplished during the course of an iteration, teams can make near-term trade-offs on what can be integrated, while continuously improving their techniques and infrastructure toward this goal.</li> <li><strong>Develop and maintain proper infrastructure</strong> – Effective continuous integration depends on the availability of test and staging environments. Infrastructure is, of course, an investment. But Lean-Agile Leaders take the long view and make the investments necessary today to increase velocity for the marathon ahead.</li> <li><strong>Apply supportive software engineering practices</strong> – Continuous integration is easier when the system is designed with those concerns in mind. <u>Test-first</u> development and designing for testability call for more modular solutions and separation of concerns, as well as using primary interfaces and physical test points.</li> </ul> </p> <h2>Assessing and Improving the Flow through the Pipeline</h2> <p>As is described in the Metrics article, the SAFe’s DevOps Health Radar shown in Figure 4 helps ARTs and Solution Trains assess their maturity in the 16 activities of the continuous delivery pipeline.</p> <p style="clear: both"> <img style="float: left; margin: 0 10px 5px 0;" src="https://www.scaledagileframework.com/wp-content/uploads/2018/08/DevOps-Health-Radar-768x802.png" />Figure 4. The SAFe DevOps and Continuous Delivery Pipeline health radar</p> <h2>Learn More</h2> <p><>] Leffingwell, Dean. <em>Scaling Software Agility: Best Practices for Large Enterprises (Agile Software Development Series)</em>. Pearson Education. Kindle Edition.</p> <p><>] Kim, Gene and Jez Humble, Patrick Debois, John Willis. <em>The DevOps Handbook: How to Create World-Class Agility, Reliability, and Security in Technology Organization</em>s. IT Revolution Press. Kindle Edition.</p> <h2>Continuous integration development</h2> <h3>Continuous integration development</h3> <p><youtube></p> Continuous integration development <a href="http://remmont.com">News new</a> Continuous integration development <h4>Continuous integration development</h4> SAFe for Lean Enterprises <h5>Continuous integration development</h5> Continuous integration development <a href="http://remmont.com">Continuous integration development</a> Continuous integration development SOURCE: <h6>Continuous integration development</h6> <a href="https://dev-ops.engineer/">Continuous integration development</a> Continuous integration development #tags#<replace> -,-Continuous integration development] Continuous integration development#tags#</b> <b>Кабринский Эдуард</b> <a href=http://remmont.com>local news</a>