Skip to content

reST format: changed docutils report level to severe - #2152

Merged
jussimalinen merged 1 commit into
robotframework:masterfrom
vkruoso:docutils
Oct 8, 2015
Merged

jussimalinen merged 1 commit into
robotframework:masterfrom
vkruoso:docutils

Conversation

@vkruoso

@vkruoso vkruoso commented Sep 19, 2015

Copy link
Copy Markdown
Contributor

This is relative to issue #2093. The argument is that errors outside robot code blocks should be ignored when running robot. Still need to find a way to test this.

This will change behavior to only display severe messages when parsing
reST files using docutils. As robot is only interested in data that lives
inside some directives, errors from the outside world should not bother
the user.

Signed-off-by: Vinicius Kwiecien Ruoso <[email protected]>
@robotci

robotci commented Sep 19, 2015

Copy link
Copy Markdown

Admin, can CI be enabled?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at docutils sources, it seems string SEVERE could be used instead of integer 4. It would be easier to understand and remove the need for the comment.

I guess this should be added also to publish_from_doctree call in _read_html method below. That should be tested separately, though.

@pekkaklarck

Copy link
Copy Markdown
Member

Sorry, for missing this PR earlier. Ignoring other than severe errors sounds like a decent behavior for me. I don't think we need to make that configurable. Some further comments:

  • It ought to be possible to test this by validating that there are no errors in STDERR after sample.rst is executed.
  • As I commented in a line note, report level should probably be set also when specifying test cases in reST tables that are converted to HTML internally.
  • Should also add a note to the User Guide that lower level errors are ignored when running tests to avoid noise about non-standard directives. They can be seen when processing docs otherwise if needed.

How urgent is this feature for you and how fast you think you could finish it? We are planning to release RF 2.9.2 very soon, preferably already on Thursday. Because it was my mistake to miss this PR, we can delay it a little but not further than than early next week. The planned next release after 2.9.2 is 3.0 in December.

@jussimalinen

Copy link
Copy Markdown
Member

We decided to make the release Tomorrow Friday. We will do the tests and userguide changes needed to finish this. Thanks!

@jussimalinen
jussimalinen merged commit 283d19a into robotframework:master Oct 8, 2015
@vkruoso

vkruoso commented Oct 8, 2015

Copy link
Copy Markdown
Contributor Author

Thanks for the review! I would not have time to finish this until early next week, so it is good to hear that it is merged and you are doing improvements! Looking forward to 2.9.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants