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

Re: [PATCH v3 0/3] t/lib-httpd: make CGI test helpers concurrency-safe

From
Patrick Steinhardt <ps@pks.im>
Date
Aug 31, 2026, 07:18 UTC
Message-ID
<apUqvjWbbZCRUS0n@pks.im>
In-Reply-To
<xmqq1pbkfyb1.fsf@gitster.g>
On Wed, Aug 26, 2026 at 12:59:14PM -0700, Junio C Hamano wrote:
Show 30 quoted lines
> "Michael Montalbo via GitGitGadget" <gitgitgadget@gmail.com> writes:
> 
> >  * Patch 1 fixes apply-one-time-script.sh (the actual flake) and adds t5567,
> >    which drives the helper directly with no web server so the overlap can be
> >    forced deterministically.
> >  * Patch 2 makes http-429.sh atomic.
> >  * Patch 3 documents the atomic idioms next to where t/lib-httpd.sh installs
> >    the CGI scripts, so the guidance is in front of anyone adding another
> >    helper.
> >
> > Changes since v2:
> >
> >  * Patch 1 now consumes the marker with a plain "rm" (without "-f") instead
> >    of a rename. "rm" without "-f" already fails once the marker is gone,
> >    which is the atomicity the helper needs. A new comment explains why the
> >    helper discards the one-time script's stderr: a losing request can find
> >    the marker already removed.
> >
> >  * Patch 3 is now specific to the lib-httpd CGI helpers and lives beside
> >    their install site in t/lib-httpd.sh, rather than as a general section in
> >    t/README.
> >
> >  * Reworded several helper comments and the patch 1 and 2 log messages for
> >    clarity and to match the code; no behavior change.
> 
> After giving a cursory review to the previous round, I was hoping
> that somebody more clueful than I am about HTTP tests would lend an
> eye or two to these patches, but nobody seems interested.
> 
> Any takers?

I think this version is good enough. It's quite a bit puffed up by AI generated messages that are overly long and use lots of meaningless jargon, but I don't think that's worth another reroll.

Patrick
Previous: Junio C HamanoNext: Michael Montalbo via GitGitGadget
Message 32 of 43 in “t/lib-httpd: make CGI test helpers concurrency-safe”
  1. 0/3 t/lib-httpd: make CGI test helpers concurrency-safeMichael Montalbo via GitGitGadget, Jul 8, 2026
  2. 1/3 t/lib-httpd: fix apply-one-time-script race under concurrent requestsMichael Montalbo via GitGitGadget, Jul 8, 2026
  3. Junio C HamanoJul 8, 2026
  4. Michael MontalboJul 9, 2026
  5. 2/3 t/lib-httpd: make http-429 first-request check atomicMichael Montalbo via GitGitGadget, Jul 8, 2026
  6. Junio C HamanoJul 8, 2026
  7. Junio C HamanoJul 8, 2026
  8. Michael MontalboJul 9, 2026
  9. 3/3 t/README: document writing concurrency-safe helpersMichael Montalbo via GitGitGadget, Jul 8, 2026
  10. Junio C HamanoJul 8, 2026
  11. 0/3 t/lib-httpd: make CGI test helpers concurrency-safeMichael Montalbo via GitGitGadget, Jul 10, 2026
  12. 1/3 t/lib-httpd: fix apply-one-time-script race under concurrent requestsMichael Montalbo via GitGitGadget, Jul 10, 2026
  13. Patrick SteinhardtAug 4, 2026
  14. Michael MontalboAug 7, 2026
  15. 2/3 t/lib-httpd: make http-429 first-request check atomicMichael Montalbo via GitGitGadget, Jul 10, 2026
  16. 3/3 t/README: document writing concurrency-safe helpersMichael Montalbo via GitGitGadget, Jul 10, 2026
  17. Patrick SteinhardtAug 4, 2026
  18. Michael MontalboAug 7, 2026
  19. Patrick SteinhardtAug 10, 2026
  20. Michael MontalboAug 2, 2026
  21. Junio C HamanoAug 3, 2026
  22. 0/3 t/lib-httpd: make CGI test helpers concurrency-safeMichael Montalbo via GitGitGadget, Aug 13, 2026
  23. 1/3 t/lib-httpd: fix apply-one-time-script race under concurrent requestsMichael Montalbo via GitGitGadget, Aug 13, 2026
  24. 2/3 t/lib-httpd: make http-429 first-request check atomicMichael Montalbo via GitGitGadget, Aug 13, 2026
  25. Patrick SteinhardtAug 31, 2026
  26. Junio C HamanoAug 31, 2026
  27. Michael MontalboAug 31, 2026
  28. Michael MontalboAug 31, 2026
  29. 3/3 t/lib-httpd: document writing concurrency-safe CGI helpersMichael Montalbo via GitGitGadget, Aug 13, 2026
  30. Patrick SteinhardtAug 31, 2026
  31. Junio C HamanoAug 26, 2026
  32. Patrick SteinhardtAug 31, 2026
  33. 0/3 t/lib-httpd: make CGI test helpers concurrency-safeMichael Montalbo via GitGitGadget, Sep 1, 2026
  34. 1/3 t/lib-httpd: fix apply-one-time-script race under concurrent requestsMichael Montalbo via GitGitGadget, Sep 1, 2026
  35. 2/3 t/lib-httpd: make http-429 first-request check atomicMichael Montalbo via GitGitGadget, Sep 1, 2026
  36. 3/3 t/lib-httpd: document writing concurrency-safe CGI helpersMichael Montalbo via GitGitGadget, Sep 1, 2026
  37. Patrick SteinhardtSep 1, 2026
  38. Michael MontalboSep 1, 2026
  39. 0/3 t/lib-httpd: make CGI test helpers concurrency-safeMichael Montalbo via GitGitGadget, Sep 1, 2026
  40. 1/3 t/lib-httpd: fix apply-one-time-script race under concurrent requestsMichael Montalbo via GitGitGadget, Sep 1, 2026
  41. 2/3 t/lib-httpd: make http-429 first-request check atomicMichael Montalbo via GitGitGadget, Sep 1, 2026
  42. 3/3 t/lib-httpd: document writing concurrency-safe CGI helpersMichael Montalbo via GitGitGadget, Sep 1, 2026
  43. Patrick SteinhardtSep 3, 2026

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.