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

Re: [PATCH v3] Documentation: add platform support policy

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 18, 2024, 22:46 UTC
Message-ID
<xmqqh6cmmi8n.fsf@gitster.g>
In-Reply-To
<20240718173843.2411415-1-emilyshaffer@google.com>
Emily Shaffer <emilyshaffer@google.com> writes:
> Supporting many platforms is only easy when we have the right tools to
> ensure that support.
"easy" -> "possible".
Show 12 quoted lines
> +Compatible by next release
> +--------------------------
> +
> +To increase probability that compatibility issues introduced in a release
> +will be fixed in a later release:
> +
> +* You should send a bug report as soon as you notice the breakage on your
> +  platform. The sooner you notice, the better; watching `seen` means you can
> +  notice problems before they are considered "done with review"; whereas
> +  watching `master` means the stable branch could break for your platform, but
> +  you have a decent chance of avoiding a tagged release breaking you. See "The
> +  Policy" in the link:../howto/maintain-git.txt[maintainer's guide] for an
Running
    $ make -C Documentation howto/maintain-git.html
    $ lynx Documentation/howto/maintain-git.html
tells me that the title of the document is "How to maintain Git".
> +  overview of which branches are used in git.git, and how.
"git.git" -> "the Git project"
> +Compatible on `master` and releases
> +-----------------------------------------

Underline that signals what level the header is is drawn to the same column as the header title itself, or you'd confuse the formatter.

> +To make sure all stable builds and regular releases work for your platform the
> +first time, you can make sure `master` doesn't break for your platform:
"can" -> "want to"?  
But "to make sure X, you can make sure Y" feels a bit awkward.
    To make sure ... work for your platform, help us avoid breaking the
    tip of `master` by merging topics that break your platform.
> +* You should run nightly tests against the `next` branch and publish breakage
> +  reports to the mailing list immediately when they happen.

Can't it be daily instead of nightly ;-), or is it better than nothing if you can afford to run only once every other day?

A topic (unless it is during the shuffle time around -rc0) usually spends no less than 7 calendar days in 'next', so while I would appreciate if somebody runs tests twice a day, in practice you should be able to catch a new breakage in 'next' if you run a full and thorough test twice a week.

> +* You should either:
> +
> +** Provide VM access on-demand to a trusted developer working to fix the issue,
> +   so they can test their fix, OR

"VM access on-demand" -> "on-demand access to your platform" (iow, physical iron is also fine for our purpose).

