Skip to content

Using GitHub Actions

The semi-automatic evaluation of the exercises is based on GitHub Actions. It is a CI system capable of running jobs on git repositories. We use this system, for example, to compile your code and test it.

You will receive a notification about the results in a pull request. But if you need more details, such as checking the application logs, you can access these using the GitHub web interface under Actions.

GitHub Actions on the web interface

Here, you will see a list of Workflows.

GitHub Actions workflow list

By selecting one (e.g., the last one is always at the top of the list), you see this workflow's details. To get to the logs, you need to click once more on the left. The log will be on the right side.

GitHub Actions job log

Each green checkmark is a successful step. These steps do not correspond to your exercises; these describe the evaluation process. These steps include preparations, such as setting up the .NET environment for compiling your code (since each workflow starts in a clean environment, these steps are performed each time).

Most of these steps should be successful, even if your submission contains an error. The two exceptions when these tasks might fail due to your changes are: (1) if neptun.txt is missing, or (2) your C# code does not compile. The neptun.txt is mandatory, and no evaluation is performed until that is provided. The C# compilation is a step that must succeed; otherwise, your application cannot be started.

There might be transient errors in these workflows. An example is when a download, such as the download of the .NET environment fails. The workflow execution can be repeated if this occurs. Retrying the execution may only help if the problem is indeed transient; a retry will not resolve a C# compilation error. (You can deduce the cause from the name of the step and the error message.)

GitHub Actions transient error and retry

You might also be able to access the application logs. E.g., when testing a .NET application, it is started, and the logs will be printed here.

The image below shows the initialization of an Entity Framework application, where you can also see the translated and executed SQL commands. (You would see the same in Visual Studio Output while debugging.) The content here, obviously, depends on the actual exercise.

GitHub Actions application log


2023-02-07 Szerzők