fuel-docs CI doesn't detect ERROR when building PDF

Bug #1408752 reported by Dmitry Borodaenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Mateusz Matuszkowiak

Bug Description

This review got a +1 from Fuel CI:
https://review.openstack.org/144373

Even though a number of ERROR lines are present in the output:
https://fuel-jenkins.mirantis.com/job/stackforge-verify-fuel-docs/2260/console

When ERROR is reported by sphinx, the CI job should give the patch -1 even if make's exit code is 0.

Revision history for this message
Alexander Charykov (acharykov) wrote :

There is a problem with detecting error, because sphinx returns non-zero code even when there is warnings only. And there is no option to change this behavior.

Revision history for this message
Aleksandra Fedorova (bookwar) wrote :

I am not sure how should we deal with "document isn't included in any toctree" warning which present in current master.

Should we filter it out or fix it?

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

At a minimum, I need ERROR messages to trigger a -1 (regardless of whether WARNING messages are handled).

WARNING messages about "pdf/pdf_*.rst" files should all be ignored.

One more optional thing that we used to do was to count the number of WARNING messages before and after the commit is applied, and fail the build of the number of such messages has increased (similar to what OpenStack projects do with pylint errors). I think this is nice to have, but if it takes too much effort to implement I'll be satisfied just having -1 from ERRORs.

Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Mateusz Matuszkowiak (mmatuszkowiak)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote :

Hi,

Dmitry, by ignoring Warning mesgs regarding "pdf/pdf_*.rst" files you mean also to NOT count them?

Please have a look at these two test below job builds, which I ran recently after my first modds:

1) https://pkgs-ci.fuel-infra.org/job/verify-fuel-docs/21/consoleText
This job failed since there was at least ONE error present. Job has ignored (not even printed) these warnings, that refer to the "pdf/pdf_*.rst" files, that's why there is only one WARN present.

2) https://pkgs-ci.fuel-infra.org/job/verify-fuel-docs/20/consoleText
Job succeded since there are no errors. Also only one warning discovered (and the rest are ignored).

regards,
mateusz

Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote :

Also, Dmitry could you provide a link to an example regarding the "optional thing" related to counting warnings?

Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote :

First part of required FIX (if ERROR = return -1) has been merged.
Second, related to counting Warns from previous commit and comparing it against current, has been proposed on gerrit review.

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Aleksandra Fedorova (bookwar) wrote :
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Based on build results for several recent commits (most importantly https://review.openstack.org/147712) it works exactly as requested, nice work!

Changed in fuel:
status: Fix Committed → Fix Released
tags: added: system-test-not-required
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.