<?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 prem sagar gali on Medium]]></title>
        <description><![CDATA[Stories by prem sagar gali on Medium]]></description>
        <link>https://medium.com/@galipremsagar?source=rss-22e7ded9d978------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4fmCRJI-8WUChn9NmYcW-A.jpeg</url>
            <title>Stories by prem sagar gali on Medium</title>
            <link>https://medium.com/@galipremsagar?source=rss-22e7ded9d978------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:44:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@galipremsagar/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[Making RAPIDS cuDF IO Readers and Writers More Reliable with Fuzz Testing]]></title>
            <link>https://medium.com/rapids-ai/making-rapids-cudf-io-readers-and-writers-more-reliable-with-fuzz-testing-5d595aa97389?source=rss-22e7ded9d978------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d595aa97389</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[prem sagar gali]]></dc:creator>
            <pubDate>Tue, 18 May 2021 17:10:22 GMT</pubDate>
            <atom:updated>2021-05-18T17:10:22.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3A8xp2BvLj-PX9oiBJ3sGg.png" /></figure><p><a href="https://docs.rapids.ai/api/cudf/stable/io-supported-types.html">IO readers and writers</a> have some of the most complex code in <a href="https://github.com/rapidsai/cudf">RAPIDS cuDF</a>. These also have a wide variety of parameters that are supported which increase the combinations in which they have to be tested. Thus, IO readers and writers are hard to exhaustively test via normal <a href="https://github.com/rapidsai/cudf/tree/main/python/cudf/cudf/tests">unit tests</a> on a per PR basis. Therefore, an additional testing framework was needed that includes comprehensive test coverage of these readers and writers with randomly generated data and parameters. To accomplish this we had to implement fuzz testing.</p><h3><strong>What is fuzz testing?</strong></h3><p><a href="https://en.wikipedia.org/wiki/Fuzzing">Fuzz testing</a> is an automated <a href="https://en.wikipedia.org/wiki/Software_testing">software testing</a> technique that involves providing invalid, unexpected, or <a href="https://en.wikipedia.org/wiki/Random_data">random data</a> as inputs to an API. In cuDF, the random data has different characteristics such as varying levels of nesting, cardinality, and the presence of null values. The program is then monitored for exceptions such as <a href="https://en.wikipedia.org/wiki/Crash_(computing)">crashes</a>, failing built-in code <a href="https://en.wikipedia.org/wiki/Assertion_(software_development)">assertions</a>, or potential <a href="https://en.wikipedia.org/wiki/Memory_leak">memory leaks</a>.</p><h3><strong>How does cuDF use fuzz testing?</strong></h3><p>cuDF currently has fuzz tests written for all the IO APIs i.e., for <a href="https://docs.rapids.ai/api/cudf/stable/io-supported-types.html#i-o-supported-dtypes">all formats’ readers and writers</a>. These tests are run indefinitely on a specific API with a wide variety of parameter combinations that are randomly generated. These tests end only when a user manually interrupts the process. In the cuDF fuzz testing framework, there also exist capabilities to reproduce the test failures.</p><h3><strong>Results</strong></h3><p>In the early stages of fuzz testing our IO readers and writers have found 58 issues in total, out of which 15 issues were either data corruption or unrecoverable errors. So, there are 46 issues that have been resolved as part of this effort until now, making cuDF IO readers and writers even more reliable.</p><h3><strong>How are IO fuzz tests in cuDF currently implemented?</strong></h3><p>To write a fuzz test for a specific API, we will need to define a class dedicated to that specific API that inherits IOFuzz as base-class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/adc19b98395009fa818892102b6c5cfa/href">https://medium.com/media/adc19b98395009fa818892102b6c5cfa/href</a></iframe><p>For example, a class we currently use to fuzz testing parquet writer is defined as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31d99c16bf4d7f761fc86eb8f91fffb6/href">https://medium.com/media/31d99c16bf4d7f761fc86eb8f91fffb6/href</a></iframe><p>Writing a fuzz test parquet writer without any params is as simple as:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2dc6db734d831335170b6728af869ee/href">https://medium.com/media/a2dc6db734d831335170b6728af869ee/href</a></iframe><p>If you would like to include parameter combinations in the fuzz test, you can do so by passing the desired parameters to `params`, like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/30f48b5ff9605f5b6da91fc76a2cbfd9/href">https://medium.com/media/30f48b5ff9605f5b6da91fc76a2cbfd9/href</a></iframe><p>The command to initiate fuzz tests for `parquet_writer_test` is:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c0bf742a09920c75abacd27c9df7c48/href">https://medium.com/media/0c0bf742a09920c75abacd27c9df7c48/href</a></iframe><p>The above command should produce an output similar to the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4dff8a613457b6864c5f99921158e82f/href">https://medium.com/media/4dff8a613457b6864c5f99921158e82f/href</a></iframe><p>Fuzz testing of this single API will keep running continuously until it is manually aborted.</p><h3><strong>Test failures</strong></h3><p>In case of any test failures, there are always two files that are created per test failure:</p><ol><li><em>&lt;timestamp&gt;_crash.json</em>: This file contains all the <strong>parameters</strong> and the <strong>seed</strong> used to reproduce the same exact error.</li><li><em>&lt;timestamp&gt;_crash.log</em>: This file contains the complete <strong>stack trace</strong> of the error with which the test case has failed with.</li></ol><p>A sample failure gets logged as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/333169935b9e1cd9b1880824bfa938a9/href">https://medium.com/media/333169935b9e1cd9b1880824bfa938a9/href</a></iframe><p>The crash files are generated in a human-readable format so the developer can easily reproduce the failure on their dev setup:</p><p>2021–04–19 09:47:20.623960_crash.json &amp; 2021–04–19 09:47:20.623960_crash.log:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec20b5bf2796a3d78f8fa3ba3e8e5808/href">https://medium.com/media/ec20b5bf2796a3d78f8fa3ba3e8e5808/href</a></iframe><p>This kind of crashes can also be easily reproduced by passing `regression` and `dir` parameters to the `pythonfuzz` decorator as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bb1dc55664231397bba613ba02259b7/href">https://medium.com/media/5bb1dc55664231397bba613ba02259b7/href</a></iframe><p>All you need to do is just rerun the same test and this time only the parameter combinations that result in test failures are run:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c00e0140a6b01ab18e82dec6326322cb/href">https://medium.com/media/c00e0140a6b01ab18e82dec6326322cb/href</a></iframe><h3><strong>Conclusion</strong></h3><p>Fuzz testing is something that has recently been introduced in cuDF. The fuzz testing framework is designed to facilitate wide-ranging customizations with data generation, parameter combinations, and logging, along with reproducibility. Try it out and let us know if you have any feature requests or issues with the framework by raising an <a href="https://github.com/rapidsai/cudf/issues">issue</a> on our Github repository. As always, code contributions are welcome too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d595aa97389" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rapids-ai/making-rapids-cudf-io-readers-and-writers-more-reliable-with-fuzz-testing-5d595aa97389">Making RAPIDS cuDF IO Readers and Writers More Reliable with Fuzz Testing</a> was originally published in <a href="https://medium.com/rapids-ai">RAPIDS AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey in OMSCS]]></title>
            <link>https://medium.com/@galipremsagar/my-journey-in-omscs-9bfb69908ae2?source=rss-22e7ded9d978------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bfb69908ae2</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[prem sagar gali]]></dc:creator>
            <pubDate>Tue, 01 May 2018 05:33:00 GMT</pubDate>
            <atom:updated>2018-05-01T06:11:29.569Z</atom:updated>
            <content:encoded><![CDATA[<p>Today marks the end of one full academic year at OMSCS(Online MS in CS) at Georgia Tech. First, to few who don’t know what OMSCS is…</p><p>OMSCS is an Online Masters program offered by Georgia Tech. When one say’s it’s an online MS program, there are many assumptions around it like the difficulty level will be lower than the on-campus program, there won’t be any exam, etc…etc,. So, let me clear it off. The assignments, exams, exam dates, exam difficulty, class schedule everything is the same for on-campus &amp; online students. Even the TA’s who evaluate the assignments won’t be aware of if they are evaluating an online or on-campus students assignment. It is only the instructor who gets to know who is online student. The only differences for online students is that there is no f2f faculty/TA interaction. But they are all a post away on piazza, all the interactions happen over skype/webEx calls in Atlanta time-zone only.</p><p>I came to know about this program from Peri sir. So after getting an idea of what the program is, I applied &amp; got an admit for Fall-2017. Like any other student I was happy &amp; excited to start my Masters in a university which was ranked No.8 in the USA. At that time no other university offered an MS program online without trimming down their curriculum, this was one of it’s kind. So I thought I should share my experience about attending this program. Hope this will help any of my friends who aim of taking it in future. At the same time I got an offer from the company which I wanted to make a switch to. I couldn’t for-see the repercussions of an online ms program bundled with a new job :) However my hiring manager(present manager) was very happy &amp; encouraged me to do my online MS in parallel. But equation turned out not to be so simple.</p><p>Coincidentally my start date of new job &amp; online MS were on the same day-August 28th 2017. If you are a newcomer, It will always take some time for your team to gain trust in you. I was trying the same too. I constantly kept bumping into my manager asking for his feedback on my performance. He didn’t have any issues and when the ratings period came around I could clearly make it that he was more that happy with my contributions to the product. But if you remember the difficulty level part I stressed in the beginning, if the program was soo difficult how did I manage to pull off my job &amp; ms? There was heavy cost involved in making both happen..Here goes my schedule I’ve been following for the past 9 months, on weekdays — the entire day I spend my time in office and when I get back home I finish off any pending lessons to be watched for that day and quickly goto bed by 9PM and wake up by 12AM to attend office hours or to interact with TA’s/Faculty for doubts, 1:1 interaction and all. Timezone differences played with my sleep timings :) Neither could I have enough sleep in Indian Timezone nor in Atlanta Timezone :P Practically Whatever 3 to 4hrs sleep I used to get was sufficient. Well before registering for subjects, I spoke to an alumni of OMSCS program who is right now an Architect at MSIDC, he strictly said not to take more than 1 subject per semester. But then there was also a max cap limit of 2 subjects per semester for online students enforced by the institute. The institute too insisted on taking 1 subject for the first semester so that students get a sense of what difficulty levels they will have to deal with. With lot of overconfidence &amp; strategy(a strategy of picking 1 easy + 1 tough subject) I went ahead and took 2 subjects :) . But then that strategy of pairing easy &amp; hard subjects was merely a pairing choice of subjects but not the actual work load :) . If I took 1 subject I would have had assignment submissions every alternate weekend. Now that I have 2 subjects in my bucket I had to do assignments and submit every weekend. There is definitely a sharp learning curve with the assignments but compared to other students I felt I had an advantage of understanding the spec &amp; stitching together the pieces of code to get them working. This advantage was because of the similar model/difficulty of assignments which were given to me 2 years ago at Mission R&amp;D. My mind was able to easily tune to the online model because of Mission R&amp;D. The assignments were not straight forward, one had to easily read 2 to 3 whitepapers/research papers(10 to 40 pages per paper) to understand and finish the assignment. So all my weekdays apart from office hours I used to spend my time watching video lectures and reading research papers and weekends entirely dedicated to the assignments for coding, debugging, improvising &amp; submitting. Coming to the exams, they were conducted online via a third party platform called ProtorTrack. Entire exam sessions are recorded from the laptop webcam, they use cutting edge Machine learning algorithms to detect if one is cheating in the exams, even if I bend my head to look into keyboard and type I would be flagged as copying :) I don’t know whose idea was it but I feel the one who has designed thinks a student will sit still like a statue in the exam hall :) Then the instructor and TA’s watch all the flagged recordings and unflag the false positive cases. :)</p><p>Context switching from my regular office work to studies &amp; vice-versa was not that simple. I repeatedly had a feeling that with the current load on me I might screw up either job or MS. But tried hard to strike a perfect balance between both without neglecting any of the both. Though I say assignments and the tasks given in the masters program were tough &amp; challenging, their motive was very simple..to teach the concept. No doubt one has to stretch a lot out of their comfort zone to learn it, but I never had a regret doing so. The community of students and indeed the faculty are very supportive. After completing every assignment I felt quite happy that I learnt something I didn’t know! This happened many times for real: Most of the times I would work on an assignment till the submission deadline, submit &amp; pack my laptop &amp; rush to my office involuntarily, in 10 mins after I reach office, mom calls me to say that I forgot to have my breakfast *Facepalm*. There were lots of up &amp; downs through the course too, in the first semester with the new job &amp; ms things happening it was too much stress on my head and all of a sudden had health issue because of this and got admitted to hospital. I didn’t reveal what was going on in my life just to see what the doctor has to say..doctor asked for symptoms..i said..he asked are you taking too much stress? My mom anxiously revealed everything I didn’t want to say. After a nice dose of both medicines and doctor’s gyaan I was back to normal after a month’s time. I wondered if it was only me? But then I used to ping my fellow classmates (whom I never met) occasionally when I was blocked for help. This is a copy paste of a reply from my friend who is married and has kids and is quite high up in the corporate ladder…I asked how far has he come in the assignment as I was facing some issue..his reply was <strong>“I’ve cried a handful number of times in my life, trying to solve this assignment is one of them”.</strong> It was then I realized balancing both these boats is a tough thing to do, but there is no going back in this. Either I continue to balance or I drown completely :) I went back again to think why did I start Online MS when I had a job, it was out of my own interest to learn new things. I was warned it was going to be tough &amp; challenging but then only till I experience it I won’t really know “how tough” it is. So I clearly had to give up all my personal life to balance out both. I did the same for the entire academic year. No family(I even acted like an anchor at home because of which my parents stopped going out as I wouldn’t come out), No friends, No going out on weekends, No hanging out with friends, Nothing. The price involved in balancing was, sacrifice a lot on the personal life &amp; health too. With time I slowly understood how to prioritize stuff, how to manage time, how to stay healthy, how important are family &amp; friends and people around me. Most importantly how to not get tensed and loose my cool :)</p><p>Overall the past one year was a very nice life changing experience to me. Without support from my parents &amp; people around me I wouldn’t have even come this far. We start doing things with a strong motive/intention behind it, but then in the process of doing so we tend to forget the actual motive because of the practical hurdles we face and slowly give up. Only way out of it is to look back why it all started and not forget the motive and ace the problem. Here I’m completing my first academic year successfully. Lot of experiences, Lot of learning both in academics &amp; life. 0 regrets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bfb69908ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>