<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pramanick Goutam on Medium]]></title>
        <description><![CDATA[Stories by Pramanick Goutam on Medium]]></description>
        <link>https://medium.com/@pramanick.goutam?source=rss-145a902efada------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zBd1KSeKqqnaOJT6</url>
            <title>Stories by Pramanick Goutam on Medium</title>
            <link>https://medium.com/@pramanick.goutam?source=rss-145a902efada------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:43:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pramanick.goutam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DevOps: CI/CD explanation]]></title>
            <link>https://medium.com/@pramanick.goutam/devops-ci-cd-explanation-e9de5ea65c86?source=rss-145a902efada------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9de5ea65c86</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Pramanick Goutam]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 08:38:56 GMT</pubDate>
            <atom:updated>2022-06-14T08:38:56.602Z</atom:updated>
            <content:encoded><![CDATA[<p>CI/CD enables the tech companies to improve their products many times per day. Here’s what you need to know to do the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*5Rlv_0qVffOqE7GEDUDs-Q.png" /></figure><h3>What is CI/CD?</h3><p>CI/CD is a way of developing software in which you’re able to release updates at any time in a sustainable way. When changing code is routine, development cycles are more frequent, meaningful and faster.</p><p>“CI/CD” stands for the combined practices of Continuous Integration (CI) and Continuous Delivery (CD)/continuous Deployment (CD).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*EFtygBDchRIQGlcE8wUGjw.png" /></figure><h3>What is Continuous Integration?</h3><p>Continuous integration (CI) is a software development practice in which developers merge their changes to the main/master branch many times per day. Each merge triggers an automated code build and test sequence, which ideally runs in less than 10 minutes (based on the time resource which is utilizing). A successful CI build may lead to further stages of continuous delivery.</p><p>If a build fails, the CI system blocks it from progressing to further stages. The team receives a report and repairs the build quickly, typically within minutes.</p><p>All competitive technology companies today practice continuous integration. By working in small iterations, the software development process becomes predictable and reliable. Developers can iteratively build new features. Product managers can bring the right products to market, faster. Developers can fix bugs quickly and usually discover them before they even reach users.</p><h3>What is build stage?</h3><p>In continuous integration (CI), this is where we build the application for the first time. The build stage is the first stretch of a CI/CD pipeline, and it automates steps like downloading dependencies, installing tools, and compiling.</p><p>Besides building code, build automation includes using tools to check that the code is safe and follows best practices. The build stage usually ends in the artifact generation step, where we create a production-ready package. Once this is done, the testing stage can begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WO_sFObyIgL3sUCt4_lmmw.png" /></figure><p>The build stage starts from code commit/code download at CI tools and runs from the beginning up to the test stage</p><p>Build automation verifies that the application, at a given code commit, can qualify for further testing. We can divide it into three parts:</p><ol><li><strong>Compilation</strong>: the first step builds the application.</li><li><strong>Linting</strong>: checks the code for programmatic and stylistic errors.</li><li><strong>Code analysis</strong>: using automated source-checking tools, we control the code’s quality.</li><li><strong>Artifact generation</strong>: the last step packages the application for release or deployment.</li></ol><h3>Step 1: Compilation of your code</h3><p>Step one of the build stages compiles the application. On compiled languages, it means that we can generate a working binary, whereas on interpreted languages, we confirm that we have the required dependencies and tools to successfully build the application.</p><p>The result can be a binary file, an installable package, a website, a container image — <strong>the main thing is that we have something that we can run and test.</strong></p><h3>Step 2: Analyzing Your Code</h3><p>Programming requires discipline. We must solve hard problems while following good practices and abiding by a common coding style. Automated analysis tools help you keep out gnarly code at bay. In general terms, there are three classes of code analysis tools:</p><ul><li><strong>Linting</strong>: linters improve code quality by pointing problematic and hard-to-maintain bits.</li><li><strong>Quality</strong>: this class of tools uses metrics to find places where code can be improved. The collected metrics include the number of lines, documentation coverage, and complexity level.</li><li><strong>Security</strong>: security analysis tools scan the code, flag parts that may cause vulnerabilities, and check that dependencies don’t have known security issues.</li></ul><h3>Step 3: Preparing your Application for Release</h3><p>The released package will include everything needed to run or install the application, including:</p><ul><li>Application code.</li><li>Installation scripts.</li><li>Dependencies and libraries.</li><li>Application metadata.</li><li>Documentation.</li><li>License information.</li></ul><p>Final package will be published at the server and configure the database and other connectivity as per the requirement.</p><p>Automated testing:</p><p>Software product needs to be tested like other product before it’s delivery. The obvious way to test something is to use it for a while to make sure it behaves as expected. This is the way most developers in the past used to check their work before shipping it.</p><p>After all, you have written it, you have it on your computer, you know how to run it, and you know how to quickly test it as you make changes.</p><p>The flip side is that you as the creator are biased. You might forget to test some parts or might not realize the ramifications of a change. Also, you can’t be 100% sure that your code will work in an environment that isn’t your development machine.</p><p>Even if you do everything right, testing is a boring task — a time-consuming activity where skilled, creative professionals are forced to do mindless drudgery. Historically, the countermeasure was hiring people to test, making developers happy and removing biases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*_PcBU3vjqbkJyJPtLFg6RA.png" /></figure><p>This seemingly win-win solution makes things worse often. Developers lose the overall picture and awareness of all the moving parts when they aren’t involved in testing. Testers, on the other hand, spend an enormous amount of time just making things work and must bother developers whenever they find something they don’t understand.</p><h3>The role of a QA team when testing is automated.</h3><p>Testers are part of what is known as the Quality Assurance (QA) team. They are paramount for shipping high-quality products, so it’s important to let them do their job efficiently. They do not have to test everything every time, nor catch unhandled exceptions or 404 errors. They are there to help developers and companies to deliver good quality software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*7CDT_s6af-13ngUV5M1bwQ.png" /></figure><h3>Requirement of the Continuous Integration?</h3><p>In business, especially in new product development, we often don’t have time or ability to figure everything upfront. Taking smaller steps helps us estimate more accurately and validate more frequently. A shorter feedback loop means having more iterations. And it’s the number of iterations, not the number of hours invested, that drives learning.</p><p>For software development teams, working in long feedback loops is risky, as it increases the likelihood of errors and the amount of work needed to integrate changes into a working version software.</p><p>Small, controlled changes are safe to happen often. And by automating all integration steps, developers avoid repetitive work and human error. Instead of having people decide when and how to run tests, a CI tool monitors the central code repository and runs all automated test on every commit. Based on the total result of tests, it either accepts or rejects the code commit.</p><h3>Continuous Delivery</h3><p>Continuous Delivery is the ability to get changes of all types — including new features, configuration changes, bug fixes and experiments — into production, or into the hands of users, <em>safely</em> and <em>quickly</em> in a <em>sustainable</em> way.</p><p>Our goal is to make deployments — whether of a large-scale distributed system, a complex production environment, an embedded system, or an app — predictable, routine affairs that can be performed on demand.</p><p>We achieve all this by ensuring our code is <em>always</em> in a deployable state, even in the face of teams of thousands of developers making changes on a daily basis. We thus completely eliminate the integration, testing and hardening phases that traditionally followed “dev complete”, as well as code freezes.</p><h3>Continuous deployment</h3><p>Continuous deployment goes one step further than continuous delivery. With this practice, every change that passes all stages of your production pipeline is released to your customers. There’s no human intervention, and only a failed test will prevent a new change to be deployed to production.</p><p>Continuous deployment is an excellent way to accelerate the feedback loop with your customers and take pressure off the team as there isn’t a “release day” anymore. Developers can focus on building software, and they see their work go live minutes after they’ve finished working on it.</p><p><strong>CI and CD pipeline</strong></p><p>CI and CD are often represented as a pipeline, where new code enters on one end, flows through a series of stages (build, test, staging, production), and published as a new production release to end users on the other end.</p><p>Each stage of the CI/CD pipeline is a logical unit in the delivery process. Developers usually divide each unit into a series of subunits that run sequentially or in parallel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*1KvvJb4ZqOpbGV1k56wTdQ.png" /></figure><p>For example, we can split testing into low-level unit tests, integration tests of system components working together, and high-level tests of the user interface.</p><p>Additionally, each stage in the pipeline acts as a gate that evaluates a certain aspect of the code. Problems detected in an early stage stop the code from progressing further through the pipeline. It doesn’t make sense to run the entire pipeline if we have fundamental bugs in code to fix first. Detailed results and logs about the failure are immediately sent to the team to fix.</p><p>Because CI/CD pipelines are so integral to the development process, high performance and high availability are paramount for developer productivity.</p><h3>Prerequisites for doing Continuous Integration</h3><p>The basic prerequisites for implementing continuous integration include:</p><ul><li>Automating builds.</li><li>Automating testing.</li><li>More frequent commits to a single source code repository, and</li><li>Providing visibility of the process and real-time access to CI status to the team.</li></ul><p>Development team need to follow the full CI/CD process so that productivity will be rise as well as it will increase velocity of the entire business.</p><h3>A typical development workflow</h3><p>You can apply continuous integration in most software projects, including web applications, cloud-native microservices, mobile apps, system software, IoT / embedded systems and more.</p><p>Here’s a typical continuous integration workflow developers practice on a daily basis:</p><ul><li>A developer creates a new feature branch of code in GitHub, makes changes in the code, and commits them.</li><li>When the developer pushes her work to GitHub, then GitHub will build the code via Github action/other CI tools can be used where build specific build action has been configured.</li><li>If any error detected in the CI pipeline, then developer gets a notification via email (which email id has been configured at the time of GitHub login)</li><li>If the developer has raised a pull request and at the time of build if any issue occurs and the build is failed, then requester will get the email notification as per the build fail status.</li><li>Otherwise, the user gets a notification that CI has passed (status green) and next stage will execute like artifacts creation along with test cases execution and artifacts will be ready for the deployment at the lower environment (dev, stag, qa)</li><li>Once another developer has verified the changes in a peer review, the author can merge the new branch of code into the master branch and again build will be published for production deployment and also test cases need to be passed for that one.</li></ul><p>.</p><h3>Benefits of continuous integration</h3><p>CI provides numerous benefits for your software development team including improving developer productivity, automating the development process, improving code quality and software reliability.</p><h3>Improved developer productivity</h3><p>The biggest benefit of practicing continuous integration is increased developer productivity. Continuous integration frees developers from manual tasks and the pains of integrating their code with other parts of the system. Instead, they can focus on programming the logic that delivers the features the business needs. Or they can use the time CI has saved them to invest in professional growth.</p><p>Teams that work in a fast CI feedback loop can deliver more value to customers than teams that struggle to integrate each other’s work or suffer from a slow pipeline that doesn’t scale.</p><h3>Deliver working software more often</h3><blockquote>Continuous integration is a way for your team to automatically build and test every single change in the source code. This is the foundation that enables your broader software delivery process to be efficient, resilient, fast, and secure.</blockquote><h3>Find bugs earlier, fix them faster</h3><p>The automated testing process can include many different types of checks:</p><ul><li>Verify code correctness.</li><li>Validate application behavior from a customer’s perspective.</li><li>Compare coding style with industry-standard conventions.</li><li>Detect security updates in third-party dependencies.</li></ul><p>Building these tests into your CI pipeline, measuring and improving the score in each is a guaranteed way to maintain a high quality of your software.</p><h3>Example CI/CD workflows with the GitHub tools</h3><p>Here’s a simple example of fully automated CI/CD (Continuous Deployment) pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-ekKnE2cx4TG8msoOk95RQ.png" /></figure><p>CI/CD shouldn’t be more complicated than necessary</p><p>So here all the test cases will be passed and after approval of the pull request it will go for build and deploy stage based on the environment (dev, stg, prod)</p><h3>Benefits of CI/CD</h3><p>CI/CD is much more which can reduce the manual work and via CI/CD automation of application build, test and deployment can be handled.</p><p><strong>Deliver software with less risk</strong>. CI/CD pipelines standardize release processes across projects. By testing every change in source code, we reduce the chances of introducing bugs.</p><p><strong>Release new features more frequently</strong>. A CI/CD pipeline can visualize your entire path from commit to production in a single screen. You can navigate across stages, spot inefficiencies, and optimize your process. By removing the roadblocks to productivity, you enable your company to succeed.</p><p><strong>Deliver the product that users need</strong>. Delivering updates often leads to more user feedback. You can take advantage of that by A/B testing features or testing early versions of products with real customers. This way you avoid investing too much in features that your customers don’t need and focus on those that matter.</p><p><strong>Improve developer productivity</strong>. Engineering teams that don’t practice CI/CD often work under stress. There are constant fires for bad deploys and hard-to-fix outages. Developers write a lot of code that never gets used also at the time of build process via linting those can be identified and removed. Long-lived feature branches are too big to get proper peer review, so code degrades in quality. On the other hand, CI/CD guides product management to optimize for user impact. Developers deploy code while it’s fresh in their minds. The result is a happy engineering team.</p><h3>When is CI/CD not feasible?</h3><p>“<em>Continuous Delivery is great but some places it is not applicable</em>” e.g:</p><ul><li>Your customers don’t want continuous updates to their systems.</li><li>Regulations restrict how software can be updated. For example, continuously updating software used in aerospace, telecom, and medical industries is not an option.</li><li>Proper monitoring will be required after the deployment along with the skill resources</li></ul><p>Even in a CD-averse environment, teams can enjoy the benefits of easy deployment and keeping the system in a deployable state. Via CI development team can create the package or artifacts and have to wait for the deployment once in a blue moon as per the requirement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9de5ea65c86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>