git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v6 3/6] t0021: write "OUT" only on success

From
Lars Schneider <larsxschneider@gmail.com>
Date
Jun 26, 2017, 09:26 UTC
Message-ID
<0FC46284-650F-411D-845F-0DF4F32071FF@gmail.com>
In-Reply-To
<xmqqlgof7lw7.fsf@gitster.mtv.corp.google.com>
Show 11 quoted lines
> On 26 Jun 2017, at 00:17, Junio C Hamano <gitster@pobox.com> wrote:
> 
> Lars Schneider <larsxschneider@gmail.com> writes:
> 
>> "rot13-filter.pl" used to write "OUT <size>" to the debug log even in case of
>> an abort or error. Fix this by writing "OUT <size>" to the debug log only in
>> the successful case if output is actually written.
> 
> Again, use of "Fix this" without clarifying what the problem is.  Is
> this change needed because the size may not be known when the new
> filter protocol is in use, or something?
How about this?
    "rot13-filter.pl" always writes "OUT <size>" to the debug log at the end
    of an interaction.
    This works without issues for the existing cases "abort", "error", and 
    "success". In a subsequent patch 'convert: add "status=delayed" to 
    filter process protocol' we will add a new case "delayed". In that case 
    we do not send the data right away and it would be wrong/misleading to
    the reader if we would write "OUT <size>" to the debug log.
    Address this issue by writing "OUT <size>" to the debug log only if 
    output is actually written in the successful case.
- Lars
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 24 in “convert: add "status=delayed" to filter process protocol”
  1. 0/6 convert: add "status=delayed" to filter process protocolLars Schneider, Jun 25, 2017
  2. 1/6 t0021: keep filter log files on comparisonLars Schneider, Jun 25, 2017
  3. Junio C HamanoJun 25, 2017
  4. Lars SchneiderJun 26, 2017
  5. Junio C HamanoJun 26, 2017
  6. 2/6 t0021: make debug log file name configurableLars Schneider, Jun 25, 2017
  7. Junio C HamanoJun 25, 2017
  8. 3/6 t0021: write "OUT" only on successLars Schneider, Jun 25, 2017
  9. Junio C HamanoJun 25, 2017
  10. Lars SchneiderJun 26, 2017
  11. Junio C HamanoJun 26, 2017
  12. Lars SchneiderJun 26, 2017
  13. 6/6 convert: add "status=delayed" to filter process protocolLars Schneider, Jun 25, 2017
  14. Junio C HamanoJun 26, 2017
  15. Lars SchneiderJun 26, 2017
  16. Junio C HamanoJun 26, 2017
  17. Junio C HamanoJun 26, 2017
  18. Lars SchneiderJun 27, 2017
  19. 4/6 convert: put the flags field before the flag itself for consistent styleLars Schneider, Jun 25, 2017
  20. Junio C HamanoJun 25, 2017
  21. 5/6 convert: move multiple file filter error handling to separate functionLars Schneider, Jun 25, 2017
  22. Junio C HamanoJun 26, 2017
  23. Stefan BellerJun 27, 2017
  24. Junio C HamanoJun 26, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.