Closed
Bug 1002775
Opened 11 years ago
Closed 11 years ago
For the purpose of continuous integration testing, makedocs.pl should return failed status if one or more errors occurred building docs
Categories
(Bugzilla :: Documentation, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: dkl, Assigned: dkl)
Details
Attachments
(2 files, 2 obsolete files)
673 bytes,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
675 bytes,
patch
|
glob
:
review-
|
Details | Diff | Splinter Review |
Currently if docs/makedocs.pl fails in any of the steps it returns a 0 since the return value for each of the system() calls is not inspected. We should check the return value and die if any part of the docs process fails. This will also allow proper failure detection in the Travis CI system I am working on.
Patch coming.
dkl
![]() |
||
Comment 1•11 years ago
|
||
We shouldn't die. We should continue with compiling the remaining doc.
Severity: normal → enhancement
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Frédéric Buclin from comment #1)
> We shouldn't die. We should continue with compiling the remaining doc.
Then I will check the return value of each system() call, collect the results and at the end return the correct result if there were one or more errors. This will still satisfy what I need.
dkl
Assignee | ||
Updated•11 years ago
|
Severity: enhancement → normal
Summary: For the purpose of continuous integration testing, makedocs.pl should fail early and with a true value if the docs build fails in anyway → For the purpose of continuous integration testing, makedocs.pl should return failed status if one or more errors occurred building docs
Assignee | ||
Updated•11 years ago
|
Severity: normal → enhancement
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8414494 -
Flags: review?(glob)
Comment on attachment 8414494 [details] [diff] [review]
1002775_1.patch
Review of attachment 8414494 [details] [diff] [review]:
-----------------------------------------------------------------
::: docs/makedocs.pl
@@ +63,5 @@
>
> say "Creating $name documentation ..." if defined $name;
> say "$cmdline\n";
> system $cmdline;
> + $error_found = 1 if $?;
you should be checking value returned by system() instead:
system($cmdline) == 0
or $error_found = 1;
Attachment #8414494 -
Flags: review?(glob) → review-
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8414502 -
Flags: review?(glob)
Assignee | ||
Updated•11 years ago
|
Attachment #8414494 -
Attachment is obsolete: true
Comment on attachment 8414502 [details] [diff] [review]
1002775_2.patch
Review of attachment 8414502 [details] [diff] [review]:
-----------------------------------------------------------------
r=glob
Attachment #8414502 -
Flags: review?(glob) → review+
Assignee | ||
Updated•11 years ago
|
Flags: approval?
Assignee | ||
Comment 7•11 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
cfbeadc..4ad3e58 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
![]() |
||
Comment 8•11 years ago
|
||
Comment on attachment 8414502 [details] [diff] [review]
1002775_2.patch
>+die "Error occurred building the documentation\n" if $error_found;
I don't see the point to die at this point. You could simply return $error_found.
![]() |
||
Comment 9•11 years ago
|
||
Reopening, as I think it's wrong to die, and this doesn't bring any value.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8414502 -
Attachment is obsolete: true
Attachment #8414694 -
Flags: review?(LpSolit)
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8414694 -
Attachment is obsolete: true
Attachment #8414694 -
Flags: review?(LpSolit)
Attachment #8414722 -
Flags: review?(LpSolit)
Comment 12•11 years ago
|
||
Comment on attachment 8414722 [details] [diff] [review]
1002775_4.patch
(In reply to Frédéric Buclin from comment #9)
> Reopening, as I think it's wrong to die, and this doesn't bring any value.
i disagree, which is why this patch got my approval+
provided a clear final error when something went wrong while building documentation is useful.
Attachment #8414722 -
Flags: review?(LpSolit) → review-
Attachment #8414694 -
Attachment is obsolete: false
Attachment #8414694 -
Flags: review+
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•