git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Christian Couder <christian.couder@gmail.com>
To: Aryan Gupta <garyan447@gmail.com>
Cc: git@vger.kernel.org, "Patrick Steinhardt [ ]" <ps@pks.im>,
	karthik nayak <karthik.188@gmail.com>,
	 Junio C Hamano <gitster@pobox.com>
Subject: Re: [GSoC][PROPOSAL v1] Refactor git-bisect(1) to make its state self-contained
Date: Tue, 26 Mar 2024 11:29:57 +0100	[thread overview]
Message-ID: <CAP8UFD1U3j4tf3snk0qcDjHPRKxuaUVZOw7GuCEwAnXb-gRvHQ@mail.gmail.com> (raw)
In-Reply-To: <CAMbn=B58_KSvkEMEsCnrN6rGL61+qFv9NqcOO8adyU5A37=vjQ@mail.gmail.com>

Hi Aryan,

On Thu, Mar 21, 2024 at 2:21 PM Aryan Gupta <garyan447@gmail.com> wrote:

> On Wed, Mar 20, 2024 at 12:06 PM Christian Couder
> <christian.couder@gmail.com> wrote:

> > On Sat, Mar 16, 2024 at 7:58 PM Aryan Gupta <garyan447@gmail.com> wrote:

> > > -- About Me --
> > > ====================
> > >
> > > I have been enthusiastic about open source from the very beginning of
> > > my journey as a software developer. I’ve contributed to other
> > > open-source projects, though still a beginner, I’m generally familiar
> > > with the process of contribution. The related experiences are all in
> > > the contribution graph on my GitHub profile page [1]. In the ZAP
> > > Project[2] community, I’ve made over 50 PRs [3]. I also participated
> > > in the Google Summer of Code 2023 with the OWASP Foundation and
> > > successfully completed it as well [4]. I have contributed to some
> > > other small projects as well on GitHub.
> >
> > It's interesting to know that you have already participated in a GSoC.
> > Is there a single blog post about this or more?
>
> Here it is: https://www.zaproxy.org/blog/2023-09-11-browser-recorder/

I saw that there is one blog post, but I wanted to ask if there are
more blog posts. That's because we ask GSoC contributors to post on
their blog at least every 2 weeks and if possible every week.

> > > -- Strategies for Handling Backward Compatibility --
> > > ---------------------------------------------------------
> > >
> > > 1. Before implementing any changes, a good understanding of how
> > > git-bisect works and how it is structured is very important. So, I
> > > will thoroughly analyze the existing usage patterns of git-bisect and
> > > list down all the potential areas of impact.
> > >
> > > 2. To validate the codebase changes and ensure the stability and the
> > > backward compatibility of git-bisect command. I will write unit tests
> > > for all the required changes.
> >
> > Do you mean unit tests using the new unit test framework in C. Could
> > you show an example?
> >
>
> Not sure about what is the standard way that git uses for writing unit tests.
> Could you tell me a bit about this?

I was just asking if you planned to use the new unit test framework in
C. The "Move existing tests to a unit testing framework" project that
we propose on https://git.github.io/SoC-2024-Ideas/ is about moving
some unit tests to this new unit test framework. Please take a look at
that project to get more information about this subject.

> > > 3. I will also try to create some real scenarios where I will be
> > > manually testing the desired behavior.
> > >
> > > 4. We might also need some regression tests to test some of the
> > > functionality which can't be tested using unit tests.
> >
> > In which test script would you add them?
>
> I will be writing these in bash and will be adding it in a new test case file
> inside the git/t directory or maybe in "git\t\t6030-bisect-porcelain.sh"

It's better to always use the Unix notation for paths like
"t/t6030-bisect-porcelain.sh" starting at the root of the repo, rather
than mixing the Unix and Windows notations and adding "git/" before
the root.

> file. I will try mocking a scenario where we have the BISECT_* files available
> in the .git directory and then run git bisect using the command line and then
> check the expected results.

The t/*.sh test scripts are the right place for end-to-end tests
(sometimes called "black box" tests), but not for unit tests that
would test some C functions. Both unit tests and end-to-end tests
could be regression tests or performance tests.

> > > 4. Adding Tests
> > >     - Through testing for backward compatibility is very very
> > > important so that the changes don’t break the existing changes.
> > >
> > > 5. Documenting the changes
> > >     - This might also go side by side if mentors need some weekly
> > > documentation of the tasks done.
> >
> > Tests and documentation should be part of the patches that change the
> > behavior. So it doesn't really make sense to list them separately in
> > the timeline.
>
> Okay. Maybe a blog post could be a part of this?

We ask GSoC contributors to post weekly on their blog, so except for a
final blog post, most of the blogging should be also part of the
regular work.

Thanks for updating your proposal.


  reply	other threads:[~2024-03-26 10:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-16 18:57 [GSoC][PROPOSAL v1] Refactor git-bisect(1) to make its state self-contained Aryan Gupta
2024-03-20 11:06 ` Christian Couder
2024-03-21 13:21   ` Aryan Gupta
2024-03-26 10:29     ` Christian Couder [this message]
2024-03-27  0:23       ` Aryan Gupta
2024-03-23 16:37   ` Aryan Gupta
2024-03-21 12:48 ` Patrick Steinhardt
2024-03-21 13:27   ` Aryan Gupta
2024-03-21 14:39     ` Patrick Steinhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP8UFD1U3j4tf3snk0qcDjHPRKxuaUVZOw7GuCEwAnXb-gRvHQ@mail.gmail.com \
    --to=christian.couder@gmail.com \
    --cc=garyan447@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=karthik.188@gmail.com \
    --cc=ps@pks.im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).