API status test

Bugs

Description

Sometimes the test stage checking the API's status fails with exit code 23 after evaluating https://gitlab.gwdg.de/subugoe/ahiqar/backend/-/blob/develop/.gitlab-ci.yml#L159. Reason is not yet clear to me.

I expected the following to happen

The pipeline should return 200 or 405

On the contrary, I observed

$ status=$(curl --head -S https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json | head -n 1 | cut -d" " -f 2)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
(23) Failed writing body

How to reproduce the bug

The pipeline fails without a pattern (as far as I have observed).

Severity

How much impact does this bug have on the product or further development?

  • Major

Pipeline has to be restarted manually. That's annoying and slows development down.

/cc Mathias Göbel, Frank Schneider, Michelle Weidling

Edited by Michelle Weidling