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

Re: [PATCHv2] branch -d: test if we can delete broken refs

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 26, 2014, 18:43 UTC
Message-ID
<xmqqbnntreer.fsf@gitster.dls.corp.google.com>
In-Reply-To
<547593FF.6040507@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 5 quoted lines
> ... On the other hand, this is kind of an "aspirational test"; I don't
> know that the tested functionality has ever worked or that anybody has
> ever claimed that it works. So my feeling is that the addition of the
> test would feel more natural in the patch series that implements the new
> feature. But I don't feel strongly about it.
I share your feeling.  

In the "aspiration followed by realization" pattern, the realization commit shows a change in t/ hierarchy that turns test_expect_failure into test_expect_success and it is likely that what is being tested will fall outside the context. Unless the test title is phrased very well, it would not be obvious from the patch text to the t/ hierarchy alone what behaviour is being corrected when looking at the realization commit.

If aspiration and realization are in a same series, that would not be a problem, but it is if the commits that add "aspirational test" and "realization" are too far apart.

If it is pretty clear to everybody that another topic to realize the aspiration will be coming in a not so distant future, I think it is fine, though.

Previous: Michael HaggertyNext: Torsten Bögershausen
Message 6 of 8 in “t1402: check to delete broken refs”
  1. t1402: check to delete broken refsStefan Beller, Nov 25, 2014
  2. Jonathan NiederNov 26, 2014
  3. Stefan BellerNov 26, 2014
  4. [PATCHv2] branch -d: test if we can delete broken refsStefan Beller, Nov 26, 2014
  5. Michael HaggertyNov 26, 2014
  6. Junio C HamanoNov 26, 2014
  7. Torsten BögershausenNov 26, 2014
  8. [PATCHv3] branch -d: test if we can delete broken refsStefan Beller, Nov 26, 2014

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.