Multiline annotations doesn't work
Hi I have tried to add a multi-line annotation, but it doesn't work.
$ curl --header 'Authorization: Token <TOKEN>' --data 'description=
the following benchmarks grew in size by more than 1%:
- 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes
- 471.omnetpp grew in size by 15% from 554691 to 635347 bytes
- 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes
- 400.perlbench grew in size by 12% from 938695 to 1048052 bytes
&build=/api/builds/117225/' https://qa-reports.linaro.org/api/annotations/
{"url":"https://qa-reports.linaro.org/api/annotations/14/","id":14,"description":" the following benchmarks grew in size by more than 1%:\n - 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes\n - 471.omnetpp grew in size by 15% from 554691 to 635347 bytes\n - 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes\n - 400.perlbench grew in size by 12% from 938695 to 1048052 bytes","build":"https://qa-reports.linaro.org/api/builds/117225/"}
as you can see the \n are well stored in the database.
but the page displayed on qa-reports server shows all in one line :
Annotation: the following benchmarks grew in size by more than 1%: - 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes - 471.omnetpp grew in size by 15% from 554691 to 635347 bytes - 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes - 400.perlbench grew in size by 12% from 938695 to 1048052 bytes*
which is not very readable.
Can you confirm that this is a bug ? Is it be possible to add this to your todo list ?
PS : I have also tried with html
. It doesn't work better. please advice.
Another option is to accept a file ;-) $ curl --header 'Authorization: Token ' --data 'description=@annotation_file&build=/api/builds/117225/' https://qa-reports.linaro.org/api/annotations/
Thanks
@laurent-alfonsi-linaro
Could you please try using some<br />annotation? I tried it locally and it worked.
I couldn't use it.
I tried "
" and "
" and the classic "
". none of them worked. see :
https://qa-reports.linaro.org/tcwg/tcwg_bmk_ci_gnu-build-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O3_LTO/build/291/metadata/
btw, I m pushing using $ curl --header xxx --form [email protected] --form [email protected] --form [email protected] https://qa-reports.linaro.org//api/submit/tcwg/tcwg_bmk_ci_gnu-build-tcwg_bmk_tk1-gnu-release-arm-spec2k6-O3_LTO/291/400.perlbench