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

Organizing (large) test data in git

From
Bill Lear <rael@zopyra.com>
Date
Feb 27, 2007, 17:58 UTC
Message-ID
<17892.28995.328911.23188@lisa.zopyra.com>

In my company we generate test data that we want coupled with test code, and despite the size, we have historically kept our test data with our code base.

This is becoming a problem.

95% of the size of our 500 meg "code" base is actually test data, and the size of the test data is likely to increase, perhaps radically. We are contemplating files on the order of 500 megabytes a piece.

Many of our developers have multiple copies of our code base checked out, duplicating the test data, so we would like to come up with a solution to this that minimizes the amount of data we have to check out.

Personally, I dislike having separate test data and code repos. Keeping the two synchronized seems like a real pain. I like to be able to do things like:

cd component_x [muck muck muck on part "y"] mkdir testsuite/component_x.part_y cd testsuite/component_x.part_y [muck muck muck] git commit -a -m "Finished mucking with part y of component x"

Where the directory structure is, essentially:
      component_x/
          testsuite/component_x.part_y

If we separate out the test data, for the above I would have to do two commits in two repos, switching directories, etc. And then, there is the issue of ensuring that checkouts of code also get the associated data needed. I can see this being a potential nightmare.

Have others on the list grappled with this and come up with good solutions with git?

I know there was some talk of sub-modules, but not sure if that is working or even a viable option here.

Bill
Next: Johannes Schindelin
Message 1 of 9 in “Organizing (large) test data in git”
  1. Bill LearFeb 27, 2007
  2. Johannes SchindelinFeb 27, 2007
  3. Bill LearFeb 27, 2007
  4. Johannes SchindelinFeb 27, 2007
  5. Bill LearFeb 27, 2007
  6. Johannes SchindelinFeb 27, 2007
  7. Bill LearFeb 27, 2007
  8. Johannes SchindelinFeb 27, 2007
  9. Junio C HamanoFeb 27, 2007

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.