Show 19 quoted lines
> +Compatible on `next`
> +--------------------
> +
> +To avoid reactive debugging and fixing when changes hit a release or stable, you
> +can aim to ensure `next` works for your platform. (See "The Policy" in the
> +link:../howto/maintain-git.txt[maintainer's guide] for an overview of how `next`
> +is used in the Git project.) To do that:
> +
> +* You should add a runner for your platform to the GitHub Actions or GitLab CI
> +  suite.  This suite is run when any Git developer proposes a new patch, and
> +  having a runner for your platform/configuration means every developer will
> +  know if they break you, immediately.
> +
> +** If adding it to an existing CI suite is infeasible (due to architecture
> +   constraints or for performance reasons), any other method which runs as
> +   automatically and quickly as possible works, too. For example, a service
> +   which snoops on the mailing list and automatically runs tests on new [PATCH]
> +   emails, replying to the author with the results, would also be within the
> +   spirit of this requirement.

It would be very nice if they did this, indeed. Explaining that something that mechanically looks vastly different is within the spirit is a very good move.

Show 8 quoted lines
> +Minimum Requirements
> +--------------------
> +
> +Even if platform maintainers are willing to add tests or CI runners, we will
> +not consider helping to support platforms that do not meet these minimum
> +requirements:
> +
> +* Has C99 or C11
OK.
> +* Has dependencies which were released in the past 10 years

This is hard to understand and I wonder if we can clarify. I get what you want to say: suppose we rely on library X that is getting regular feature and security updates in reasonable cadence, say every 6 months there is an upstream release of library X, but a niche platform has ported the library only once long time ago, and hasn't updated it ever since. Now the Git project may consider helping a port to such a platform if the initial port of library X was 8 years ago, but will not if it was 12 years ago.

But if Git depends on an ultra stable library whose last public release was 12 years ago, disqualify everybody is not what this requirement wants to do.

I attempted to formulate my version along ...
    Keep up with the versions of dependencies (libraries, etc.) and
    not to lag behind compared to typical mainstream platforms by
    more than X years.

... the above line, but to me it is no better than the original, so I failed miserably. But the idea I am bringing to the table here is that time of release is not absolute. If typical mainstream platforms consider a release of a library made 8 years ago from the upstream performant, functional, and secure enough and fit for use, we do not consider that they are approaching the limit. But if another platform uses the same library from 12 years ago, i.e. lagging behind others by 4 years is a problem at the same graveness using another library that was released 6 years ago, when other platforms are using a much younger vintage of the same library released at 2 years ago.

Having said all that, everything I removed from my quote I found agreeable. Very well written.

Thanks.
Previous: Junio C HamanoNext: rsbecker@nexbridge.com
Message 36 of 55 in “Documentation: add platform support policy”
  1. Documentation: add platform support policyEmily Shaffer, Jul 9, 2024
  2. brian m. carlsonJul 9, 2024
  3. Emily ShafferJul 11, 2024
  4. Kyle LippincottJul 11, 2024
  5. rsbecker@nexbridge.comJul 11, 2024
  6. Emily ShafferJul 11, 2024
  7. brian m. carlsonJul 11, 2024
  8. Emily ShafferJul 11, 2024
  9. brian m. carlsonJul 12, 2024
  10. rsbecker@nexbridge.comJul 12, 2024
  11. Emily ShafferJul 15, 2024
  12. rsbecker@nexbridge.comJul 15, 2024
  13. Emily ShafferJul 15, 2024
  14. Junio C HamanoJul 10, 2024
  15. Emily ShafferJul 10, 2024
  16. Junio C HamanoJul 10, 2024
  17. Emily ShafferJul 11, 2024
  18. rsbecker@nexbridge.comJul 10, 2024
  19. Emily ShafferJul 11, 2024
  20. rsbecker@nexbridge.comJul 11, 2024
  21. Kyle LippincottJul 10, 2024
  22. Emily ShafferJul 11, 2024
  23. Junio C HamanoJul 11, 2024
  24. Junio C HamanoJul 11, 2024
  25. Kyle LippincottJul 11, 2024
  26. Documentation: add platform support policyEmily Shaffer, Jul 11, 2024
  27. Junio C HamanoJul 12, 2024
  28. Emily ShafferJul 15, 2024
  29. Junio C HamanoJul 15, 2024
  30. Emily ShafferJul 16, 2024
  31. rsbecker@nexbridge.comJul 16, 2024
  32. Junio C HamanoJul 17, 2024
  33. Documentation: add platform support policyEmily Shaffer, Jul 18, 2024
  34. Emily ShafferJul 18, 2024
  35. Junio C HamanoJul 18, 2024
  36. Junio C HamanoJul 18, 2024
  37. rsbecker@nexbridge.comJul 18, 2024
  38. Emily ShafferJul 25, 2024
  39. Emily ShafferJul 25, 2024
  40. Junio C HamanoJul 25, 2024
  41. rsbecker@nexbridge.comJul 25, 2024
  42. Patrick SteinhardtJul 23, 2024
  43. Emily ShafferJul 25, 2024
  44. Josh SteadmonJul 23, 2024
  45. Emily ShafferJul 25, 2024
  46. Documentation: add platform support policyEmily Shaffer, Jul 30, 2024
  47. Junio C HamanoJul 30, 2024
  48. Emily ShafferJul 30, 2024
  49. Junio C HamanoJul 30, 2024
  50. rsbecker@nexbridge.comJul 30, 2024
  51. Emily ShafferJul 31, 2024
  52. rsbecker@nexbridge.comJul 31, 2024
  53. Documentation: add platform support policyEmily Shaffer, Aug 2, 2024
  54. Junio C HamanoAug 2, 2024
  55. rsbecker@nexbridge.comAug 2, 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.