🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
6 messages
6 total messages Started by Shashank S Wed, 04 Nov 2026 10:26
[Outreachy] Project Proposal : Implement promisor remote fetch ordering
#2315
Author: Shashank S
Date: Wed, 04 Nov 2026 10:26
220 lines
20956 bytes
Hi,

This is my proposal for the project "Implement promisor remote fetch
ordering" for the December 2026 Outreachy internship.

I would appreciate any feedback from the community.

Personal Information
----------------------------

Full Name: Shashank S Mogaveera
Email Address : shashu8660@gmail.com
Github : https://github.com/shashu8660
Location : Kundapur, Karnataka, India (IST, UTC+5:30)

About me
-------------

I am Shashank, a software engineer with a strong passion for C
programming, system architecture, and network protocols. My journey
into open-source development began with a desire to understand how
massive, distributed systems operate under the hood.

During this Outreachy contribution phase, I initially focused on Git's
core libification and option-parsing APIs, which allowed me to get
comfortable modifying Git's C structs and internal memory management.
However, my true interest lies in network optimization. Diving into
Git's GIT_TRACE2 engine to map out how partial clones communicate with
promisor remotes convinced me that the "Implement promisor remote
fetch ordering" project is exactly where I want to focus my 13-week
internship.

Past experience with git
--------------------------------

I have been using Git extensively for version control in my personal
projects. This contribution period was my first time engaging directly
with a mailing list-based open-source community.

Learning to use git send-email and GitGitGadget to format patches,
manage versioned rerolls (v1, v2), and incorporate maintainer feedback
has been a massive learning curve, but a highly rewarding one. I
learned the importance of atomic commits, clean commit messages, and
the strict rules around not ignoring Git's exit codes in shell
scripts.


Contribution to the git community
--------------------------------------------

Microprojects:

1.  t0081: modernize the code testing whether a file exists
     Link: https://lore.kernel.org/git/pull.2254.git.1791962806807.gitgitgadget@gmail.com/
     This patch series was integrated into master via
githttps://github.com/git/git/commit/e1bb515788e48d500c9d4e36f13c66c4daddd3d4

2.  t2403: modernize test for directory existence
      Link: https://lore.kernel.org/git/pull.2259.git.1792125111461.gitgitgadget@gmail.com/
      This patch series was integrated into seen via
https://github.com/git/git/commit/c645a5db002ded161115dc8f6c15a40acfdde2b2

3. prune-packed: remove use_the_repository_variable
    Link :https://lore.kernel.org/git/pull.2266.git.1792341073005.gitgitgadget@gmail.com/
    This patch series was integrated into next via
https://github.com/git/git/commit/936609cfa0a57e1b047c345a91fec79ab255897c

4. test-chmtime: use parse_options() to parse command-line flags
    Link: https://lore.kernel.org/git/pull.2280.git.1793099688076.gitgitgadget@gmail.com/
    This patch series was integrated into seen via
https://github.com/git/git/commit/c6a318cc4b8c6f6ce1a403e497816cd195c57cf7

Project Overview: Promisor Remote Fetch Ordering
----------------------------------------------------------------------
When a Git repository is configured as a partial clone with multiple
promisor remotes, there is currently no defined mechanism to specify
the order in which these remotes should be queried for missing
objects.

Different remotes have vastly different performance characteristics
and bandwidth costs. Currently, Git relies on a hardcoded fallback
system rather than deterministic priority. This project aims to
implement a flexible fetch ordering mechanism by introducing a
client-side configuration list (promisor.fetchOrder) and a server-side
advertisement extension via Git Protocol v2, allowing servers to
broadcast their preferred fetch order.

Phase 0: Baseline & Trace2 Playground Verification
----------------------------------------------------------------------
Before designing the protocol enhancements, I established a verifiable
baseline by building a local partial clone playground with multiple
dummy promisor remotes (server-A and server-B).

To prove the telemetry, I forced a lazy fetch by requesting a missing
object (file2.txt) and captured the transaction using
GIT_TRACE2_EVENT.

- Verification: I successfully extracted the
{"key":"fetch_count","value":"1"} data event and the specific
child_start subprocess (["git","fetch","origin"...]) proving which
remote Git communicated with first.

