[ 
https://issues.apache.org/jira/browse/CASSANDRA-16655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Semb Wever updated CASSANDRA-16655:
-------------------------------------------
          Fix Version/s:     (was: 4.0-rc)
                             (was: 4.x)
                         4.1
                         4.0
                         4.0-rc2
          Since Version: 4.0-beta4
    Source Control Link: 
https://github.com/apache/cassandra/commit/b67d04b6fe311d8c923d125c722e7a094a921f0c
             Resolution: Fixed
                 Status: Resolved  (was: Ready to Commit)

> cassandra-cqlsh-tests.sh should return different return codes on circle vs 
> jenkins
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16655
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16655
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CI
>            Reporter: Berenguer Blasi
>            Priority: Urgent
>             Fix For: 4.0-rc2, 4.0, 4.1
>
>
> Recent jenkins runs appear broken (red) bc of a cqlsh test failure. That 
> reports the whole run as broken instead of that specific step with failures 
> and an unstable (yellow) run.
> It appears the reason may be 
> [this|https://github.com/apache/cassandra/blame/trunk/pylib/cassandra-cqlsh-tests.sh#L146]
>  change. At that time that was necessary to make circle fail that step. 
> Otherwise cqlsh failures would be ignored and that step rendered green 
> regarless making it useless. But it has been found now this makes jenkins 
> report the whole run red upon a cqlsh test failure.
> The solution seems to be to return different codes depending on whether we're 
> on jenkins or circle. [~mck] has suggested sthg along these lines:
> {code}
> # circleci wants non-zero exit to report failures, jenkins wants zero exit 
> for a unstable status
> [[ command -v circleci >/dev/null 2>&1 ]] && exit ${RETURN}
> exit 0
> {code}
> Procedure:
> - Fix the sh script
> - Break a cqlsh test
> - Test the test gets reported as a failure in circle
> - Test the test gets reported as a failure in jenkins and that the run and 
> step are yellow (not red)
> - Fix the test
> - Both circle and jenkins report green for that step



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to