<?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 Rahul Yadav on Medium]]></title>
        <description><![CDATA[Stories by Rahul Yadav on Medium]]></description>
        <link>https://medium.com/@dxtr026?source=rss-6c000f8d9d7e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FpN15aEjcu2AWVU16VnLww.jpeg</url>
            <title>Stories by Rahul Yadav on Medium</title>
            <link>https://medium.com/@dxtr026?source=rss-6c000f8d9d7e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:36:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dxtr026/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[Continuous Integration Using WebPagetest and Webpack]]></title>
            <link>https://medium.com/engineering-housing/continuous-integration-using-webpagetest-and-webpack-1f4465d95405?source=rss-6c000f8d9d7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f4465d95405</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[webpagetest]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Rahul Yadav]]></dc:creator>
            <pubDate>Fri, 07 Oct 2016 14:05:13 GMT</pubDate>
            <atom:updated>2016-10-10T06:12:37.195Z</atom:updated>
            <content:encoded><![CDATA[<p>When we talked about <a href="https://hosing.com/?dektop=false">Housing Go</a> at <a href="https://jsfoo.talkfunnel.com/2016/36-building-fast-and-performant-apps">JSFoo</a>, there were a lot of queries about how we maintain the performance of our app over the time. Below is a description of how we do it.</p><p>We started development of Housing Go with the focus on metrics like sizes of the chunks generated using <a href="http://webpack.js.org/">Webpack</a>, Time to First Byte, First Paint, Speed Index etc. We knew to keep the app performant we have to make sure that we optimise and maintain these metrics by following a standard.</p><p>The need to measure how every pull request changed the metrics, became very important to us.</p><p>We use <a href="https://jenkins.io/">Jenkins</a> to build and deploy our code but the access of deployment is limited to a few. So anytime a developer wanted to deploy something to run tests or measure performance, he/she would have to catch someone who had the access to deploy the code, which slowed down the pace and created unnecessary dependencies.</p><p>We wanted to give every developer the ability to run tests and see the WebPagetest results. So we enabled continuous development using <a href="https://developer.github.com/webhooks">webhooks</a> and made it as easy as applying a label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*pfuHTRKjnMBsNkyqdn_kow.png" /><figcaption>‘Run Test’ label to start test</figcaption></figure><p>Whenever someone adds the label `Run Tests` on a pull request, that branch gets deployed on our beta environment and the tests are run. Once the tests are successful, the label changes to `Tests Completed` and the file sizes and WebPagetest results is commented on the PR.</p><h3>File Sizes</h3><p>We use webpack’s profile option to calculate the sizes of the files.</p><blockquote>webpack --profile --json &gt; stats.json</blockquote><p>We use this data to create a markdown table showing the current file sizes and how it is different to the latest deployed master branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ts53RoPy93j_DvVtt0pNUg.png" /></figure><h3><strong>WebPagetest API</strong></h3><p><a href="https://github.com/marcelduran/webpagetest-api">Webpagetest-api</a> gives a beautiful interface for accessing webpagetest.org’s results and there are tons of options that you can customise.</p><pre>import webPageTest from &#39;webpagetest&#39;<br>const wpt = new webPageTest(&#39;https://www.webpagetest.org&#39;, APIKey)<br><br>wpt.runTest(&#39;housing.com&#39;, {}, function(err, data) {<br>  // convertToMarkdown(data)<br>})</pre><h3>Route Based Statistics</h3><p>Using the data from webpagetest results we make sure that all the important metrics are tracked and kept under check. This is how it looks in the PR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEVxXqqKtaLe3gJa59FqFg.png" /></figure><h3>Network Waterfall &amp; Timeline Screenshots</h3><p>Using the same data we also visualise network waterfall image and UI screenshots with time. This helps us to monitor the integrity of the routes and also catch some big issues like UI repainting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YSVmSj6bUBGQcSCBDFGlw.png" /></figure><p>This helps the developer and the reviewer to get an idea about how a particular branch is affecting the performance and helps us keep HousingGo performant.</p><h4>Resources</h4><ul><li>Full Image - <a href="https://housinghq.github.io/webpagetest_bot_screenshot.png">https://housinghq.github.io/webpagetest_bot_screenshot.png</a></li><li><a href="https://www.webpagetest.org/">https://www.webpagetest.org</a></li><li><a href="https://github.com/marcelduran/webpagetest-api">https://github.com/marcelduran/webpagetest-api</a></li><li><a href="https://github.com/philschatz/octokat.js">https://github.com/philschatz/octokat.js</a></li><li><a href="https://developer.github.com/webhooks/">https://developer.github.com/webhooks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f4465d95405" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineering-housing/continuous-integration-using-webpagetest-and-webpack-1f4465d95405">Continuous Integration Using WebPagetest and Webpack</a> was originally published in <a href="https://medium.com/engineering-housing">Engineering @ Housing/Proptiger/Makaan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>