<?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 Borja Burgos on Medium]]></title>
        <description><![CDATA[Stories by Borja Burgos on Medium]]></description>
        <link>https://medium.com/@borjaburgos?source=rss-8fe717320ffc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*c-uDPw0aSO1-0c8x.</url>
            <title>Stories by Borja Burgos on Medium</title>
            <link>https://medium.com/@borjaburgos?source=rss-8fe717320ffc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:10:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@borjaburgos/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[Undefined Labs is now a part of Datadog!]]></title>
            <link>https://medium.com/scopedev/undefined-labs-is-now-a-part-of-datadog-b614f246b973?source=rss-8fe717320ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b614f246b973</guid>
            <category><![CDATA[datadog]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Borja Burgos]]></dc:creator>
            <pubDate>Thu, 06 Aug 2020 20:38:15 GMT</pubDate>
            <atom:updated>2020-08-06T20:38:15.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02tuz2WnDrkI9DNc3GtWxw.jpeg" /></figure><p>We’re excited to announce that Undefined Labs has been acquired by Datadog!</p><p>Two years ago, we started Undefined Labs to completely rethink testing in a world rapidly shifting to the cloud.</p><p>Having experienced firsthand the transition from simple and monolithic web applications to the complex and distributed cloud-native applications of modern days, we’ve encountered organizations of all sizes dealing with the same painful issues around testing and deployment.</p><p>There’s been a lack of tooling to debug tests in microservice environments, an absence of historical understanding when it comes to testing, gross inefficiencies that lead to both bottlenecks as well as exorbitant CI costs, and no centralized and automated way to deal with test flakiness.<br>With our latest release of Scope, we’re proud to have been able to address all of these problems in a meaningful way.</p><p>After founding Undefined Labs, Datadog was one of the first services we added to our tech stack. We’ve always greatly admired the power of the Datadog platform to provide us with best-in-class production observability, as well as their ability to remain agile and innovative and to continually redefine the monitoring space.</p><p>We’re excited by the opportunity to extend Datadog’s industry-leading visibility into the software development and pre-production workflows.<br>We believe joining Datadog will accelerate our vision of helping thousands of engineering organizations operate with a better understanding of the entire software development lifecycle, from git push to production.</p><p>We’d like to extend a special thanks to all of our users and customers who have supported us and pushed us, and have provided incredible feedback in shaping our products.</p><p>In light of the acquisition, we’ll be hard at work creating an even better product and experience within the Datadog platform, with the added benefit of carrying forward all of the lessons learned while building Scope. We know many of our users are already Datadog customers, so we’ll be seeing you again very soon!</p><p>We’re not only excited about the future of what we’ll build as a part of Datadog, but also the chance to make a positive impact in Madrid, Spain. We will maintain our engineering office in Madrid, and we look forward to growing the team over time as part of Datadog.</p><p>Last but not least, we’d like to thank our investors, advisors, and friends for all of your support, advice, and mentorship over the past couple of years.<br>The entire team at Undefined Labs will be joining Datadog and we look forward to continuing the journey to build tools that solve challenges in software engineering so development teams can do more, faster.</p><p>For a peek into what this means for Datadog, you can see their announcement <a href="https://investors.datadoghq.com/news-releases/news-release-details/datadog-acquires-undefined-labs-provide-visibility-cicd">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b614f246b973" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scopedev/undefined-labs-is-now-a-part-of-datadog-b614f246b973">Undefined Labs is now a part of Datadog!</a> was originally published in <a href="https://medium.com/scopedev">Scope</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master is the new Prod, Devs are the new Ops]]></title>
            <link>https://medium.com/scopedev/master-is-the-new-prod-devs-are-the-new-ops-270e954388ce?source=rss-8fe717320ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/270e954388ce</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Borja Burgos]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 18:57:31 GMT</pubDate>
            <atom:updated>2020-04-02T19:17:19.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RGbVXn8Ugr7OlnpQ7rnKGw.png" /></figure><p>Operational concerns of shipping software and keeping production up and running have been largely automated. Ultimately, even when things go wrong, modern-day monitoring and observability tools allow engineers to triage and fix nasty bugs faster than ever before. In part due to this, engineering teams and their budgets are shifting left. With the fear of downtime in the rearview mirror and operational challenges largely at bay, businesses are investing heavily in development to increase the quality and speed at which business value is delivered. The biggest bottleneck? Your failing master branch.</p><h3>The Ops Wayback Machine</h3><p><em>The year is 2004. It’s time for deployment. You’re confident about the software you’ve written. You clear your mind, get one last sip of coffee, and get ready to deploy. Before you proceed, you open up terminals, many terminals, and tail every log file on every server that could possibly be affected. You have business metrics up and running on your second monitor. Next to it, there are infrastructure and application-level metrics. You hit the return key and proceed to deploy the latest release to a single server. Now you watch.</em></p><p><em>You scan rapidly across every terminal in your 19&#39;’ CRT monitors to identify patterns and look for discrepancies: are there any errors in the logs? Has the conversion rate changed? What’s the load on the server? Was there a change in disk or network i/o? You wait a few minutes, if everything looks good, you proceed with a second server, else you roll back to the previous release as fast as humanly possible, hoping that’ll fix whatever it is that broke.</em></p><p>While the excerpt above may sound ridiculous in this day and age, that’s how many deployments were done in the good old days of the internet after the <a href="https://en.wikipedia.org/wiki/Dot-com_bubble">Dot-com bubble</a>. Then came automation, hand-in-hand with the proliferation of “DevOps” and “microservices”. These practices were born from the ever-increasing speed and complexity of the applications being developed, a consequence of businesses’ competitive desires to deliver more value to customers, faster. Businesses could no longer afford to ship new features every 6 months; a slow release cycle represented an existential threat.</p><p>But businesses weren’t always concerned with shipping new features at all costs. If anything, that wasn’t even a priority back in the early 2000s. The biggest fear of any company running software on the internet has always been downtime (ok, maybe the second biggest fear, with a security breach being at the top). And for this reason, among others, ops teams have always had sizable budgets for tech companies to sell into. After all, anything that minimizes downtime is likely cheaper than downtime itself.</p><p>Fast-forward to today and you’ll see a <a href="https://www.youtube.com/watch?v=hZ1Rb9hC4JY">whole new world</a>. A world in which high-performing engineering organizations run as close to a fully-automated operation as possible. While every team does things a little bit differently, the sequence mimics the following: the moment a developer’s code is merged into master, a continuous integration (CI) job is triggered to build and test the application; upon success, a continuous delivery process is triggered to deploy the application in production; oftentimes this automated deployment is done in a minimal fashion, just a few nodes at a time or what’s known as a <a href="https://martinfowler.com/bliki/CanaryRelease.html">canary deployment or release</a>; in the meantime, the system, equipped with the knowledge of thousands of previous deployments, automatically performs multi-dimensional pattern matching to ensure no regressions have been introduced; at a certain degree of confidence, the system proceeds to automatically update the remaining nodes; and if there are any issues during deployment, rollbacks are automated, of course.</p><p>Automation doesn’t necessarily stop with the deployment and release of an application. More and more operational tasks are being automated. It’s now possible, and not uncommon, to automate redundant tasks, like rotating security keys or fixing vulnerabilities the moment a patch is made available. And it’s been many years since the introduction of automatic scaling to handle spikes in CPU or memory utilization, to improve response time and user-experience, or even to take advantage of discounted preemptible/spot instances from IaaS providers.</p><p>But, as anyone who has ever had to manage systems will be quick to tell you: <a href="https://medium.com/scopedev/testing-in-the-cloud-native-era-41f63a0e101b">no amount of testing</a> or automation will ever guarantee the desired availability, reliability, and durability of web applications. Fortunately enough, for those times when shit ultimately hits the fan (and it undoubtedly will), there is monitoring to help us find the root cause and quickly fix it. Modern-day monitoring tooling — nowadays being marketed as “observability” — offers fast multi-dimensional (metrics, logs, traces) analysis with which to quickly debug those pesky unknown-unknowns that affect production systems. Thanks to <em>observability</em>, in just a handful of minutes, high-performing engineering organizations can turn “degraded performance”, and other problematic production regressions, to business as usual.</p><p>The amount and complexity of the data that an engineer can rapidly process using a modern observability tool is truly astounding. In just a few keystrokes you can identify the specific combination of device id and version number that results in that troublesome backend exception, or which API endpoint is slowest for requests originating from Kentucky and why, or identify the root cause behind that seemingly random spike in memory consumption that occurs on the third Sunday of every month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvnYwCNVWqiXd1WkVWkNOQ.gif" /><figcaption>Using an observability service (Datadog shown) to narrow down on problematic transactions.</figcaption></figure><p>While this level of automation and visibility isn’t achieved overnight, we’re unequivocally headed this way. And it is the right path forward, as demonstrated by the adoption of these tools and processes by the world’s most innovative tech companies. And so, with operational concerns at ease, what’s next? Business value! And what’s the biggest bottleneck we’re currently facing? Failing to keep master branch green (i.e. healthy/passing CI). Let me explain.</p><h3>Keeping master green</h3><p>In terms of development, testing, and continuous integrations, the closest software engineering concept to “keeping production up” is to “keep master green”, which essentially means it’s deployable.</p><p>This is something that’s likely to strike a chord with most software developers out there. It makes sense after all; if teams are going to cut releases from master, then master must be ready to run in production. Unlike years ago, when releases were cut far and few between, the adoption of automation (CI) and DevOps practices has resulted in development teams shipping new software at a much faster rate. So fast, that high performing engineering organizations are able to take this practice to its extreme, by automatically releasing any and every commit that gets merged to master — resulting in hundreds, sometimes even thousands, of production deployments on a daily basis. It’s quite impressive.</p><p>But you might be left wondering, if you’re not continuously deploying master, and instead, you’re doing so once a week, or maybe once a month, why bother keeping master green? The short answer is: to increase developer productivity, to drive business value, and to decrease infrastructure costs. Even if you’re not shipping every commit to master, tracking down and rolling back a faulty change is a tedious and error-prone task, and more often than not requires human intervention. But it doesn’t stop there, a red (broken) master branch introduces the following problems:</p><ul><li>A red master leads to delayed feature rollouts, which themselves lead to a delay or decrease in business value and potential monetary loss. Under the assumption that CI is functioning as expected, breaking master means that a faulty or buggy code commit needs to be detected, rolled back, and debugged. And for many companies, the cost of delaying the release of a new feature, or [security] patch, has a direct correlation to a decrease in revenue.</li><li>A broken (red) master branch has a cascading negative effect that also hurts developer productivity. In most engineering organizations, new features or bug fixes are likely to start as a branch of master. With developers branching off a broken master branch, they might experience local build and test failures or end up working on code that is later removed or modified when a commit is rolled back.</li><li>A broken/failing build is also money wasted. Yes, automated builds and tests are performed precisely to catch errors, many of which are impractical to catch any other way. But keep in mind that for every failed build, there’s at least another build (often more) that needs to run to ensure the rollback works. With engineering teams merging thousands of commits every day, build infrastructure costs can no longer be disregarded — at some organizations, CI infrastructure costs already exceed those of production infrastructure.</li></ul><p>Convinced of the perils of a red master branch, you may ask yourself, what can I do to keep things green? There are many different strategies to reduce the number of times that master is broken, and when it breaks, how often it stays broken. From <a href="https://cacm.acm.org/magazines/2016/7/204032-why-google-stores-billions-of-lines-of-code-in-a-single-repository/fulltext">Google’s presubmit infrastructure</a> and <a href="http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chromium-os">Chromium’s Sheriff</a>, to <a href="https://www.dropbox.com/s/w88eccvm2gthyfk/eurosys19uber.pdf?dl=0">Uber’s “evergreen” SubmitQueue</a>, there’s no doubt that the world’s highest performing software organizations understand the benefits of keeping master green.</p><p>For those that aren’t dealing with the scale of Google, Facebook, and others their size, the most widely established, and easily automated approach is to simply build and test branches before merging to master; easy, huh? Not really. While this often works for relatively simple, and monolithic codebases, this approach falls short when it comes to testing the microservice applications of today. Given the inherent distributed complexity of microservice applications, and the rate at which developers are changing the codebase, it is often impractical (i.e. too many builds that would take too long) to run every build, not to mention running the full integration and end-to-end test suites on every commit for every branch for every service in the system. Due to this limitation, branch builds are often limited in the scope of their testing. Unfortunately, after the changes are merged and the complete test suite is executed, it is common for this approach to result in test failures. And back to square one, master is red. So what can you do?</p><h3>There’s been an outage in master</h3><p>At Undefined Labs, we spend a lot of our time meeting and interviewing software engineering teams of all sizes and maturity levels. These teams are developing systems and applications with varying degrees of complexity, from the simplest mobile applications to some of the largest distributed systems servicing millions of customers worldwide. We’ve seen an interesting new pattern emerge across several software engineering organizations. This pattern can be summarized as:</p><p><em>“Treat a failure (i.e. automated CI build failure) in your master branch as you would treat a production outage.”</em></p><p>This is not only exciting but indicative of how engineering organizations continue shifting left, further and earlier into the development lifecycle.</p><p>Most software teams already aim to “keep master green”, so what’s the difference? Traditionally, keeping master green has been on a best-effort basis, with master often failing over multiple builds across different commits, and days going by before returning to green.</p><p>As engineering teams mature, it becomes even more urgent to fix master in a timely manner. Now, if master is red, it’s a development outage, and it needs to be addressed with the utmost urgency. It is this sense of urgency and responsibility that development teams have set upon themselves to get things back to normal as quickly as possible that is truly transformative. Given the business repercussions, associated costs, and productivity losses of a failing master branch, we expect broad adoption of this pattern across engineering teams of all sizes in the near future.</p><p>Let’s take a look at some practical things you can do to keep master green:</p><h4>If you can’t measure it, you can’t improve it</h4><p>This is true for many things, and it’s particularly true here. Before setting out on a journey to improve anything, one needs to be able to answer these questions:</p><ul><li>How long does it take us to fix master when it breaks?</li><li>How often do we break master?</li></ul><p>These questions may sound familiar. Change master to “production” and these questions have well-known acronyms in the operational world. For anyone that has hung around an SRE (site reliability engineer) long enough, the terms MTTR and MTBF come to mind.</p><p>MTTR or mean time to repair/resolution is a measure of maintainability. In the context of this article, MTTR answers the question, how long does it take to fix master? MTTR starts a running clock the moment a build fails and only stops when it’s fixed. As failures continue to occur, the MTTR is averaged over a period of time.</p><p>MTBF, or mean time between failure, is a measure of reliability. In the context of this article, MTBF answers the question, how often do we break master? MTBF starts a running clock the moment a build goes from failing to passing and stops the next time a build fails. For example, for a team that breaks master once every week, the project’s MTBF will be approximately 7 days. As the project continues to experience failures, the MTBF is averaged over a period of time.</p><p>Unfortunately, until now, there’s no easy nor automated way to monitor these metrics. Few CI providers/tools provide insights into related information, and even fewer provide an API with which to more accurately calculate these metrics over time.</p><p>In Scope, we’re adding both MTTR and MTBF to our user’s service dashboards. That is, for every service for which Scope is configured, teams automatically see these values and trends tracked over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1G3qmpuPdPnBW039sKNhA.png" /><figcaption>Scope Service Dashboard showing MTTR &amp; MTBF for Development.</figcaption></figure><p>Now that you know what “normal” is, it’s time to figure out ways to improve MTTR and MTBF, in the never-ending quest to keep master evergreen.</p><h4>MTTR — if you can’t debug it, you can’t fix it</h4><p>MTTR is a measure of maintainability: how quickly a failure can be fixed. To fix a software problem, software engineers need to understand what the system was doing at the time of the error. To do this in production, SREs and developers rely on monitoring and observability tools to provide them with the information they need in the form of metrics, logs, traces, and more to understand the problem at hand. Once the problem is well understood, implementing a fix is usually the easy part.</p><p>However, the contrast between production and development is quite stark. In CI, developers lack the detailed and information-rich dashboards of production. In CI, developers get a “build failed” notification, followed by a dump of the logs of the build. Here is an example output from a top CI provider:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIMcqzY3Mqx8Fhi3Uz_FmA.gif" /><figcaption>Example failure output from a CI provider.</figcaption></figure><p>The problem is evident. Whereas operationally we have an endless amount of data, visibility, and infinite cardinality to probe the system and quickly understand complex production issues, when it comes to CI, developers are left in the dark, with nothing more than a log dump.</p><p>To deal with this problem, before moving to Scope, the organizations we’ve encountered had either built a custom solution, frustrated by the lack of options in the market, or were trying to jerry-rig their production monitoring tools to work for CI without much success. There are key differences between production, a long-lived system handling transactions, and CI, short-lived and fast-changing environments running unit and integration tests, that make using production tooling impractical in CI.</p><p>Teams interested in reducing the mean time to resolution in development to increase productivity, reduce CI costs, and increase business value, ought to look no further. Scope provides low-level insights into builds, with visibility into each and every test, across commits and PRs. With distributed traces, logs, exceptions, performance tracking and much, much more, teams using Scope are able to cut down their MTTR by more than 90%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CO-6xjKJeHGtPxuEN3qKhg.gif" /><figcaption>Debugging a flaky integration test using Scope.</figcaption></figure><h4>MTBF — a reliably flaky build</h4><p>MTBF is a measure of reliability: how often master breaks. After meeting with countless teams, and reviewing their CI builds, the verdict was clear: the leading cause for build failures in today’s software development teams is flakiness. If something is flaky, by definition, it cannot be reliable. As such, to increase a project’s MTBF the best thing any engineering organization can do today is to improve how flakiness is managed in a test suite and its codebase.</p><p>Lots have been written about flakiness. Most recently, Bryan Lee, from Undefined Labs, has written a <a href="https://medium.com/scopedev/how-can-we-peacefully-co-exist-with-flaky-tests-3c8f94fba166">great primer on flakiness</a>; you should read it. In this post, Bryan lists a clear set of patterns to successfully handle flakiness:</p><ul><li>Identification of flaky tests</li><li>Critical workflow ignores flaky tests</li><li>Timely flaky test alerts routed to the right team or individual</li><li>Flaky tests are fixed fast</li><li>A public report of the flaky tests</li><li>Dashboard to track progress</li><li>Advanced: stability/reliability engine</li><li>Advanced: quarantine workflow</li></ul><p>Due in part to the limited visibility into CI that most development teams have today, the way developers deal with flakiness is quite rudimentary. When a build fails, and if the developer suspects a flaky test is the reason behind it, they simply hit that retry button. Again and again, until the build passes, at which point they can proceed with their job. Not only is this wasteful, and costly, from an infrastructure perspective, it’s also highly inefficient and unproductive, as developers may be blocked while a build is taking place.</p><p>Other solutions, less rudimentary, but still largely ineffective, require manual intervention from developers to investigate builds in order to identify flakes; however, these flakes are not properly tracked, and rarely dealt with, given the overhead experienced by teams without testing visibility. Without the means to quarantine or exclude known flaky tests from builds in master, teams with flaky tests are quick to give up on any ambition to keep master green. This, of course, carries grave business consequences as the team’s ability to innovate and ship new features is hindered by their broken builds.</p><p>While this may be the case for most, there are those high-performing engineering organizations that have built internal tooling to address these challenges. Google, Microsoft, Netflix, Dropbox, among others, have built custom solutions to deal with flakiness and minimize the frequency at which master is red. The problem? These solutions are custom-built and not readily available for the rest of us.</p><p>To address this glaring problem, we’re adding flaky test management features right into Scope. Starting with flaky test detection, automatic test retries, and a dashboard to track all flaky tests. In this dashboard, teams can track every flaky test, their flaky rate, the date and commit in which the test first exhibited flakiness, as well as the most recent flaky execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9NO29gqCp3Ztjv2l7wBcA.png" /><figcaption>Flaky Test Management in Scope.</figcaption></figure><p>Another one of the biggest struggles developers face when attempting to improve very flaky codebases and test suites are: where do I even begin? While all flaky tests may seem as good candidates for fixing, prioritization is key when dealing with flaky test suites. If you’re actively experiencing flakiness across hundreds of tests, it’ll be a futile attempt to try and fix them all. Instead, development teams should prioritize those tests that experience the highest rate of flakiness and are also the slowest to execute. Everything else being equal, these are the tests that have the most negative impact on your application and development processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fermnUHfe1e-x9j4SlTKcA.png" /><figcaption>Scatterplot of flaky tests — top-right quadrant contains the most negatively impactful flaky tests.</figcaption></figure><h3>Our journey to the left</h3><p>At Undefined Labs we’re big believers in shifting left, and are always looking for innovative and transformative ways to improve application development. Treating master as production may still raise a few eye-brows in this day and age, but as shown in this article, there is clear business value in doing so: faster feature rollouts, increased developer productivity, and reduced costs. Similarly, once-reserved-for-production indicators like MTTR and MTBF, feel right at home as part of the development process, and provide development teams with the responsibility and accountability they need to more efficiently run their operations.</p><p>When building Scope, we often ask ourselves: what happens when you apply the modern and sophisticated tooling that we have in production to problems in development? what happens when you close the feedback loop, and use everything we know about our applications running in production to make more informed decisions during the development process? The possibilities are endless, and quite exciting! If this sounds interesting, make sure to follow and stay tuned for more coming from us very soon!</p><p>In the meantime, happy testing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*DC09ClmlhKC-Q5aHUNyaiQ.png" /></figure><p>The way we build applications has drastically changed with the rise of DevOps, Microservices, and Cloud Native — but the pinnacle of developer testing has remained static: run every test for every commit in CI and get no visibility whatsoever when things go wrong.</p><p>We’re building <a href="https://scope.dev/?utm_source=medium">Scope</a> to give teams a modern testing platform that provides a solution to the biggest pains in testing:</p><ul><li>Debugging unit and integration tests</li><li>Identifying and managing flaky tests</li><li>Reducing time spent testing by 50–90% (leading to a dramatic decrease in CI costs)</li><li>Detecting regressions before they reach production</li><li>Keeping master green</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=270e954388ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scopedev/master-is-the-new-prod-devs-are-the-new-ops-270e954388ce">Master is the new Prod, Devs are the new Ops</a> was originally published in <a href="https://medium.com/scopedev">Scope</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thanksgiving OpenTelemetry for Swift]]></title>
            <link>https://medium.com/scopedev/thanksgiving-opentelemetry-for-swift-2b6abcc97ac3?source=rss-8fe717320ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b6abcc97ac3</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Borja Burgos]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 16:01:01 GMT</pubDate>
            <atom:updated>2019-12-11T19:50:54.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*-Jo_V3wSuklPa7IuPowtqA.png" /></figure><p>If you’ve been following <a href="https://undefinedlabs.com/">Undefined Labs</a> and our work with <a href="https://scope.dev/">Scope</a>, you’ll have noticed we’re big proponents of modern observability practices, distributed tracing, and application-level telemetry. In the past, the team has had lots of success implementing solutions leveraging OpenTracing and OpenCensus. And when OpenTelemetry was announced, we did not hesitate to jump on board.</p><p>As <a href="http://scope.dev/">Scope</a> continues to grow to support numerous frameworks, architectures, and testing paradigms, developers are quickly realizing the true value of client-based (e.g. mobile, browser, etc.) testing in distributed cloud-native applications. Before Scope, running end-to-end tests from a browser or mobile device often turned into a futile attempt at managing an ever-increasing collection of flaky and impossible-to-debug tests.</p><p>With Scope, development teams can confidently run end-to-end tests originating in their mobile applications, knowing that when something fails, they’re seconds away from understanding why. We’ve written about this more extensively in a previous <a href="https://medium.com/scopedev/introduction-to-observability-for-an-ios-developer-b9bb94c654a2">blog post</a>.</p><p>Today, on Thanksgiving Day, in our mission to help development teams do more, faster, and to give back to the projects Scope is built on, we’re happy to announce we are open-sourcing an OpenTelemetry client for Swift. The project is currently available here: <a href="https://github.com/undefinedlabs/opentelemetry-swift">https://github.com/undefinedlabs/opentelemetry-swift</a>. And <a href="https://github.com/open-telemetry/community/issues/261">discussion has already began to donate it to OpenTelemetry</a>.</p><p>The Swift client for OpenTelemetry is not limited to iOS, and can also be used with macOS applications. It doesn’t support Swift for Linux, yet. If you’re interested in learning more or contributing to this project, please reach out! We’re excited to bring the exciting world of OpenTelemetry to the Swift community at large!</p><p>Happy Thanksgiving!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/174/1*Ry6cBUDFDRFV5Ng02dGXWA.png" /></figure><p><em>Testing is a core competency to build great software. But testing has failed to keep up with the fundamental shift in how we build applications. Scope gives engineering teams production-level visibility on </em><strong><em>every test</em></strong><em> for </em><strong><em>every app</em></strong><em> — spanning mobile, monoliths, and microservices.</em></p><p><strong><em>Your journey to better engineering through better testing </em></strong><a href="https://scope.dev/?utm_source=medium"><strong><em>starts with Scope</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b6abcc97ac3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scopedev/thanksgiving-opentelemetry-for-swift-2b6abcc97ac3">Thanksgiving OpenTelemetry for Swift</a> was originally published in <a href="https://medium.com/scopedev">Scope</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happened to tests?]]></title>
            <link>https://medium.com/scopedev/what-happened-to-tests-9af43b1bc2be?source=rss-8fe717320ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af43b1bc2be</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Borja Burgos]]></dc:creator>
            <pubDate>Wed, 09 Oct 2019 19:45:53 GMT</pubDate>
            <atom:updated>2019-12-11T19:48:51.334Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Happened to Tests?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DoAQvCW3ORSvrS3egPqFqg.png" /><figcaption>An end-to-end test touches many services in a modern multi-service architecture, often making them difficult to debug.</figcaption></figure><p>In recent years, we’ve made it trivially easy to build and operate increasingly complex systems, yet we still [try to] test these systems as if they were the simple applications of generations ago. Talk to developers about testing at their organizations and you’ll hear no shortage of alarming stories. Stories about unit tests purposely built to increase coverage, mocked interfaces behaving nothing like the real interfaces in production, ever-increasing rates of test and build flakiness, ever-decreasing rates of developer productivity, complex end-to-end tests that take weeks to debug, and worse. All things considered, rare is the occasion you find an application developer or an engineer in test satisfied about testing at their organizations.</p><p>It’s unfortunate, given the speed at which engineering teams are able to ship code, tests have the potential to become the single best indicator of performance, correctness, and quality of a system before reaching production. But when teams lack the tools and processes to collect, organize, analyze, debug, and ultimately understand tests and test data, then testing becomes a chore often relegated to a tertiary role.</p><p>Popular sentiment in tech right now is: why bother with pre-production testing? After all, the great tooling we have today allows us to run experiments, test in production easily, and do canary deployments, partial deployments, blue/green deployments, automatic roll-backs, etc. Without dwelling into the merits of software testing, as a practice, we shouldn’t think of these modern deployment/release strategies as alternatives to testing — they’re complimentary after all. No matter the mechanisms an organization has to mitigate the impact of a bug in production, its impact will be orders of magnitude more costly than catching the same bug in testing.</p><h3>We’ve seen it coming</h3><p>In 2013 we co-founded Tutum, a startup in the container ecosystem. In August 2015, <a href="https://techcrunch.com/2015/10/21/docker-acquires-cloud-startup-tutum-for-container-shipping-and-management/">Docker acquired Tutum</a>. Containers, cloud, and automation changed the ball game, and over the past six years, we’ve witnessed countless innovators, early adopters, and more traditional enterprises go through, and struggle with, the most significant technological transformation in recent years. How we develop changed, how we build changed, how we deploy changed, how we operate changed, how we monitor changed, but how we test? That hasn’t changed.</p><p>We first experienced the limitations of our testing tools while at Docker, where our team was building modern applications, moving [extremely] fast, and most importantly, helping customers do the same. We ran a complex SaaS and built enterprise software, composed of dozens of services, deployed across multiple data centers, developed using a handful of languages and frameworks. But, in due time, we realized that our customers, across industries, with teams from 10 to 2000 engineers, with 3-tier applications or thousands of microservices, were experiencing our same problems. We were not alone.</p><p>These problems manifested themselves as an increasing number of seemingly small issues around testing that started as minor inconveniences and steadily grew in complexity and difficulty. Before we knew it, our CI was more often red than not, plagued with flaky tests that couldn’t be reproduced, broken tests that couldn’t be debugged, and regressions that were not being caught until they reached production. And worst of all, developers across organizations were spending precious hours unsuccessfully triaging failures.</p><h3>The tipping point</h3><p>Like every software team out there, during our tenure at Docker, we experienced occasional outages in our production systems. We marveled at the team’s ability and speed, resolving these complicated bugs in our distributed application within minutes of a pager alert. That got us thinking, how come we can fix a production outage so quickly, yet our CI remains broken with a test we can’t debug for almost a week?</p><p>And that’s when it clicked. Whereas in production we had APM, infrastructure monitoring, structured logs, error tracking, exception handling, distributed tracing, metrics, and pretty dynamic visualizations to make sense of it all, in CI all we were left with was a log dump of our failed build.</p><p>After working with engineering teams at every maturity level, and across every possible industry, we realized something: as the complexity of an application increases, the visibility and value teams derive from their tests rapidly approaches zero. While it may be easy to debug a unit test in a simple application, what happens when an integration test, or even worse an end-to-end test, fails in a complex system? Your build is broken for a week. And a broken CI pipeline is the biggest bottleneck of many software engineering teams.</p><p>On top of that, most teams today lack the ability to collect, organize, and analyze the rich information coming from tests. In this day and age, you’re lucky if your team is using something as battle-tested [and archaic] as JUnit XML to point out which tests are failing in a specific build. But even then, how do you know which commit is to blame? How can you easily assign and track a test regression to one particular service, dependency, or developer? And how do you track this over time?</p><p>This lack of visibility results in a negative cascading effect: if a developer cannot easily debug a broken test, they are disincentivized from writing additional tests or caring about existing tests. On the flip side, the easier it is to debug a test, the higher the incentive and ROI (return on investment) to write new and maintain old tests. The problems exacerbate when the team responsible for writing, maintaining, and running tests isn’t the same team responsible for fixing them. The DevOps movement helped bridge the gap and eliminate the animosity that existed between Developer and Operations. But we’ve yet to address the partnership and camaraderie needed to run an effective <em>DevTest</em> organization.</p><p>We took a step back and asked ourselves, what do we want from testing? What would testing need to look like to be a competitive advantage? How would this redefine the relationship to testing for both the individual and the organization? We started covering whiteboards with potential ideas. Now that we have the early manifestations of some of these ideas, the solution seems obvious in retrospect.</p><h3>Towards a solution</h3><p>With the adoption of containers, microservices, cloud, automation, and others, we’ve seen this problem quickly spread across teams. Having experienced it firsthand, and having helped other engineering organizations go through the challenges of modern-day testing, the problem soon became an obsession of ours. In 2018, <a href="https://twitter.com/fernandomayo">Fernando Mayo</a> and I co-founded <a href="https://undefinedlabs.com/">Undefined Labs</a>, a startup focused on solving modern software engineering problems. We knew testing would be our first undertaking.</p><p>The solution we’re working on is unique in many ways, yet inspired by custom tooling built at the world’s best engineering organizations — we call it Scope.</p><p>As mentioned before, one of the biggest problems that became clear from the beginning was the lack of visibility in testing. In a complex system, when a test runs, failure can come in thousands of different ways. Debugging failure without an in-depth understanding of what the system is doing is nearly impossible. To solve this, we looked at modern monitoring and observability technologies and practices, mostly being used in production, and applied them to the development and testing lifecycles of an application. Scope automatically instruments your tests and applications and provides distributed traces, structured logs, environmental data, exceptions, and much more to make debugging a piece of cake.</p><p>Unlike production monitoring tools, focused on live environments, Scope’s value comes in understanding the nuances of tests, the development process, and how application developers and testers work. From commits, PRs, authors, and reviews, to CI, build IDs, test suites and test executions, everything is purposely built for testing. Simultaneously, Scope serves as the DevTest bridge between QA, engineers in test, service owners, and application developers.</p><p>How Scope collects, organizes, presents, and communicates issues with teams are modeled after internal tooling used by organizations such as Google, Twitter, Lyft, and Netflix. Scope’s visualizations are purposely built for testing, from grid-views to quickly assess which commit is to blame, to historical graphs to understand trends, and catch performance regressions.</p><p>But this is just the beginning. And given the insurmountable amount of invaluable data in tests, we’re actively researching how to best apply ML (Machine Learning) to make testing an even more significant competitive advantage — as demonstrated by recent academic and Facebook research.</p><p>Scope is the product that will save developers and engineering organizations countless hours of their most frustrating and demoralizing work, debugging tests in failed CI. But our ambitions don’t stop with debugging. With Scope, our goal is to provide complete developer visibility. Visibility to understand how an application behaves, what a test is doing, and how, where it is failing, when it is slow, and most importantly: why? Tests are a treasure trove of information. Information that your organization is already generating, and all of which is going to waste. Scope makes it easy to tap into all of it.</p><p>Tests can help teams understand trends and identify all sorts of regressions — from a silent breaking change on an API, to a recent commit introducing a suboptimal SQL query, to an entire codebase slowing down over time. Scope provides the right signals with which to improve engineering productivity, and unveil critical areas for improvement — understand which critical paths in your application aren’t currently being tested, remove unused legacy code, eliminate redundant tests, reduce flakiness, increase meaningful coverage, and catch incompatibilities between services before you ship them to production.</p><p>We’re incredibly excited to share Scope with you. Sign up now for <a href="https://www.scope.dev/">early access</a> and turn your organization’s testing into a competitive advantage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*cC11qx3AQwm65RAmcpV-Lg.png" /></figure><p><em>Testing is a core competency to build great software. But testing has failed to keep up with the fundamental shift in how we build applications. Scope gives engineering teams production-level visibility on </em><strong><em>every test</em></strong><em> for </em><strong><em>every app </em></strong><em>— spanning mobile, monoliths, and microservices.</em></p><p><strong><em>Your journey to better engineering through better testing </em></strong><a href="https://scope.dev/?utm_source=medium"><strong><em>starts with Scope</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9af43b1bc2be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/scopedev/what-happened-to-tests-9af43b1bc2be">What happened to tests?</a> was originally published in <a href="https://medium.com/scopedev">Scope</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>