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

Re: Test failures in pu: 4046, 950[012]

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Nov 5, 2010, 02:20 UTC
Message-ID
<AANLkTinZJFb_sAH6AGD+ZMwj5boERAU3-NDkA3ve1+=F@mail.gmail.com>
In-Reply-To
<201011042237.01801.trast@student.ethz.ch>
2010/11/5 Thomas Rast <trast@student.ethz.ch>:
> * 950[012]: these are very strange.
>
> Running them interactively appears to work ok, so maybe it is some
> environment bug.  They appear to be "can't happen" style failures

Can you rerun it with GIT_TRACE="$TRASH_DIRECTORY/trace" set on the failed tests?

Show 11 quoted lines
> though, since they all look like (this one is from 9502)
>
>  Initialized empty Git repository in /local/home/trast/git/t/trash directory.t9502-gitweb-standalone-parse-output/.git/
>  expecting success:
>          test_commit first foo &&
>          git branch xx/test &&
>          FULL_ID=$(git rev-parse --verify HEAD) &&
>          SHORT_ID=$(git rev-parse --verify --short=7 HEAD)
>
>  fatal: This operation must be run in a work tree
>  not ok - 1 setup

This test is OK for me, although the next ones fail (pu db22585). How do I debug gitweb.perl? t9502.2 shows

FULL_ID  = 1005c80cc11c531d327b12195027cbbb4ff9e3cb
SHORT_ID = 1005c80
expecting success:
        gitweb_run "p=.git;a=snapshot;h=$FULL_ID;sf=tar" &&
        check_snapshot ".git-$SHORT_ID"

basename=.git-1005c80 tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors not ok - 2 snapshot: full sha1

Not very helpful.
On t9500.1, I get

[Fri Nov 5 02:09:15 2010] gitweb.perl: Undefined subroutine &main::cache_fetch called at /home/pclouds/w/git/t/../gitweb/gitweb.perl line 1124.

Setting PERLLIB makes it work, but shouldn't the test script have done that already?

-- 
Duy
Previous: Yann DirsonNext: Jakub Narebski
Message 6 of 7 in “Test failures in today's pu: 0025, 4046, 4203, 9300, 9301”
  1. Thomas RastOct 20, 2010
  2. Junio C HamanoOct 20, 2010
  3. Thomas RastOct 20, 2010
  4. Test failures in pu: 4046, 950[012]Thomas Rast, Nov 4, 2010
  5. Yann DirsonNov 4, 2010
  6. Nguyen Thai Ngoc DuyNov 5, 2010
  7. Jakub NarebskiNov 5, 2010

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.