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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 26, 2024, 18:28 UTC
Message-ID
<xmqqy13ei819.fsf@gitster.g>
In-Reply-To
<CAP8UFD2yTMNmx0n1jhOu7dz_4XeOyTy1iLmRWYmuf9QJf75hsQ@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
Show 20 quoted lines
> On Sat, Aug 24, 2024 at 7:20 PM Ghanshyam Thakkar
> <shyamthakkar001@gmail.com> wrote:
>>
>> Add tests for oidset.h library, which were not previously present using
>> the unit testing framework.
>
> It might be interesting to also say if there are tests for oidset in
> the end-to-end tests, not just in the unit test framework. Also I
> think oidset.h is more an API than a library.
> ...
> If initializing the hash algo fails here, it is likely because it
> already failed when get_oid_arbitrary_hex() (which initializes it) was
> called in the tests before this one. So I think it might be even
> better to move the above hash algo initialization code to setup() and
> make setup() error out in case the initialization fails. Then setup()
> could pass 'hash_algo' to all the functions it calls, even if some of
> them don't use it.
> ...
>
> Thanks.

While reviewing the "What's cooking" list of topics after tagging -rc0 of this development cycle, I noticed that this topic from late August has been expecting but not yet seeing an update.

As discussed elsewhere on the "Project Tracking" thread, I am in favor of formally adopting a policy to discard a topic from 'seen' after being inactive for 3 weeks, without having seen a clear consensus that it is good enough to be moved to 'next'. Interested parties are still free to revive the topic even after such a discard event.

    Side note: The definition of being "inactive" for the purpose of
    the policy is that nobody has discussed the topic, no new
    iteration of the topic was posted, and no responses to the
    review comments were given.

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.

Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.