Red Hat Bugzilla – Bug 1314920
No logs when Git or Mock SCM import fails
Last modified: 2016-03-29 08:18:01 EDT
Description of problem:
When import fails, the build details page says
"Import failed. See logs for more details. "
However there are no logs for the build available.
The obvious simple fix is to remove the "See logs...." sentence, however it would be much much much better if there were actual logs available, since it would make figuring out what went wrong much easier.
I had a problem with my Mock SCM repo having different name than the actual package and I spent almost an hour figuring what's wrong, until I eventually found the relevant code in Copr source and realized what's wrong - having the mock log available would've saved me bunch of time....
always (when there's an import error)
Steps to Reproduce:
1. Have an error in Mock SCM data (wrong URL, invalid .spec path ...)
2. start build
Import fails, no logs available
Import fails, logs available :)
Thank you for the suggestion. The added logs might prove quite useful.
Fixed by 4d6656bcf8d & 7623ba57f7.
Code with this fix is currently deployed on testing server.
You can test it before it will be deployed to production.
Please see: http://copr-fe-dev.cloud.fedoraproject.org
Copr production machines were upgraded to version containing a fix to this issue.
If you are not satisfied with provided solution, please feel free to reopen this.