All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Tim.Bird@sony.com>
To: tuyen.hoangvan@toshiba-tsdv.com, barbieri@profusion.mobi
Cc: fuego@lists.linuxfoundation.org
Subject: Re: [Fuego] [PATCH 2/2] ftc: gen_report: Add new functions for getting data to, generate the report
Date: Fri, 23 Feb 2018 04:49:54 +0000	[thread overview]
Message-ID: <ECADFF3FD767C149AD96A924E7EA6EAF644746BE@USCULXMSG01.am.sony.com> (raw)
In-Reply-To: <49616ddb-9c5f-8351-9610-a4d54abd1d48@toshiba-tsdv.com>

Just a few comments below.

> -----Original Message-----
> From: Hoang Van Tuyen
> Hi,
> 
> On 2/22/2018 7:40 PM, Gustavo Sverzut Barbieri wrote:
> > On Thu, Feb 22, 2018 at 7:51 AM, Hoang Van Tuyen
> > <tuyen.hoangvan@toshiba-tsdv.com> wrote:
> >> Hello Tim,
> >>
> >> I am working on gen-report feature (support several other format like
> html,

These patches look good.  I skimmed over them, but didn't have
time to do a thorough review today.  Thanks for the contribution.
I hope to review them tomorrow, but I might not get to them until
next week due to other commitments tomorrow.

> >> pdf, ...).
> > do you plan to generate ReStructuredText (RST) and from there use
> > converters, or really generate the same result into multiple formats?
> >
> > using RST allows not only to generate multiple formats, but also to
> > customize output via templates, which is a nice addition.

> Thank you for your suggestion. I did not think about generating the RST
> format before.
> I will consider the method which generates the RST format, then use
> converters to generate
> other formats.

I think this might  be good, but a lot will depend on the implementation
and the context of the report.  I'm worried a bit that running it through
RST to get to html may take a long time (but I'm in the middle of adding my
own RST-based testcase documentation, that will have this same issue.)

Also, I haven't looked in detail at the types of reports we plan, but I'm worried
that the RST support for tables will require keeping track of column positions
for the column borders.  With plain ASCII, we haven't worried if something
breaks the column boundaries, as it's only intended for human consumption.
With RST, I think text exceeding column boundaries might break the 
parsing required for conversion to other formats.  This is something to watch
out for.

Also, so far, the generator has not dealt with column-spanning (like the
chart generator does in the results parser).  But long term that will be needed, IMHO.
This is going to be pretty complex in RST.  (I'm not sure if it's more or less
complex than doing column-spanning directly in HTML).

I would recommend doing the generator as a python class, with support
for different output formats as sub-classes.

Just my 2 cents.
 -- Tim 

  reply	other threads:[~2018-02-23  4:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22 10:51 [Fuego] [PATCH 2/2] ftc: gen_report: Add new functions for getting data to, generate the report Hoang Van Tuyen
2018-02-22 12:40 ` Gustavo Sverzut Barbieri
2018-02-23  2:43   ` Hoang Van Tuyen
2018-02-23  4:49     ` Tim.Bird [this message]
2018-02-27 19:47 ` Tim.Bird

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ECADFF3FD767C149AD96A924E7EA6EAF644746BE@USCULXMSG01.am.sony.com \
    --to=tim.bird@sony.com \
    --cc=barbieri@profusion.mobi \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=tuyen.hoangvan@toshiba-tsdv.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.