This year of GSoC focused on improving the existing tools I wrote the previous years (2014 & 2015) to achieve full GitHub integration.
This was achieved through:
Last year's sample platform was written using PHP (https://github.com/canihavesomecoffee/ccx_submissionplatform/), and that choice induced some problems regarding the ease of operating when combining the platform with the bot.
To get rid of these issues, a rewrite of the platform was required. A switch to python (in which the previous github bot was written already) was made.
The platform is currently running live at https://sampleplatform.ccextractor.org/, and the source code for the entire platform & GitHub integration can be found on https://github.com/canihavesomecoffee/sample-platform.
The platform isn't fully finished yet, though it is usable; These things still need to be done:
As the VirtualBox solution from last year proved to be terribly slow, this year, a migration to KVM was done.
This involved the following steps:
The code for this is fully integrated into the Sample Platform, and as such can be found there.
This part is unfinished. A windows VM needs to be created & configured, a startup service needs to be written (that can handle the automated compilation of CCExtractor under Windows), and the lines of code in the platform that handle the VM need to be uncommented.
Using the webhooks GitHub provides, a full integration with their platform could be made.
GitHub informs us of new pushes and pull requests, and the platform subsequently queues and executes the tests for given commit or PR. This code is also fully integrated into the platform, but mod_ci is the place where all the magic happens.
Besides the work detailed above, some patches for CCExtractor were contributed:
Next to that, some fixes to the test suite also were made: