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

Re: [GSoC][PATCH] unit-tests: add tests for oidset.h

From
Patrick Steinhardt <ps@pks.im>
Date
Sep 28, 2024, 07:02 UTC
Message-ID
<ZveqArC9NNs44Fjc@pks.im>
In-Reply-To
<xmqqcykpgchf.fsf@gitster.g>
On Fri, Sep 27, 2024 at 11:47:40AM -0700, Junio C Hamano wrote:
Show 22 quoted lines
> Christian Couder <christian.couder@gmail.com> writes:
> 
> > On Thu, Sep 26, 2024 at 8:28 PM Junio C Hamano <gitster@pobox.com> wrote:
> >
> >> I'll discard this one by the end of this week unless the topic sees
> >> any activity.  It looks to me that the project decided that a longer
> >> term direction to adopt "clar" as the unit-tests framework, so this
> >> patch would need to be written even if it were perfect in the old
> >> world order anyway.
> >
> > Yeah, unless Ghanshyam or someone else wants to continue working on
> > it, I think finishing this work should be part of the "Convert unit
> > tests to use the clar testing framework" Outreachy project that
> > Patrick and Phillip agreed to co-mentor. This project will only start
> > next December though (supposing a good Outreachy intern is selected),
> > so it's fine to discard it in the meantime.
> 
> And of course it does not have to wait until December.
> 
> If anybody wants to work on adding a unit test for oidset, they can
> do so immediately.  A new unit-test, including the oidset one,
> should be written using clar framework.

I'm also happy to help anybody who wants write such a new unit test suite.

Let me use this to give a quick status update regarding my upstream quest to address the feedback I got during reviews on the clar itself:

  - There is a .editorconfig file now.
  - All the cross-platform compatibility fixes have been merged.
  - We have Win32 wired up in CI. Doing so via Makefiles was too much of
    a hassle, so I converted the project to use CMake for easier cross
    platform testability. The fact that the project uses CMake does not
    impact us though, as we wire it up ourselves anyway.
  - All memory allocation errors are now handled consistently.
Currently in review is:
  - Self-tests for the clar, where we use clar to assert that clar
    works.
  - A small memory leak fix, as well as wiring up leak sanitizers in CI.

I've also got a patch series sitting locally that introduces type-safe wrappers for the assertions that I'll move into review once self-tests have landed. That would then address the last bit of feedback I got, if I remember correctly.

Just to let you folks know that I didn't just do nothing after this has landed in Git.

Patrick
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 10 in “unit-tests: add tests for oidset.h”
  1. Ghanshyam ThakkarAug 24, 2024
  2. Patrick SteinhardtAug 26, 2024
  3. Christian CouderAug 26, 2024
  4. Junio C HamanoAug 26, 2024
  5. Junio C HamanoSep 26, 2024
  6. howto-maintain-git: discarding inactive topicsJunio C Hamano, Sep 26, 2024
  7. Christian CouderSep 27, 2024
  8. Junio C HamanoSep 27, 2024
  9. Patrick SteinhardtSep 28, 2024
  10. Junio C HamanoSep 30, 2024

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.