Created vs Resolved Issues Chart
Table of Contents
Accordig to discussions Test failures and MakeTeamcityGreenAgain To allow community to grow more quickly and from the CI perspective, failing tests should be the main concern
For Run All dependencies at Ignite 20 Tests there should be no stable red suites. timed out suites and stable red tests.
For early identification of failures, for master and release branch monitoring there is special tool MTCGA Bot (Ignite TC Helper).
This tool monitors TeamCity https://ci.ignite.apache.org/ and send notifications to dev. list if it detects new failures.
Source code available at https://github.com/dspavlov/ignite-teamcity-helper
Ignite Developers are welcome to give feedback and post issues: https://github.com/dspavlov/ignite-teamcity-helper/issues
This tool can be also used for checking PR for introduction of new failures.
This section covers notification types utility can send to dev@ list. User can specify his or her email and select desired tracked branches. All failures in this braches will be also forwarded to user.
New test failure notification is generated if test was stable passing and then became stable failing. Stable passing test requires at least 5 sucessfull runs in a row. Stable failure requires 3 failures in a row.
Let's define 0 as success, 1 as failure.
So history of runs ..00000111.. will cause notification. First transition 0->1 can be bug introduced test failure, and notification is linked to this particular build. Notification will not be resend in case tests continues to fail. This is done because all contributors are considered as interested in successfull tests passing and will do required steps to fix issue.
Duplicate notification can occur for same test if there is history ...00000111...00000111. And second transition 0 ->1 can be potentially new problem, and test failure would be re-notified.
Some tests are flaky and sometimes change its state. This means test can be unluckily failed 3 times in a row. To protect from spam the Bot checks if test status transition is not often. Heuristic rule now is more than 6 state transitions for latest 50 runs. If test will change its state often then new rule is applied. Test fail is considered as fail for 7 failures in a row. So history should be at least ...000001111111...
If test has no previous history and failed 3 times in a row, then it should be also considered as newly introduced failure. This notification is planned to be supported in future releases: https://github.com/dspavlov/ignite-teamcity-helper/issues/10
The Bot is able to handle timeouts & JVM crashes in suites in a special way. These type of failures are named Critical. If 3 or more (timeouts/JMV crashes) occured several times in a row, this will generate suite-related notification. Also it is required that last run was completed with timeout.
Lets name result 2 as critical failure. So it is required to have 5 non critical failures and 3 critical to generate notification: ....(0/1)(0/1)(0/1)(0/1)(0/1) 222....
project = IGNITE AND labels = MakeTeamcityGreenAgain AND assignee is EMPTY AND resolution is EMPTY
project = IGNITE AND labels = MakeTeamcityGreenAgain AND assignee is not EMPTY AND resolution is EMPTY
project = IGNITE and labels = MakeTeamcityGreenAgain and labels = Muted_test and resolution is EMPTY