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

Re: [GSOC] Contributing to git.

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 30, 2012, 11:05 UTC
Message-ID
<201203301305.23567.jnareb@gmail.com>
In-Reply-To
<20120330052631.GB11648@sigill.intra.peff.net>
On Fri, 30 Mar 2012, Jeff King wrote:
Show 6 quoted lines
> On Fri, Mar 30, 2012 at 08:19:29AM +0530, jaseem abid wrote:
> 
> > 	1. Where can I find general instructions on "Contributing to git? "
> > more specifically, gitweb?
> 
> Documentation/SubmittingPatches in the git.git repository.

For GSoC we prefer if you had a public git repository with your stuff (GitHub, repo.or.cz or wherever), and that patches were Cc-ed to mentor.

> > 	2. Where can I find coding standards for git? I am looking for the
> > git version of this document.
> 
> Documentation/CodingGuidelines

There are no special rules for JavaScript (and neither for that matter for Perl), but:

  "As for more concrete guidelines, just imitate the existing code
   (this is a good guideline, no matter which project you are
   contributing to). It is always preferable to match the _local_
   convention. New code added to git suite is expected to match
   the overall style of existing code. Modifications to existing
   code is expected to match the style the surrounding code already
   uses (even if it doesn't match the overall style of existing code)."
For JavaScript this includes using subset of JSDoc in comments.
> > 	3. Is JavaScript code unit tested? I cant find much docs regarding
> > this anywhere.

No, there are no JavaScript tests at all, neither unit tests nor procedural (integration) tests.

Show 7 quoted lines
> Jakub can answer this much better than I can, but I suspect the answer
> is "no". We hardly have any javascript at all, and I doubt the gitweb
> tests cover the javascript bits.
> 
> If there is going to be a javascript-heavy SoC project, I think part
> of that should probably be adding some automated testing
> infrastructure. 

The problem with automated testing of JavaScript is integrating it with our testsuite, which is run from command line and outputs TAP (Test Anything Protocol), so it can e.g. be run by 'prove'.

But even if the JavaScript tests would have to be run in browser (like most of all of them seems to), having any automated test for gitweb's JavaScript code would be a very good idea.

P.S. I wonder how JavaScript-scriptable Veracity DVCS solved that...
-- 
Jakub Narebski
Poland
Previous: jaseem abidNext: chaitanyaa nalla
Message 4 of 15 in “[GSOC] Contributing to git.”
  1. jaseem abidMar 30, 2012
  2. Jeff KingMar 30, 2012
  3. jaseem abidMar 30, 2012
  4. Jakub NarebskiMar 30, 2012
  5. chaitanyaa nallaMar 30, 2012
  6. Jakub NarebskiMar 30, 2012
  7. chaitanyaa nallaMar 30, 2012
  8. jaseem abidMar 30, 2012
  9. jaseem abidMar 30, 2012
  10. Jakub NarebskiMar 30, 2012
  11. Nazri RamliyApr 2, 2012
  12. jaseem abidApr 2, 2012
  13. Nazri RamliyApr 3, 2012
  14. Jakub NarebskiApr 3, 2012
  15. Andrew SayersMar 30, 2012

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.