How engineering leaders can have more visibility on their GitHub Actions
Tags: devops, management, github, productivity
Published: 2022-11-23 07:03:17

Engineering leaders are responsible for development processes and their team’s experience. Today’s leaders in engineering must take decisions based on data. What measurements ought to be monitored as the key performance indicators for the team on their CI/CD process? Which specific facts should technical leaders focus on?

‍**_Serkan Ozal, CTO, and Co-Founder at Thundra_**  says

> **_Without a proper CI pipeline, it is impossible to send your code bug-free to production._** _If the failed tests running on your CI are not investigated properly, it is expected that the code will break something in production._

Common things when developers see a failed test or workflow are:

-   Re-running the whole workflow from the start
-   Try to reproduce the bug on local
-   Dig into the log piles

Although the traditional ways are still helping the developers, it loses so much time than expected.

‍**_Lemi Orhan, CTO, and Co-Founder at Craftgate_**  mention how crucial is to be aware of the CI performance at a high development pace.

> _We have more than 160 workflow runs each day._ **_It is very hard to identify when and why our workflows have failed._** _It is likely that one of our workflows start to run 5 times slower than usual. We needed to be alerted in some way._

Metrics about your CI and test performance attempt to guide you to a defect-free and quick software delivery when you take a broad view of the process of shipping software from development to production.

‍**_Stian Thorgensen, Keycloak Project Lead_**  shares some insight about why they chose GitHub Actions over many alternatives

> _As an open-source project, we were using Travis CI, but_ **_we switched to GitHub Actions very quickly._** _It allows you to have twice as many parallel runs, for free. That’s why we have switched to it._

However, GitHub Actions fall short of answering crucial questions like;

🆘 Which tests are blocking the PR?  
🤯 Which changed lines haven’t been tested?  
💰 What is the most costly workflow?  
🔻 Is my workflow success rate decreasing?

## Solution: Foresight

Foresight brings visibility into CI workflows and test runs, enabling developers to debug CI, build, and test failures and latencies quickly. Furthermore, Foresight’s change impact analysis helps you analyze the impact of the code changes to detect defects early in the release cycle.

With the help of the Highlights dashboard, engineering managers, and CTOs are eligible to answer the below questions;

-   Which workflows fail frequently and need to be optimized?
-   What is the duration/success/cost trend in my workflows?
-   Where do we need to start taking action about health and optimization?

Stian tells his experience about Foresight until now:

> **_We’ve been avoiding non-releasable junks due to the broken, unstable, and flaky tests._** _Foresight gives you the ability to look at more than one workflow at a time. You can easily see the tests and the results without losing your way in the log piles._

You may check the new code’s level of testing and how it affects your test results using Foresight’s PR view. The changes that prolong the merging process are easy to spot using Foresight.  **As a result, Foresight assists you in maintaining your contributions to your open-source project in a secure and effective way.**

Lemi adds to his initial experiences:

> _We have many repositories including several mono repositories. Foresight helped us to monitor all the workflows, runs, and test results from one single place, to improve the pipeline by the alerts, and to save a lot of time. I highly recommend it to the community._

If you would like to watch the Foresight demo and hear more from Serkan, Lemi and Stian, don’t forget to check out the  [webinar recording](https://cz90304.na1.hubspotlinks.com/Ctc/RG+113/cz90304/VWlL391P5122W40jqVs3n12vSW4lQ0X34SwsJFN52hRj53q90_V1-WJV7CgWzYN2hhckVQGHF_W4H1KWV6f4jhTW2Sfn733mLNxNW24ZV7b66PNQRN6bc0ZWSPz5hW90931p4vY8vYW879JzZ9lgFYRN3DmyGKKjffYW2dTyqm5Pt4HsW5RXzSQ6Cl1NDW7R6Fp36jv6M8W3GFWhv2TscVYVX0XcT8NvCmQW4g52MN7fK_7JN9f6L_5Z3HhLW272dNG4KHBDnW5sy4JK4Zqfm6W7yJrsJ2TXrw1W7qRBls6VNRbgW3MVBG58sQ1ZCW4JtXbZ1Q8v3hW7NP3z94QC_BsW5twkY58k48DkW4DQstB7pYf1mW5pWnHN36vrkVW6BggPG6ZhJMDW4pQb911YwYqMN7h4sngnDLfcW6_spxf144-xnW5NNg5n7SZbk537dq1)

![Foresight webinar cover](https://miro.medium.com/max/700/0*3tSMxzDeFZfgWh-K.png)

Create your  [free Foresight account](https://app.runforesight.com/signup)  and start monitoring your GitHub CI pipelines and tests. You can reach out to the Foresight team via its  [Discord community](https://discord.com/invite/bCtCmzP2ge).