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

Re: t5560-http-backend-noserver.sh fails on FreeBSD 8.1-STABLE

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 21, 2010, 08:06 UTC
Message-ID
<AANLkTimm9uXRxcwL=o1JE_voOOYVNo-1V-+Sx78votJO@mail.gmail.com>
In-Reply-To
<AANLkTimPpiO2RBbNNo0Z8mFm1VH_Ujk7HVskYvh=X2Fc@mail.gmail.com>
On Sat, Aug 21, 2010 at 07:57, Tarmigan <tarmigan+git@gmail.com> wrote:
Show 32 quoted lines
> On Thu, Aug 19, 2010 at 9:56 AM, Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>> I haven't investigate this, but here's the failure output:
>>
>> ok 7 - static file if http.getanyfile false fails
>>
>> expecting success:
>>        log_div "uploadpack default"
>>        GET info/refs?service=git-upload-pack "200 OK"  &&
>>        POST git-upload-pack 0000 "200 OK"
>>
>> --- exp 2010-08-19 15:56:14.000000000 +0000
>> +++ act 2010-08-19 15:56:14.000000000 +0000
>> @@ -1 +1 @@
>> -Status: 200 OK
>> +Status: 404 Not Found
>> not ok - 8 http.uploadpack default enabled
>> #
>> #               log_div "uploadpack default"
>> #               GET info/refs?service=git-upload-pack "200 OK"  &&
>> #               POST git-upload-pack 0000 "200 OK"
>> #
>>
>
> Thanks for the report.  Is this a new breakage and what version is it
> failing on?
>
> Do you ever test with GIT_TEST_HTTPD set?  If not, can you please try this
>     export GIT_TEST_HTTPD=1 && ./t5561-http-backend.sh -d -i -v
> and report back?  Hopefully the test suite will automatically find
> apache on FreeBSD, otherwise you may need to give it some hints (see
> lib-httpd.sh).
Here are the outputs of:

$ GIT_TEST_HTTPD= ./t5560-http-backend-noserver.sh -d -i -v > /tmp/no-httpd.txt 2>&1 $ GIT_TEST_HTTPD=1 ./t5560-http-backend-noserver.sh -d -i -v > /tmp/with-httpd.txt 2>&1

Can't investigate this further now, sorry.
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/.git/
expecting success: 
	echo content >file &&
	git add file &&
	git commit -m one &&
	mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 git --bare init &&
	 : >objects/info/alternates &&
	 : >objects/info/http-alternates
	) &&
	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	git push public master:master &&
	(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 git repack -a -d
	) &&
	echo other >file &&
	git add file &&
	git commit -m two &&
	git push public master:master &&
	LOOSE_URL=$(find_file objects/??) &&
	PACK_URL=$(find_file objects/pack/*.pack) &&
	IDX_URL=$(find_file objects/pack/*.idx)
[master (root-commit) e00d2d0] one
 Author: A U Thor <author@example.com>
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 file
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git/
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
 * [new branch]      master -> master
[master e101090] two
 Author: A U Thor <author@example.com>
 1 files changed, 1 insertions(+), 1 deletions(-)
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
   e00d2d0..e101090  master -> master
ok 1 - setup repository
expecting success: 
	log_div "refs/heads/master"
	GET refs/heads/master "404 Not Found"
ok 2 - direct refs/heads/master not found
expecting success: 
	log_div "getanyfile default"
	get_static_files "200 OK"
ok 3 - static file is ok
expecting success: 
	log_div "no git-daemon-export-ok"
	get_static_files "404 Not Found"
ok 4 - no export by default
expecting success: 
	log_div "git-daemon-export-ok"
        (cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 touch git-daemon-export-ok
	) &&
        get_static_files "200 OK"
ok 5 - export if git-daemon-export-ok
expecting success: 
	log_div "getanyfile true"
	config http.getanyfile true &&
	get_static_files "200 OK"
ok 6 - static file if http.getanyfile true is ok
expecting success: 
	log_div "getanyfile false"
	config http.getanyfile false &&
	get_static_files "403 Forbidden"
ok 7 - static file if http.getanyfile false fails
expecting success: 
	log_div "uploadpack default"
	GET info/refs?service=git-upload-pack "200 OK"  &&
	POST git-upload-pack 0000 "200 OK"

--- exp 2010-08-21 08:04:57.000000000 +0000 +++ act 2010-08-21 08:04:57.000000000 +0000

@@ -1 +1 @@
-Status: 200 OK
+Status: 404 Not Found
not ok - 8 http.uploadpack default enabled
#	
#		log_div "uploadpack default"
#		GET info/refs?service=git-upload-pack "200 OK"  &&
#		POST git-upload-pack 0000 "200 OK"
#	


Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/.git/
expecting success: 
	echo content >file &&
	git add file &&
	git commit -m one &&

	mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 git --bare init &&
	 : >objects/info/alternates &&
	 : >objects/info/http-alternates
	) &&
	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	git push public master:master &&

	(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 git repack -a -d
	) &&

	echo other >file &&
	git add file &&
	git commit -m two &&
	git push public master:master &&

	LOOSE_URL=$(find_file objects/??) &&
	PACK_URL=$(find_file objects/pack/*.pack) &&
	IDX_URL=$(find_file objects/pack/*.idx)

[master (root-commit) 0bfcfe4] one
 Author: A U Thor <author@example.com>
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 file
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git/
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
 * [new branch]      master -> master
[master d89e1cd] two
 Author: A U Thor <author@example.com>
 1 files changed, 1 insertions(+), 1 deletions(-)
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
   0bfcfe4..d89e1cd  master -> master
ok 1 - setup repository

expecting success: 
	log_div "refs/heads/master"
	GET refs/heads/master "404 Not Found"

ok 2 - direct refs/heads/master not found

expecting success: 
	log_div "getanyfile default"
	get_static_files "200 OK"

ok 3 - static file is ok

expecting success: 
	log_div "no git-daemon-export-ok"
	get_static_files "404 Not Found"

ok 4 - no export by default

expecting success: 
	log_div "git-daemon-export-ok"
        (cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
	 touch git-daemon-export-ok
	) &&
        get_static_files "200 OK"

ok 5 - export if git-daemon-export-ok

expecting success: 
	log_div "getanyfile true"
	config http.getanyfile true &&
	get_static_files "200 OK"

ok 6 - static file if http.getanyfile true is ok

expecting success: 
	log_div "getanyfile false"
	config http.getanyfile false &&
	get_static_files "403 Forbidden"

ok 7 - static file if http.getanyfile false fails

expecting success: 
	log_div "uploadpack default"
	GET info/refs?service=git-upload-pack "200 OK"  &&
	POST git-upload-pack 0000 "200 OK"

--- exp	2010-08-21 08:04:51.000000000 +0000
+++ act	2010-08-21 08:04:51.000000000 +0000
@@ -1 +1 @@
-Status: 200 OK
+Status: 404 Not Found
not ok - 8 http.uploadpack default enabled
#	
#		log_div "uploadpack default"
#		GET info/refs?service=git-upload-pack "200 OK"  &&
#		POST git-upload-pack 0000 "200 OK"
#	
Previous: TarmiganNext: Tarmigan
Message 3 of 4 in “t5560-http-backend-noserver.sh fails on FreeBSD 8.1-STABLE”
  1. Ævar Arnfjörð BjarmasonAug 19, 2010
  2. TarmiganAug 21, 2010
  3. Ævar Arnfjörð BjarmasonAug 21, 2010
  4. TarmiganAug 21, 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.