The Current Baseline (Ordering Rules): Git currently lacks a
deterministic, user-configurable fetch order for multiple promisor
remotes. Based on my trace testing and codebase review, the baseline
behavior is:

- By default, Git iterates through configured remotes in the order
they are stored/parsed when attempting to fetch missing objects.

- The remote configured via core.partialClone (usually origin) is
treated strictly as a fallback and is checked last.

- If a remote fails, Git moves to the next available promisor remote
until the missing object is found or all remotes are exhausted.

Internship Plan and 13-Week Timeline
---------------------------------------------------

Pre-Internship (Now – Dec 6)
-----------------------------------------
Finish resolving feedback on my test-chmtime.c (v2) and prune-packed.c
patches.Study the promisor-remote.c sorting algorithms and Git
Protocol v2 documentation.

Weeks 1–2 (Dec 7 – Dec 20): Phase 1 - Visibility and Baseline
-------------------------------------------------------------------------------------
Goal: Document and lock in Git's current behavior to act as a safety net.

Tasks: Submit a docs-only upstream patch defining the current fallback
rules (accepted before configured, partialClone last, fallback on
failure). Develop automated tests utilizing GIT_TRACE2 to definitively
lock in and prove the current sequential fetch order.

Weeks 3–5 (Dec 21 – Jan 10): Phase 2 - Client-Side Ordering
------------------------------------------------------------------------------------
Goal: Implement local configuration for promisor remote priorities.

Tasks: Introduce the promisor.fetchOrder configuration list. A list is
preferred over per-remote integers as it composes cleanly across
config files. Refactor internal sorting logic in promisor-remote.c to
reorder remotes based on this list before initiating lazy fetches.
Implement edge-case handling for unlisted remotes and preserve the
partialClone-last fallback rule.

Weeks 6–9 (Jan 11 – Feb 7): Phase 3 - Server-Advertised Order
--------------------------------------------------------------------------------------
Goal: Extend Protocol v2 to allow servers to broadcast their preferred priority.

Tasks: Draft an RFC proposing the protocol v2 explicit priority=<n>
fields. Implement server-side advertisement gated by a new
promisor.sendFields configuration. Implement the client-side parser,
strictly adhering to the "ignore unknown fields" rule to maintain
backward compatibility.

Weeks 10–12 (Feb 8 – Feb 28): Phase 4 - Upstreaming & Precedence
-----------------------------------------------------------------------------------------------
Goal: Secure mailing list approval and resolve precedence rules.

Tasks: Settle precedence conflicts (Recommendation: local client
config maintains absolute authority, while the server's advertised
order sorts unranked remotes). Split Phase 2 and Phase 3 into a clean,
reviewable patch series. Route through at least two rounds of mailing
list review.

Week 13 (Mar 1 – Mar 8): Polish & Stretch Goals
-------------------------------------------------------------------
Goal: Finalize documentation and explore dynamic caching.

Tasks: Write final release notes and user-facing documentation.
Stretch Goal: Implement runtime memory of failed remotes within a
single process to skip them on subsequent lazy fetches to reduce
latency. Submit final Outreachy report.

Availability
------------------
I can commit 40 hours a week to the project during the internship. I
am based in India (IST, UTC+5:30) and can adjust my hours for
synchronous calls, pair programming, and mailing list reviews to
overlap with my mentors' timezones.

Blogging
-------------
I will document my technical journey, posting weekly updates on the
C-level challenges I face, how I navigate network tracing, and the
feedback I receive from the Git community. I will share each post on
the mailing list.

After the Internship
---------------------------
After the internship, I intend to remain an active contributor to the
Git core project. Having touched the libification, option parsing, and
network protocol subsystems during my application, I want to continue
bridging these areas—specifically helping remove the remaining
USE_THE_REPOSITORY_VARIABLE macros from network-facing C files like
promisor-remote.c.

Appreciation
-------------------
I want to express my gratitude to Usman Akinyemi, Junio C Hamano,
Kaartic Sivaraam, Patrick Steinhardt and Cynthia Uche. Your patience
in reviewing my early patches and helping me understand the git
send-email workflow has been incredible. Thank you for making this
community so welcoming.

