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

Re: [Outreachy] Microproject selection

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Oct 13, 2022, 07:33 UTC
Message-ID
<CAPig+cSq3fZ+L9Q6O3iYqFpf-BVCG4b1TQkYqOtNGPj_zZkX7A@mail.gmail.com>
In-Reply-To
<CA+PPyiGHwupxZ=XrmL-1Y=tZyO5JCshD+ss9t9b5pZihM7vFug@mail.gmail.com>

On Thu, Oct 13, 2022 at 2:29 AM NSENGIYUMVA WILBERFORCE <nsengiyumvawilberforce@gmail.com> wrote:

Show 8 quoted lines
> I am reading through https://git.github.io/SoC-2022-Microprojects/ and
> and I found an interesting task I could do which is to "Modernize a
> test script".
>
> When I looked through the code, I found I could clean up t1002 as
> mentioned in https://lore.kernel.org/git/CAPig+cQpUu2UO-+jWn1nTaDykWnxwuEitzVB7PnW2SS_b7V8Hg@mail.gmail.com/
>
> Let me know if I should go ahead

t1002 might indeed be a reasonable microproject since it could use a few of the same cleanups as mentioned in the email you cited. For a microproject, we usually don't want you to take on a large task since the aim of a microproject is for you to experience the patch submission and review process, however, the cleanups t1002 needs are each quite simple, so a multi-patch series would be appropriate. I foresee a series consisting of two to four patches:

(1) reformat tests from:
    test_expect_success \
        'title' \
        'body1
        boy2'
to the modern form:
    test_expect_success 'title' '
        body1
        body2
    '
(2) fix indentation to use TABs rather than spaces
(3) optional: move the:
    cat >expected <<EOF
    -100644 X 0 nitfol
    +100644 X 0 nitfol
    EOF

into the tests (14 & 15) which need it rather than creating "expected" in the global scope; at the same time, you might change `EOF` to `\EOF`, but be sure to mention that change in the commit message if you do so and explain why `\EOF` is preferred (see the "Recommended style" section of t/README for details)

(4) optional: many tests use the unusual construct:
    if read_tree_u_must_succeed -m -u $treeH $treeM; then false; else :; fi
which would be expressed more naturally these days as:
    ! read_tree_u_must_succeed -m -u $treeH $treeM

In fact, if you want a smaller microproject, the optional item listed last might be a decent microproject on its own without the other changes.

Previous: NSENGIYUMVA WILBERFORCE
Message 2 of 2 in “[Outreachy] Microproject selection”
  1. NSENGIYUMVA WILBERFORCEOct 13, 2022
  2. Eric SunshineOct 13, 2022

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.