Adding task writing guide to documentation and doing a bunch of other doc cleanup. Fixes T168 and T159
ClosedPublic

Authored by tflink on May 15 2014, 6:36 PM.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
roshi requested changes to this revision.May 15 2014, 10:03 PM

Overall looks great - just noticed some literary changes to make before pushing.

Sorry I didn't catch these earlier :-/

docs/source/writingtasks.rst
81

"... that you keep limit..." needs to read either "keep" or "limit."

109

This sounds a little off. Perhaps, "Download rpms included in the bodhi_id argument"

tflink updated this revision.May 16 2014, 1:03 PM
  • changes in wording from review comments
kparal requested changes to this revision.May 16 2014, 2:07 PM

There are some small things I'd adjust, but apart from that, thanks for great work. Once you fix some of those issues, or decide not to fix them, please push the patch. Thanks.

docs/source/index.rst
92

This should be

``foo-1.2-3.fc99``

Single backquotes are undefined in reST; in Sphinx they are used for an inline default role.

docs/source/taskyaml.rst
177

Should T142 be a link?

185–186

All of these are directives, but only some of them are called that in the section title. That's a bit confusing. Maybe remove the "directive" word and leave it just as "bodhi" and "dummy"?

If we do that, "bodhi comment" would move under "bodhi" description.

188

In this case (first introduction), I think we should provide a link:

`Bodhi <https://admin.fedoraproject.org/updates/>`_
205

Again, I'd provide a link to Koji.

228–229

And a link to ResultsDB, either our instance or a project page.

docs/source/writingtasks.rst
122

%s calls str(), AFAIK. Not needed to call it twice.

139

I wasn't immediately clear what "under python" means. Probably better to use under "python:".

206

Again, str not needed IMO. More of that below.

224

rpmfile is not defined at this point. Or have I overlooked something?

replied to some of the comments, will update the diff shortly

docs/source/taskyaml.rst
177

it could be, sure but that's a non-rendered comment. anyone reading that and especially anyone capable of fixing it should know how to find T142

185–186

that's what I get for pasting stuff without reading it closely :-/

the bodhi directive and the bodhi_comment directive are 2 different things, though so I don't think combining them is a good idea

docs/source/writingtasks.rst
122

that's a habit I've gotten into after having been bitten too many times by expecting automagical-ness when passing a tuple or a list into string formatting. I don't see any harm in leaving it there - while bodhi_id isn't a list or tuple in this case, I'd argue it's not harming anything

224

it's a parameter for the function. the code should run with libtaskotron - it hits bugs that make the output a garbled mess but it runs as well as it can

tflink updated this revision.May 16 2014, 3:30 PM
  • updates for comments from review, cleaning up improper monospace syntax for sphinx, some other cleanup and clarifications
roshi requested changes to this revision.May 16 2014, 5:39 PM

Everything looks good, but I would add the links to koji and resultsdb @kparal noted.

Everything looks good, but I would add the links to koji and resultsdb @kparal noted.

I don't understand - what needs to be changed about the links that have already been added?

roshi accepted this revision.May 16 2014, 5:50 PM

NVM - refreshing the page didn't update to the lastest diff for me. Apologies. Looks good :)

tflink closed this revision.May 16 2014, 6:04 PM

Closed by commit rLTRN742c92c3ccc3 (authored by @tflink).

kparal added inline comments.May 19 2014, 1:35 PM
docs/source/writingtasks.rst
122

Oh wow, a tuple really breaks it (a list works fine, though)! I didn't know:

>>> a = (1,2)
>>> print 'foo %s' % a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>> print 'foo %s' % (a,)
foo (1, 2)

Interesting.

224

No, rpmfiles is a parameter for the function. rpmfile is undefined. I still think this should crash.

Filed T170 to fix the issue.

docs/source/writingtasks.rst
224

yeah, you're right. I forgot to pull one of the code changes I was using to test it. it should be str(bodhi_id) instead of rpmfile