Thank you .
Re: [Outreachy] Project Proposal : Implement promisor remote fetch ordering
#2316
Author: Shashank S
Date: Wed, 04 Nov 2026 10:46
22 lines
12438 bytes
On Wed, 4 Nov 2026 at 15:56, Shashank S <shashu8660@gmail.com> wrote:

I am sending a quick follow-up to correct a typo in the CC line for
Kaartic, and to fix the links to my microprojects from my proposal
(the URLs were accidentally joined with the text in my previous
email).

> Microprojects:
>
> 1.  t0081: modernize the code testing whether a file exists
>      Link: https://lore.kernel.org/git/pull.2254.git.1791962806807.gitgitgadget@gmail.com/
>      This patch series was integrated into master via
> githttps://github.com/git/git/commit/e1bb515788e48d500c9d4e36f13c66c4daddd3d4

https://github.com/git/git/commit/e1bb515788e48d500c9d4e36f13c66c4daddd3d4

>
> 2.  t2403: modernize test for directory existence
>       Link: https://lore.kernel.org/git/pull.2259.git.1792125111461.gitgitgadget@gmail.com/
>       This patch series was integrated into seen via
> https://github.com/git/git/commit/c645a5db002ded161115dc8f6c15a40acfdde2b2
[Outreachy] Project Proposal [v2] : Implement promisor remote fetch ordering
#2319
Author: Shashank S
Date: Wed, 04 Nov 2026 12:27
207 lines
21580 bytes
Hello mentors and Git community,

This is version 2 of my 13-week project proposal for the "Implement
promisor remote fetch ordering" project for the December 2026
Outreachy internship.

Changes since v1:
- Fixed a typo in Kaartic Sivaraam's email address in the CC line.
- Fixed broken/merged URLs in the "Contributions to the Git Community" section.
- Included the full text of the proposal inline below for easier
reading on the mailing list.

I would appreciate any feedback from the community.

Personal Information
====================
Full Name: Shashank S Mogaveera
Email: shashu8660@gmail.com
GitHub: https://github.com/shashu8660
Location: Kundapur, Karnataka, India (IST, UTC+5:30)

About Me
========
I am Shashank, a software developer with a strong passion for C
programming, system architecture, and network protocols. My journey
into open-source development began with a desire to understand how
massive, distributed systems operate under the hood.

During this Outreachy contribution phase, I initially focused on Git's
core libification and option-parsing APIs. However, my true interest
lies in network optimization. Diving into Git's GIT_TRACE2 engine to
map out how partial clones communicate with promisor remotes convinced
me that the "Implement promisor remote fetch ordering" project is
exactly where I want to focus my 13-week internship.

Past Experience with Git
========================
I have been using Git extensively for version control in my personal
projects. This contribution period was my first time engaging directly
with a mailing list-based open-source community.

Learning to use git send-email and GitGitGadget to format patches,
manage versioned rerolls, and incorporate maintainer feedback has been
a massive learning curve, but a highly rewarding one. I learned the
importance of atomic commits, clean commit messages, and the strict
rules around not ignoring Git's exit codes in shell scripts.

Contributions to the Git Community
==================================

1. t0081: modernize the code testing whether a file exists
   Link: https://lore.kernel.org/git/pull.2254.git.1791962806807.gitgitgadget@gmail.com/
   Status: Merged to master.
   Commit: https://github.com/git/git/commit/e1bb515788e48d500c9d4e36f13c66c4daddd3d4

2. t2403: modernize test for directory existence
   Link: https://lore.kernel.org/git/pull.2259.git.1792125111461.gitgitgadget@gmail.com/
   Status: Merged to seen.
   Commit: https://github.com/git/git/commit/c645a5db002ded161115dc8f6c15a40acfdde2b2

3.  prune-packed: remove USE_THE_REPOSITORY_VARIABLE
   Status: Reviewed and marked ready for integration by Patrick Steinhardt.
   Description: I refactored the C file to pass a struct repository *r
pointer through a void *cb_data callback API, successfully removing
the reliance on Git's global state variables.

4.  test-chmtime: use parse_options() to parse command-line flags
   Status: v2 submitted.
   Description: I ported ad-hoc command-line argument scanning to
Git's official C-level parse_options() API, handling edge cases for
relative time offsets, and added t0082-test-chmtime.sh.

Project Overview: Promisor Remote Fetch Ordering
================================================
When a Git repository is configured as a partial clone with multiple
promisor remotes, there is currently no defined mechanism to specify
the order in which these remotes should be queried for missing
objects.

Different remotes have vastly different performance characteristics
and bandwidth costs. Currently, Git relies on a hardcoded fallback
system rather than deterministic priority. This project aims to
implement a flexible fetch ordering mechanism by introducing a
client-side configuration list (promisor.fetchOrder) and a server-side
advertisement extension via Git Protocol v2, allowing servers to
broadcast their preferred fetch order.

Phase 0: Baseline & Trace2 Playground Verification
==================================================
Before designing the protocol enhancements, I established a verifiable
baseline by building a local partial clone playground with multiple
dummy promisor remotes (server-A and server-B).

To prove the telemetry, I forced a lazy fetch by requesting a missing
object and captured the transaction using GIT_TRACE2_EVENT.
* Verification: While the promisor.fetch_count=1 data event simply
confirmed a lazy fetch was triggered, extracting the sequential
child_start subprocess events (e.g., ["git","fetch","cache-a"...])
provided the definitive proof of Git's remote routing order.

The Current Baseline (Ordering Rules): Git currently lacks a
deterministic, user-configurable fetch priority system. Based on my
trace testing, t5710, and the logic in promisor-remote.c, the current
hardcoded fallback hierarchy is:
1. Git first tries "accepted" remotes (server-advertised remotes that
were provided to the client during a previous operation).
2. It then iterates through ordinary configured remotes in the order
they are stored/parsed.
3. The remote configured via extensions.partialClone (usually origin)
is treated strictly as a fallback and checked last.

If a remote fails, Git moves to the next available promisor remote in
this hierarchy until the missing object is found or all remotes are
exhausted.

Internship Plan and 13-Week Timeline
====================================
The internship runs from 7 December 2026 to 8 March 2027.

Weeks 1–2 (Dec 7 – Dec 20): Phase 1 - Visibility and Baseline
- Goal: Document and lock in Git's current behavior to act as a safety net.
- Tasks: Submit a docs-only upstream patch defining the current
fallback rules (accepted before configured, extensions.partialClone
last, fallback on failure). Develop automated tests utilizing
GIT_TRACE2 to definitively lock in and prove the current sequential
fetch order.

Weeks 3–5 (Dec 21 – Jan 10): Phase 2 - Client-Side Ordering
- Goal: Implement local configuration for promisor remote priorities.
- Tasks: Introduce the promisor.fetchOrder configuration list. A list
is preferred over per-remote integers as it composes cleanly across
config files. Refactor internal sorting logic in promisor-remote.c to
reorder remotes based on this list before initiating lazy fetches.
Implement edge-case handling for unlisted remotes and preserve the
extensions.partialClone-last fallback rule.

Weeks 6–9 (Jan 11 – Feb 7): Phase 3 - Server-Advertised Order
- Goal: Extend Protocol v2 to allow servers to broadcast their
preferred priority.
- Tasks: Draft an RFC proposing the protocol v2 explicit priority=<n>
fields. Implement server-side advertisement gated by a new
promisor.sendFields configuration. Implement the client-side parser,
strictly adhering to the "ignore unknown fields" rule to maintain
backward compatibility.

Weeks 10–12 (Feb 8 – Feb 28): Phase 4 - Upstreaming & Precedence
- Goal: Secure mailing list approval and resolve precedence rules.
- Tasks: Settle precedence conflicts (Recommendation: local client
config maintains absolute authority, while the server's advertised
order sorts unranked remotes). Split Phase 2 and Phase 3 into a clean,
reviewable patch series. Route through at least two rounds of mailing
list review.

Week 13 (Mar 1 – Mar 8): Polish & Stretch Goals
- Goal: Finalize documentation and explore dynamic caching.
- Tasks: Write final release notes and user-facing documentation.
Stretch Goal: Implement runtime memory of failed remotes within a
single process to skip them on subsequent lazy fetches to reduce
latency. Submit final Outreachy report.

