Merge branch 'jk/t5551-expensive-test-timeouts-fix'
The Apache timeout in HTTP tests has been increased to prevent test failures on heavily loaded CI runners. The tests creating an enormous number of refs have been isolated to their own repositories to avoid slowing down subsequent tests. * jk/t5551-expensive-test-timeouts-fix: t5551: put many-tags case into its own repo t/lib-httpd: bump apache timeoutmain
commit
7fb089f411
|
|
@ -4,6 +4,7 @@ DocumentRoot www
|
|||
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||
CustomLog access.log common
|
||||
ErrorLog error.log
|
||||
Timeout 600
|
||||
<IfModule !mod_log_config.c>
|
||||
LoadModule log_config_module modules/mod_log_config.so
|
||||
</IfModule>
|
||||
|
|
|
|||
|
|
@ -397,15 +397,16 @@ create_tags () {
|
|||
}
|
||||
|
||||
test_expect_success 'create 2,000 tags in the repo' '
|
||||
git init --bare "$HTTPD_DOCUMENT_ROOT_PATH/many-tags.git" &&
|
||||
(
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/many-tags.git" &&
|
||||
create_tags 1 2000
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success CMDLINE_LIMIT \
|
||||
'clone the 2,000 tag repo to check OS command line overflow' '
|
||||
run_with_limited_cmdline git clone $HTTPD_URL/smart/repo.git too-many-refs &&
|
||||
run_with_limited_cmdline git clone $HTTPD_URL/smart/many-tags.git too-many-refs &&
|
||||
(
|
||||
cd too-many-refs &&
|
||||
git for-each-ref refs/tags >actual &&
|
||||
|
|
@ -483,12 +484,12 @@ test_expect_success 'test allowanysha1inwant with unreachable' '
|
|||
test_expect_success EXPENSIVE 'http can handle enormous ref negotiation' '
|
||||
test_when_finished "rm -f tags" &&
|
||||
(
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/many-tags.git" &&
|
||||
create_tags 2001 50000
|
||||
) &&
|
||||
git -C too-many-refs fetch -q --tags &&
|
||||
(
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
|
||||
cd "$HTTPD_DOCUMENT_ROOT_PATH/many-tags.git" &&
|
||||
create_tags 50001 100000
|
||||
) &&
|
||||
git -C too-many-refs fetch -q --tags &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue