Articles on yashugarg's Bloghttps://blogs.python-gsoc.orgUpdates on different articles published on yashugarg's BlogenSun, 24 Jul 2022 22:20:32 +0000Week 1: Adding tests in Extractor modulehttps://blogs.python-gsoc.org/en/yashugargs-blog/week-1-adding-tests-in-extractor-module/<p style="text-align: justify;">Hello there!<br> The first week of coding was exciting as I officially started working on the project!</p> <p style="text-align: justify;"><u><strong>What did I do this week?</strong></u><br> Before the GSoC period stated, I had implemented support for <em><strong>.pkg</strong></em> and <em><strong>.tar.zst</strong></em> archives for the tool, which are package distribution files for <em>FreeBSD</em> and <em>ArchLinux</em> operating systems. This week I finished writing the tests for these archive extractors and saw that it had almost a 1% impact on the total test coverage of the project.<br> While running these new tests on Windows, I noticed that the <em><strong>tar</strong></em> command is very slow on Windows. So I went ahead and reorganized the choice of extraction methods for <em>pkg</em> files based on the current operating system.</p> <p style="text-align: justify;"><u><strong>What is coming up next?</strong></u><br> After a brief discussion with the mentors, I suggested starting the work in modules with no test coverage. Since they need to be implemented from scratch and require less work to look back to, they are supposedly easier to start with. I decided to take up <em>format_checkers.py</em>, an untested module that I have worked on before.</p> <p style="text-align: justify;"><u><strong>Did I get stuck anywhere?</strong></u><br> No, I did not get stuck anywhere this week!</p> <p style="text-align: justify;"><em>Yashu Garg<br> 19/06/2022</em></p>garg.y2001@gmail.com (yashugarg)Sun, 24 Jul 2022 22:20:32 +0000https://blogs.python-gsoc.org/en/yashugargs-blog/week-1-adding-tests-in-extractor-module/Week 0: Checking In!https://blogs.python-gsoc.org/en/yashugargs-blog/week-0-checking-in-3/<p style="text-align: justify;">Hello there!<br> I am Yashu Garg, an engineering undergrad from the University of Delhi. As part of GSoC'22, I will be contributing to Intel's <a href="https://github.com/intel/cve-bin-tool/">CVE Binary Tool</a>. I'll be enhancing the test coverage and implementing fuzzing into the project!</p> <p style="text-align: justify;">In this last week of the Community Bonding Period, I tried to get ahead of schedule and begin early. Since this is my first time working on a security and vulnerability project, I thought a headstart would be helpful.<br> I worked on writing tests for the <em>Archive Extractor</em> and tried to solve the problems I noticed with the module. I reorganized the tools used to optimize their functioning on Windows and Linux.<br> My experience with unit testing and mocking is still limited, but I see GSoC as an opportunity to learn new things and not just implement what I know.<br> I am still a little intimidated by the technologies to be used and implemented, but I am sure that with enough time and focus, I will be able to execute my project nicely!</p> <p style="text-align: justify;"><em>Yashu Garg<br> 12/06/2022</em></p>garg.y2001@gmail.com (yashugarg)Sun, 24 Jul 2022 16:45:17 +0000https://blogs.python-gsoc.org/en/yashugargs-blog/week-0-checking-in-3/