Availability
============
I can commit 40 hours a week to the project during the internship. I
am based in India (IST, UTC+5:30) and can adjust my hours for
synchronous calls, pair programming, and mailing list reviews to
overlap with my mentors' timezones.

Blogging
========
I will document my technical journey , posting weekly updates on the
C-level challenges I face, how I navigate network tracing, and the
feedback I receive from the Git community. I will share each post on
the mailing list.

After the Internship
====================
After the internship, I intend to remain an active contributor to the
Git core project. Having touched the libification, option parsing, and
network protocol subsystems during my application, I want to continue
bridging these areas—specifically helping remove the remaining
USE_THE_REPOSITORY_VARIABLE macros from network-facing C files like
promisor-remote.c.

Appreciation
============
I want to express my gratitude to Christian Couder, Usman Akinyemi,
Siddharth Asthana, Kaartic Sivaraam, Patrick Steinhardt, and Junio C
Hamano. Your patience in reviewing my early patches and helping me
understand the git send-email workflow has been incredible. Thank you
for making this community so welcoming.

Thank you

Shashank S Mogaveera
Re: [Outreachy] Project Proposal [v2] : Implement promisor remote fetch ordering
#2389
Author: Usman Akinyemi
Date: Thu, 05 Nov 2026 00:03
9 lines
11882 bytes
> Thank you
>
> Shashank S Mogaveera

Thanks for your proposal, do not forget to submit your application
on the Outreachy website.

Thanks.
Re: [Outreachy] Project Proposal [v2] : Implement promisor remote fetch ordering
#2428
Author: Kaartic Sivaraam
Date: Thu, 05 Nov 2026 16:23
180 lines
18762 bytes
Hello Shashank,

Thank you for your interest in this project and for submitting a proposal!

On 11/4/26 17:57, Shashank S wrote:
> During this Outreachy contribution phase, I initially focused on Git's
> core libification and option-parsing APIs. However, my true interest
> lies in network optimization. Diving into Git's GIT_TRACE2 engine to
> map out how partial clones communicate with promisor remotes convinced
> me that the "Implement promisor remote fetch ordering" project is
> exactly where I want to focus my 13-week internship.
> 

That is interesting to know. Thanks!

> Past Experience with Git
> ========================
> I have been using Git extensively for version control in my personal
> projects. This contribution period was my first time engaging directly
> with a mailing list-based open-source community.
> 
> Learning to use git send-email and GitGitGadget to format patches,
> manage versioned rerolls, and incorporate maintainer feedback has been
> a massive learning curve, but a highly rewarding one. I learned the
> importance of atomic commits, clean commit messages, and the strict
> rules around not ignoring Git's exit codes in shell scripts.
> 

That's great!

> Contributions to the Git Community
> ==================================
> 
> 1. t0081: modernize the code testing whether a file exists
>     Link: https://lore.kernel.org/git/pull.2254.git.1791962806807.gitgitgadget@gmail.com/
>     Status: Merged to master.
>     Commit: https://github.com/git/git/commit/e1bb515788e48d500c9d4e36f13c66c4daddd3d4
> 
> 2. t2403: modernize test for directory existence
>     Link: https://lore.kernel.org/git/pull.2259.git.1792125111461.gitgitgadget@gmail.com/
>     Status: Merged to seen.

Queued in seen?

>     Commit: https://github.com/git/git/commit/c645a5db002ded161115dc8f6c15a40acfdde2b2
> 
> 3.  prune-packed: remove USE_THE_REPOSITORY_VARIABLE
>     Status: Reviewed and marked ready for integration by Patrick Steinhardt.

I think the appropriate status per What's cooking is "Will merge to master".

I'm not sure why you removed the link to the mailing list patch. You 
could keep it.

>     Description: I refactored the C file to pass a struct repository *r
> pointer through a void *cb_data callback API, successfully removing
> the reliance on Git's global state variables.
> 
> 4.  test-chmtime: use parse_options() to parse command-line flags
>     Status: v2 submitted.
>     Description: I ported ad-hoc command-line argument scanning to
> Git's official C-level parse_options() API, handling edge cases for
> relative time offsets, and added t0082-test-chmtime.sh.
> 

Ditto.

> Internship Plan and 13-Week Timeline
> ====================================
> The internship runs from 7 December 2026 to 8 March 2027.
> 
> Weeks 1–2 (Dec 7 – Dec 20): Phase 1 - Visibility and Baseline

I'm a little unsure if this needs 2 weeks...

> - Goal: Document and lock in Git's current behavior to act as a safety net.
> - Tasks: Submit a docs-only upstream patch defining the current
> fallback rules (accepted before configured, extensions.partialClone
> last, fallback on failure). Develop automated tests utilizing
> GIT_TRACE2 to definitively lock in and prove the current sequential
> fetch order.
> 
> Weeks 3–5 (Dec 21 – Jan 10): Phase 2 - Client-Side Ordering
> - Goal: Implement local configuration for promisor remote priorities.
> - Tasks: Introduce the promisor.fetchOrder configuration list. A list
> is preferred over per-remote integers as it composes cleanly across
> config files.

I think choosing between list vs. per-remote is not in scope of this 
application. It is better done in a separate RFC in the mailing either 
as a small patch or as a discussion that covers pros and cons of either.

Also, I think you do intend to send this change to the list during this 
week but it may be worth mentioning that explicitly for clarity.
> Refactor internal sorting logic in promisor-remote.c to
> reorder remotes based on this list before initiating lazy fetches.
> Implement edge-case handling for unlisted remotes and preserve the
> extensions.partialClone-last fallback rule.
> 
> Weeks 6–9 (Jan 11 – Feb 7): Phase 3 - Server-Advertised Order
> - Goal: Extend Protocol v2 to allow servers to broadcast their
> preferred priority.
> - Tasks: Draft an RFC proposing the protocol v2 explicit priority=<n>
> fields. Implement server-side advertisement gated by a new
> promisor.sendFields configuration.

It is a bit interesting that just drafting the RFC is covered in this 
phase and not discussing this on the list (like how it is mentioned 
below). May be you intend to but haven't communicated it clearly?

Also, isn't `promisor.sendFields` already exist? Do you mean to say a 
new field that the server sends when the promisor-remote is advertised?

> Implement the client-side parser,
> strictly adhering to the "ignore unknown fields" rule to maintain
> backward compatibility.
> 
> Weeks 10–12 (Feb 8 – Feb 28): Phase 4 - Upstreaming & Precedence
> - Goal: Secure mailing list approval and resolve precedence rules.
> - Tasks: Settle precedence conflicts (Recommendation: local client
> config maintains absolute authority, while the server's advertised
> order sorts unranked remotes). Split Phase 2 and Phase 3 into a clean,
> reviewable patch series. Route through at least two rounds of mailing
> list review.
> 
> Week 13 (Mar 1 – Mar 8): Polish & Stretch Goals
> - Goal: Finalize documentation and explore dynamic caching.
> - Tasks: Write final release notes and user-facing documentation.
> Stretch Goal: Implement runtime memory of failed remotes within a
> single process to skip them on subsequent lazy fetches to reduce
> latency. Submit final Outreachy report.
> 

To be honest, this plans seems mostly reiterating the "tasks" section of 
the project. I would love to see you dive a bit more deeply into the 
nuances with your own judgement. While discussion is necessary to 
achieve consensus, knowing your thought process helps us understand how 
much you've understood about the project.

Also, it may be worth mentioning what kinds of potential difficulties 
you expect while implementing the plan? What open questions do you 
expect to settle in the RFC discussions? etc

> Availability
> ============
> I can commit 40 hours a week to the project during the internship. I
> am based in India (IST, UTC+5:30) and can adjust my hours for
> synchronous calls, pair programming, and mailing list reviews to
> overlap with my mentors' timezones.
>

That's good. If you have any other commitments like exams / planned 
vacation etc., kindly share them upfront.

> Blogging
> ========
> I will document my technical journey , posting weekly updates on the
> C-level challenges I face, how I navigate network tracing, and the
> feedback I receive from the Git community. I will share each post on
> the mailing list.
>

Cool!


> After the Internship
> ====================
> After the internship, I intend to remain an active contributor to the
> Git core project. Having touched the libification, option parsing, and
> network protocol subsystems during my application, I want to continue
> bridging these areas—specifically helping remove the remaining
> USE_THE_REPOSITORY_VARIABLE macros from network-facing C files like
> promisor-remote.c.
> 

Great!

-- 
Sivaraam
Re: [Outreachy] Project Proposal [v2] : Implement promisor remote fetch ordering
#2455
Author: Shashank S
Date: Thu, 05 Nov 2026 19:42
212 lines
21588 bytes
On Thu, 5 Nov 2026 at 21:53, Kaartic Sivaraam
<kaartic.sivaraam@gmail.com> wrote:

Hi Kaartic,

Thank you for the detailed review. I appreciate the questions; they
made me realize that I had repeated the task list too closely instead
of showing my own reasoning and technical judgment.



> > 3.  prune-packed: remove USE_THE_REPOSITORY_VARIABLE
> >     Status: Reviewed and marked ready for integration by Patrick Steinhardt.
>
> I think the appropriate status per What's cooking is "Will merge to master".
>
> I'm not sure why you removed the link to the mailing list patch. You
> could keep it.
>

> > 4.  test-chmtime: use parse_options() to parse command-line flags
> >     Status: v2 submitted.
>
> Ditto.
>
Thank you. I will use “Will merge to master” for the prune-packed
series and restore the mailing-list link. I will also restore the
mailing-list link for my test-chmtime series and state its current
review status precisely

> > Internship Plan and 13-Week Timeline
> > ====================================
> > The internship runs from 7 December 2026 to 8 March 2027.
> >
> > Weeks 1–2 (Dec 7 – Dec 20): Phase 1 - Visibility and Baseline
>
> I'm a little unsure if this needs 2 weeks...
>
I initially allocated two weeks because I expected that making the
current behavior observable in tests—potentially through Trace2 or a
test helper—would require substantial setup. I agree that this should
not be treated as two weeks of isolated work. I will aim to establish
the baseline and send any small documentation or test patch early in
the first week, while reserving the remaining time for review, active
upstream changes, and the initial design/RFC discussion. The tests are
important as a safety net for subsequent refactoring, but their scope
should remain focused on the existing behavior.

> > - Goal: Document and lock in Git's current behavior to act as a safety net.
> > - Tasks: Submit a docs-only upstream patch defining the current
> > fallback rules (accepted before configured, extensions.partialClone
> > last, fallback on failure). Develop automated tests utilizing
> > GIT_TRACE2 to definitively lock in and prove the current sequential
> > fetch order.
> >
> > Weeks 3–5 (Dec 21 – Jan 10): Phase 2 - Client-Side Ordering
> > - Goal: Implement local configuration for promisor remote priorities.
> > - Tasks: Introduce the promisor.fetchOrder configuration list. A list
> > is preferred over per-remote integers as it composes cleanly across
> > config files.
>
> I think choosing between list vs. per-remote is not in scope of this
> application. It is better done in a separate RFC in the mailing either
> as a small patch or as a discussion that covers pros and cons of either.
>
> Also, I think you do intend to send this change to the list during this
> week but it may be worth mentioning that explicitly for clarity.

I completely agree. My proposal wrongly treated promisor.fetchOrder as
a chosen design. I will not pre-select a list over numeric per-remote
priorities. Instead my first step will be to begin an RFC on the
mailing list to compare the two approaches. the discussion will cover
configuration layering, duplicate or unknown remote names, unlisted
remotes, interactions with "accepted" remotes, and whether explicit
local configuration may override the current extensions.partialClone
fallback rule.

after reaching an agreement, I will send an initial implementation
series early in the client-side phase rather than waiting until the
end.



> > - Tasks: Draft an RFC proposing the protocol v2 explicit priority=<n>
> > fields. Implement server-side advertisement gated by a new
> > promisor.sendFields configuration.
>
> It is a bit interesting that just drafting the RFC is covered in this
> phase and not discussing this on the list (like how it is mentioned
> below). May be you intend to but haven't communicated it clearly?
>
> Also, isn't `promisor.sendFields` already exist? Do you mean to say a
> new field that the server sends when the promisor-remote is advertised?
>

Yes, I intended to discuss the RFC on the list, but I did not
communicate that clearly. I will correct the timeline so that the
protocol RFC and mailing-list discussions happen before and during
implementation.

You are also correct that promisor.sendFields already exists. I had
misunderstood the phrase “Server advertises it, gated by
promisor.sendFields”: “it” refers to the proposed ordering
information, not to promisor.sendFields itself. The work would not
introduce that configuration variable. Subject to agreement on the
RFC, it would use the existing promisor-remote mechanism to support an
ordering-related field that a server can advertise, together with the
required protocol documentation, validation, tests, and
backward-compatible handling of unknown fields.

> > Implement the client-side parser,
> > strictly adhering to the "ignore unknown fields" rule to maintain
> > backward compatibility.
> >
> > Weeks 10–12 (Feb 8 – Feb 28): Phase 4 - Upstreaming & Precedence
> > - Goal: Secure mailing list approval and resolve precedence rules.
> > - Tasks: Settle precedence conflicts (Recommendation: local client
> > config maintains absolute authority, while the server's advertised
> > order sorts unranked remotes). Split Phase 2 and Phase 3 into a clean,
> > reviewable patch series. Route through at least two rounds of mailing
> > list review.
> >
> > Week 13 (Mar 1 – Mar 8): Polish & Stretch Goals
> > - Goal: Finalize documentation and explore dynamic caching.
> > - Tasks: Write final release notes and user-facing documentation.
> > Stretch Goal: Implement runtime memory of failed remotes within a
> > single process to skip them on subsequent lazy fetches to reduce
> > latency. Submit final Outreachy report.
> >
>
> To be honest, this plans seems mostly reiterating the "tasks" section of
> the project. I would love to see you dive a bit more deeply into the
> nuances with your own judgement. While discussion is necessary to
> achieve consensus, knowing your thought process helps us understand how
> much you've understood about the project.
>
> Also, it may be worth mentioning what kinds of potential difficulties
> you expect while implementing the plan? What open questions do you
> expect to settle in the RFC discussions? etc
>
This is great feedback. In my revision, I will focus on the questions
that drive the design rather than repeating the project phases.

My current understanding is that Git has deterministic baseline
behavior but no separately user-configurable priority mechanism:
accepted remotes are tried before other configured remotes, configured
remotes follow configuration order, and the extensions.partialClone
remote is moved to the end.

The important open questions I expect to settle on the list are:

- Whether a list or numeric priorities compose more predictably across
configuration files.
-The behavior for duplicated, unknown, and unlisted remote names.
- Whether accepted remotes retain priority over a client’s locally
specified order.
- Whether extensions.partialClone must always remain last.
- whether server preference can order only remotes without a local
ranking, or if it can override local policy.
- whether advertised ordering data should be stored after the operation.

The main implementation risk is preserving the current two-pass
behavior for accepted and unaccepted remotes while introducing an
ordering mechanism. The protocol risk is defining a field that older
clients safely ignore and that malformed values cannot make fatal. I
will include these judgments and risks in the revised proposal.

> > Availability
> > ============
> > I can commit 40 hours a week to the project during the internship. I
> > am based in India (IST, UTC+5:30) and can adjust my hours for
> > synchronous calls, pair programming, and mailing list reviews to
> > overlap with my mentors' timezones.
> >
>
> That's good. If you have any other commitments like exams / planned
> vacation etc., kindly share them upfront.
>

I will add my confirmed availability and disclose any known exams,
travel, or other commitments

Since sending the previous proposal, I have also completed further
Phase 0 work. I built Git from source and ran the relevant test
scripts: t5710-promisor-remote-capability.sh passed all 33 tests, and
t0410-partial-clone.sh passed its 39 reported tests. I then built a
local blob:none playground with origin, cache-a, and cache-b promisor
remotes. Trace2 showed Git fetching a missing blob from cache-a before
origin when extensions.partialClone=origin was set. In a separate run,
I intentionally made cache-a unavailable and observed Git cleanly fall
back to cache-b. I will state carefully that my manual test verifies
configured-remote ordering and fallback; the accepted-remotes rule is
being studied separately through t5710, protocol documentation, and
promisor-remote.c.

Thank you again for your guidance. I will post a revised proposal
shortly that reflects these corrections and explains the design
questions, risks, and mailing-list discussion plan more clearly.

Shashank S Mogaveera
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads