GSoC 2020 with KDE
Much to my delight, the first phase of my project for GSoC has completed successully. All the goals according to my proposal timeline for the first month have been met and I’m pleased to say that I have passed my first evaluation.
The official email from Google
Hoping for similar results for the next two evaluations :)
So, what happened in Week 4? Here is a quick overview.
In my project proposal timeline, I have kept this week (which is the last week before the first evaluation) with lesser work than the rest. I was wary of the fact that some unforseeable problems may creep up during the project and to account for that I had kept some time reserved. Fortunately, no such problem showed up and my work proceeded as planned.
So, the major tasks this week were to rewrite and enable the benchmark tool and ensure that it works as a CTest and to make some changes to the ktoblzcheck command-line tool to allow the support of user-supplied bankdata which had become incompatible due to my previous work.
The command line tool was not much work. It just needed to take the argument from the user, do some error-checking and call the appropriate constructor. Although to make the checking part easier, I included a method in the public API to help in future.
This is a mere translation of a similar function in update-database.py.
The benchmark tool required an almost rewrite. The existing code dealt solely with text file reading, thus had to be replaced. The current benchmarking uses the two functions that were in the existing tool.
The first function, check_bankData_lookup, generates given number of blz and checks them using the AccountNumberCheck::findBank method.
The second function, check_testkontos, takes a file as a parameter and for blz in each row in this file, it generates a random kto and checks the two using AccountNumberCheck::check method.
After pushing these changes, my mentor Ralf suggested to add a --file argument to this tool so as to use this tool with any specified bankdata file. Thus, to handle command-line arguments, I made some further changes using the code from an existing tool in the project.
You can see my commits here : Commit Browser
As outlined in the previous post, all the objectives of this phase are completed.
- A script that generates the SQLite DB using blz datafile downloaded from the Deutsche Bundesbank
- Modifications in the CMake build system to call this script at build time.
- Replacing the part of code that uses the text datafile with the code that reads from this database.
- Updating tests, documentations and benchmark to work with the new database.
- Modifying the command-line tool to enable support for user-supplied database.
So, this marks the end of the first phase of the project. Truly, a remarkable experience.
Learnt so much, still much remains unknown. Hoping to discover more new stuff.
See you in the next post.