Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix race conditions with logrus testingsh-fix-logrus-race | Stan Hu | 2020-05-11 | 1 | -0/+6 |
| | | | | | | | | | logrus fires a Goroutine to write logs, so the tests could fail if they checked the event queue before the logrus have fired. Since there isn't an easy way to flush all outstanding hooks, we just retry every 100 ms for up to a second for log to arrive in the queue. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450 | ||||
* | Fix race conditions in testssh-add-http-status-code | Stan Hu | 2020-05-08 | 1 | -30/+36 |
| | | | | | | | | Calling logrus hook.LastEntry() can lead to race conditions. Use AllEntries instead: https://github.com/sirupsen/logrus/blob/60c74ad9be0d874af0ab0daef6ab07c5c5911f0d/hooks/test/test.go#L77 Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450 | ||||
* | Add HTTP status code to internal API logs | Stan Hu | 2020-05-08 | 2 | -12/+35 |
| | | | | This would make it easier to filter the logs by status code. | ||||
* | Move gitlabnet client to client packagejc-refactor-gitlabnet-client | John Cai | 2020-05-04 | 7 | -0/+879 |