programmer290399's Blog

Weekly Check-In #7 [July 19, 2021]

programmer290399
Published: 07/18/2021

What did you do this week?

  • Finally got my directory property to location renaming PR merged.
  • Other than that I closed two similar issues [1,2] with a PR, this change now returns an output for archive and compression operations merged earlier.
  • I also made a small fix for a docstring test that was failing in this PR.
  • Also fixed some typos and made some housekeeping related changes here and there [1,2,3].

  • Other than that I worked on rebasing my open PRs [1,2] with master because Accuracy scorers have been merged into master branch.

What is coming up next?

  • I hope I'd now work on implementing archive support in Model base class finally.
  • But before that I would be fixing a related issue which is sort of blocking the implementation of DataFlows required to perform archiving ops.
  • This in itself is going to be a big change which would take a considerable amount of time.

Did you get stuck anywhere?

  • Nope, this week I mostly fixed simple stuff so there was nothing that bothered me.
View Blog Post

Weekly Blog Post #6 [July 12, 2021]

programmer290399
Published: 07/12/2021

What did you do this week?

What is coming up next?

  • After receiving feedback on my current changes I will work on any other changes that my mentor(s) might request.
  • Other than that I will also discuss the archive support implementation details with my mentor in the upcoming weekly sync and work on a new PR for the same.
  • I will also work on the Commit Linting Issue's PR to cover more enhancement points depending on the bandwidth I have this week.

Did you get stuck anywhere?

  • Yes and no as well, I took a considerable amount of time in reading the code base in couple of past weeks, to get a good idea of where the renaming is to be done, it is not like find and replace, there are a lot of places where directory property is not even related to a model and thus it was not as simple as it might seem.
  • Making the changes also broke a lot of stuff, almost all model tests and other various seemingly unrelated tests as well. So I was stuck at certain errors in the CI for sometime but eventually I was able to sort all of them out.
  • However, I cannot really say I was stuck all the time in the above listed things, as it was more about understanding and spotting out sources of problems which were causing various tests to fail.
View Blog Post

Weekly Check-In #5 [July 5, 2021]

programmer290399
Published: 07/08/2021

What did you do this week?

  • I continued working on the update for Model base class to support archive.
  • I also made all the requested changes for Archive and Compression related Operations and got my PR merged.
  • Other than that I completed the implementation of a couple of enhancement points for Commit Linting Issue and updated the tests as well. This also increased coverage of master commits by ≈ 2%.
  • I also finally Fixed the MacOS error in the CI by refactoring the test case for the Commit Linting Issue.

What is coming up next?

  • My main focus this week would be on Updating the Model base class to support archive storage, as I have also mentioned in my previous blog post that it is a bit time consuming and thus I might not be able to push working changes very soon.
  • Other than I'd be looking into the code for other models as well to foresee where changes would be required to adapt to the changes I've made in the Model Base class.

Did you get stuck anywhere?

View Blog Post

Weekly Blog Post #4 [June 28, 2021]

programmer290399
Published: 06/29/2021

What did you do this week?

  • I worked on two issues this week:
    1. Adding Operations for Archives and Compression
    2. Commit Linting Issue
  • I removed options parameter from and updated definitions for existing zip operations as per the feedback from my mentor. [1,2]
  • Other than that I cleaned up and also optimized some code here and there. [1,2,3,4,5,6 & 7]
  • Starting with Point 1, I implemented operations for creating and inflation of tar archives, also implemented their respective test cases.
  • The test for extract_tar_archive was especially a bit too tricky, writing it correctly took a considerable amount of time (more on that later).
  • Also added compression operations to support .gz, .bz2 & .xz formats with their respective test cases.
  • Moving on to Point 2, I implemented one of the five parts of enhancement issue related to it, i.e. added support for commits related to tests by implementing a body mutation.
  • I also optimized the code to avoid multiple calls to _get_all_exts(), by making a class attribute for it's output.
  • Last but not the least, I updated test cases to make sure that the linting support for tests related body mutation is working correctly.

What is coming up next?

  • Updating the Model base class to support archive storage using these operations would be my top priority for the coming week.
  • Obviously this would break a considerable number of models and would also call for implementation of new test cases and a number of small tweaks.
  • Other than that I would continue to work on the commit linting issue as per the enhancement checklist.

Did you get stuck anywhere?

  • Yes, while implementing the test case for extract_tar_archive, I ran into a lot of issues, mostly consisting of problems of faulty patching and problems regarding getting the right mock calls in place. However, I was able to solve the problem successfully after investing almost a complete day in it.
  • Deciding on how to implement the compression algorithms, also took some time, I wasn't really stuck on it, but it took some tome and discussion with my mentors to come to a conclusion.
  • Initially I thought I would give a compression option with the archive operations itself but as per the feedback from my mentor I wasn't supposed to implement options for now.
  • Also, binding the compression with archiving operations would not have been the best thing to do, implementing compression as an operation itself was the best way which I and both of my mentors agreed as it is comparatively more modular and flexible approach at solving this issue.
  • I still have not been able to resolve the MacOS related CI error in the commit linting issue, I would be discussing that with my mentor in the upcoming weekly sync.
View Blog Post

Weekly Check-In #3 [June 21, 2021]

programmer290399
Published: 06/22/2021

What did you do this week?

What is coming up next?

  • A couple of CI errors are still left in the commit linting issue, would be fixing them.
  • Would be brushing up and finalising the archive manager stuff.
  • Would make necessary changes to model base class.

Did you get stuck anywhere?

  • Yes, I was stuck with one thing for a long time,that was getting the current branch name in the CI, and it was not that easy for me because I wasn't aware of the fact that some env variables hold it and the actual PR branch name is different, anyways it didn't solve the issue anyways and I had to change the code to not require the current branch name. More on that whole thing here.
  • Also some CI errors bothered me this week, I haven't been able to fix them yet, I'd be discussing them with my mentor soon.
View Blog Post