Integrating Comet with GitLab
Thanks to a collaboration between Comet and GitLab, Comet experiments are fully integrated with GitLab. You can integrate Comet and GitLab in two ways as follows:
- Running Comet in the CI/CD workflow
- Using Webhooks
Let’s investigate the two ways separately, starting with the first one.
Running Comet in the CI/CD workflow
The following figure shows how Comet can be integrated with the CI/CD pipeline:
Figure 7.13 – Integration of Comet in the CI/CD workflow
Let’s suppose that you have changed your code to support Comet experiments. If your code is written in Python, then you have imported the comet_ml
library and used it to track your experiments. You can start the CI/CD workflow by creating a new branch for your project. As usual, you push code changes, and you build and run the code. This process also triggers a connection with the Comet platform. Then, the CI/CD workflow continues as...