master
1#!/usr/bin/env perl
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
10#
11# This software is licensed as described in the file COPYING, which
12# you should have received as part of this distribution. The terms
13# are also available at https://curl.se/docs/copyright.html.
14#
15# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16# copies of the Software, and permit persons to whom the Software is
17# furnished to do so, under the terms of the COPYING file.
18#
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
21#
22# SPDX-License-Identifier: curl
23#
24###########################################################################
26###########################
27# What is This Script?
28###########################
30# testcurl.pl is the master script to use for automatic testing of curl
31# directly off its source repository.
32# This is written for the purpose of being run from a crontab job or similar
33# at a regular interval. The output is suitable to be mailed to
34# curl-autocompile@haxx.se to be dealt with automatically (make sure the
35# subject includes the word "autobuild" as the mail gets silently discarded
36# otherwise). The most current build status (with a reasonable backlog) is
37# published on the curl site, at https://curl.se/auto/
39# USAGE:
40# testcurl.pl [options] [curl-daily-name] > output
42# Options:
43#
44# --configure=[options] Configure options
45# --crosscompile This is a crosscompile
46# --desc=[desc] Description of your test system
47# --email=[email] Set email address to report as
48# --extvercmd=[command] Command to use for displaying version with cross compiles.
49# --mktarball=[command] Command to run after completed test
50# --name=[name] Set name to report as
51# --notes=[notes] More human-readable information about this configuration
52# --nocvsup Do not pull from git even though it is a git tree
53# --nogitpull Do not pull from git even though it is a git tree
54# --nobuildconf Do not run autoreconf -fi
55# --noconfigure Do not run configure
56# --runtestopts=[options] Options to pass to runtests.pl
57# --setup=[filename] Filename to read setup from (deprecated)
58# --target=[your os] Specify your target environment.
59#
60# if [curl-daily-name] is omitted, a 'curl' git directory is assumed.
61#
63use strict;
64use warnings;
66use Cwd;
67use File::Path;
68use File::Spec;
70# Turn on warnings (equivalent to -w, which cannot be used with /usr/bin/env)
71#BEGIN { $^W = 1; }
73use vars qw($version $fixed $infixed $CURLDIR $git $pwd $build $buildlog
74 $buildlogname $configurebuild $targetos $confheader $binext
75 $libext);
77use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
78 $extvercmd $nogitpull $nobuildconf $crosscompile
79 $timestamp $notes);
81$notes = '';
82$runtestopts = '';
84# version of this script
85$version = '2024-11-28';
86$fixed = 0;
88# Determine if we are running from git or a canned copy of curl,
89# or if we got a specific target option or setup file option.
90$CURLDIR = "curl";
91if(-f ".git/config") {
92 $CURLDIR = "./";
93}
95$git = 1;
96$setupfile = 'setup';
97$configurebuild = 1;
98while($ARGV[0]) {
99 if($ARGV[0] =~ /--target=/) {
100 $targetos = (split(/=/, shift @ARGV, 2))[1];
101 }
102 elsif($ARGV[0] =~ /--setup=/) {
103 $setupfile = (split(/=/, shift @ARGV, 2))[1];
104 }
105 elsif($ARGV[0] =~ /--extvercmd=/) {
106 $extvercmd = (split(/=/, shift @ARGV, 2))[1];
107 }
108 elsif($ARGV[0] =~ /--mktarball=/) {
109 $mktarball = (split(/=/, shift @ARGV, 2))[1];
110 }
111 elsif($ARGV[0] =~ /--name=/) {
112 $name = (split(/=/, shift @ARGV, 2))[1];
113 }
114 elsif($ARGV[0] =~ /--email=/) {
115 $email = (split(/=/, shift @ARGV, 2))[1];
116 }
117 elsif($ARGV[0] =~ /--desc=/) {
118 $desc = (split(/=/, shift @ARGV, 2))[1];
119 }
120 elsif($ARGV[0] =~ /--notes=/) {
121 $notes = (split(/=/, shift @ARGV, 2))[1];
122 }
123 elsif($ARGV[0] =~ /--configure=(.*)/) {
124 $confopts = $1;
125 shift @ARGV;
126 }
127 elsif(($ARGV[0] eq "--nocvsup") || ($ARGV[0] eq "--nogitpull")) {
128 $nogitpull = 1;
129 shift @ARGV;
130 }
131 elsif($ARGV[0] =~ /--nobuildconf/) {
132 $nobuildconf = 1;
133 shift @ARGV;
134 }
135 elsif($ARGV[0] =~ /--noconfigure/) {
136 $configurebuild = 0;
137 shift @ARGV;
138 }
139 elsif($ARGV[0] =~ /--crosscompile/) {
140 $crosscompile = 1;
141 shift @ARGV;
142 }
143 elsif($ARGV[0] =~ /--runtestopts=/) {
144 $runtestopts = (split(/=/, shift @ARGV, 2))[1];
145 }
146 else {
147 $CURLDIR = shift @ARGV;
148 $git = 0; # a given dir, assume not using git
149 }
150}
152# Do the platform-specific stuff here
153$confheader = 'curl_config.h';
154$binext = '';
155$libext = '.la'; # .la since libcurl is made with libtool
156if($^O eq 'MSWin32' || $targetos) {
157 if(!$targetos) {
158 # If no target defined on Windows, let's assume vc
159 $targetos = 'vc';
160 }
161 if($targetos =~ /vc/ || $targetos =~ /borland/) {
162 $binext = '.exe';
163 $libext = '.lib';
164 }
165 elsif($targetos =~ /mingw/) {
166 $binext = '.exe';
167 if($^O eq 'MSWin32') {
168 $libext = '.a';
169 }
170 }
171}
173if(($^O eq 'MSWin32' || $^O eq 'cygwin' || $^O eq 'msys') &&
174 ($targetos =~ /vc/ || $targetos =~ /mingw32/ ||
175 $targetos =~ /borland/)) {
177 # Set these things only when building ON Windows and for Win32 platform.
178 # FOR Windows since we might be cross-compiling on another system. Non-
179 # Windows builds still default to configure-style builds with curl_config.h.
181 $configurebuild = 0;
182 $confheader = 'config-win32.h';
183}
185$ENV{LC_ALL} = "C" if(($ENV{LC_ALL}) && ($ENV{LC_ALL} !~ /^C$/));
186$ENV{LC_CTYPE} = "C" if(($ENV{LC_CTYPE}) && ($ENV{LC_CTYPE} !~ /^C$/));
187$ENV{LANG} = "C";
189sub grepfile($$) {
190 my ($target, $fn) = @_;
191 open(my $fh, "<", $fn) or die;
192 while(<$fh>) {
193 if(/$target/) {
194 close($fh);
195 return 1;
196 }
197 }
198 close($fh);
199 return 0;
200}
202sub logit($) {
203 my $text = $_[0];
204 if($text) {
205 print "testcurl: $text\n";
206 }
207}
209sub logit_spaced($) {
210 my $text = $_[0];
211 if($text) {
212 print "\ntestcurl: $text\n\n";
213 }
214}
216sub mydie($){
217 my $text = $_[0];
218 logit $text;
219 chdir $pwd; # cd back to the original root dir
221 if($pwd && $build) {
222 # we have a build directory name, remove the dir
223 logit "removing the $build dir";
224 rmtree "$pwd/$build";
225 }
226 if(-r $buildlog) {
227 # we have a build log output file left, remove it
228 logit "removing the $buildlogname file";
229 unlink $buildlog;
230 }
231 logit "ENDING HERE"; # last line logged!
232 exit 1;
233}
235sub get_host_triplet {
236 my $triplet;
237 my $configfile = "$pwd/$build/lib/curl_config.h";
239 if(-f $configfile && -s $configfile && open(my $libconfigh, "<", $configfile)) {
240 while(<$libconfigh>) {
241 if($_ =~ /^\#define\s+CURL_OS\s+"*([^"][^"]*)"*\s*/) {
242 $triplet = $1;
243 last;
244 }
245 }
246 close($libconfigh);
247 }
248 return $triplet;
249}
251if($name && $email && $desc) {
252 # having these fields set are enough to continue, skip reading the setup
253 # file
254 $infixed = 4;
255 $fixed = 4;
256}
257elsif(open(my $f, "<", $setupfile)) {
258 while(<$f>) {
259 if(/(\w+)=(.*)/) {
260 eval "\$$1=$2;";
261 }
262 }
263 close($f);
264 $infixed = $fixed;
265}
266else {
267 $infixed = 0; # so that "additional args to configure" works properly first time...
268}
270if(!$name) {
271 print "please enter your name\n";
272 $name = <>;
273 chomp $name;
274 $fixed = 1;
275}
277if(!$email) {
278 print "please enter your contact email address\n";
279 $email = <>;
280 chomp $email;
281 $fixed = 2;
282}
284if(!$desc) {
285 print "please enter a one line system description\n";
286 $desc = <>;
287 chomp $desc;
288 $fixed = 3;
289}
291if(!$confopts) {
292 if($infixed < 4) {
293 print "please enter your additional arguments to configure\n";
294 print "examples: --with-openssl --enable-debug --enable-ipv6\n";
295 $confopts = <>;
296 chomp $confopts;
297 }
298}
300if($fixed < 4) {
301 $fixed = 4;
302 open(my $f, ">", $setupfile) or die;
303 print $f "name='$name'\n";
304 print $f "email='$email'\n";
305 print $f "desc='$desc'\n";
306 print $f "confopts='$confopts'\n";
307 print $f "notes='$notes'\n";
308 print $f "fixed='$fixed'\n";
309 close($f);
310}
312# Enable picky compiler warnings unless explicitly disabled
313if(($confopts !~ /--enable-debug/) &&
314 ($confopts !~ /--enable-warnings/) &&
315 ($confopts !~ /--disable-warnings/)) {
316 $confopts .= " --enable-warnings";
317}
319my $str1066os = 'o' x 1066;
321# Set timestamp to the UTC this script is running. Its value might
322# be changed later in the script to the value present in curlver.h
323$timestamp = scalar(gmtime) . " UTC";
325logit "STARTING HERE"; # first line logged, for scripts to trigger on
326logit 'TRANSFER CONTROL ==== 1120 CHAR LINE' . $str1066os . 'LINE_END';
327logit "NAME = $name";
328logit "EMAIL = $email";
329logit "DESC = $desc";
330logit "NOTES = $notes";
331logit "CONFOPTS = $confopts";
332logit "RUNTESTOPTS = ".$runtestopts;
333logit "CPPFLAGS = ".($ENV{CPPFLAGS} || '');
334logit "CFLAGS = ".($ENV{CFLAGS} || '');
335logit "LDFLAGS = ".($ENV{LDFLAGS} || '');
336logit "LIBS = ".($ENV{LIBS} || '');
337logit "CC = ".($ENV{CC} || '');
338logit "TMPDIR = ".($ENV{TMPDIR} || '');
339logit "MAKEFLAGS = ".($ENV{MAKEFLAGS} || '');
340logit "ACLOCAL_FLAGS = ".($ENV{ACLOCAL_FLAGS} || '');
341logit "PKG_CONFIG_PATH = ".($ENV{PKG_CONFIG_PATH} || '');
342logit "DYLD_LIBRARY_PATH = ".($ENV{DYLD_LIBRARY_PATH} || '');
343logit "LD_LIBRARY_PATH = ".($ENV{LD_LIBRARY_PATH} || '');
344logit "LIBRARY_PATH = ".($ENV{LIBRARY_PATH} || '');
345logit "SHLIB_PATH = ".($ENV{SHLIB_PATH} || '');
346logit "LIBPATH = ".($ENV{LIBPATH} || '');
347logit "target = ".$targetos;
348logit "version = $version"; # script version
349logit "date = $timestamp"; # When the test build starts
351$str1066os = undef;
353# Make $pwd to become the path without newline. We use that in order to cut
354# off that path from all possible logs and error messages etc.
355$pwd = getcwd();
357if(-d $CURLDIR) {
358 if($git && -d "$CURLDIR/.git") {
359 logit "$CURLDIR is verified to be a fine git source dir";
360 # remove the generated sources to force them to be re-generated each
361 # time we run this test
362 unlink "$CURLDIR/src/tool_hugehelp.c";
363 }
364 elsif(!$git && -f "$CURLDIR/tests/testcurl.pl") {
365 logit "$CURLDIR is verified to be a fine daily source dir";
366 }
367 else {
368 mydie "$CURLDIR is not a daily source directory or checked out from git!"
369 }
370}
372# make the path absolute so we can use it everywhere
373$CURLDIR = File::Spec->rel2abs($CURLDIR);
375$build = "build-$$";
376$buildlogname = "buildlog-$$";
377$buildlog = "$pwd/$buildlogname";
379# remove any previous left-overs
380foreach(glob("build-*")) { rmtree $_; }
381foreach(glob("buildlog-*")) { rmtree $_; }
383# this is to remove old build logs that ended up in the wrong dir
384foreach(glob("$CURLDIR/buildlog-*")) { unlink $_; }
386# create a directory to build in
387mkdir $build, 0777;
389if(-d $build) {
390 logit "build directory $build was created fine";
391}
392else {
393 mydie "failed to create directory $build";
394}
396# get in the curl source tree root
397chdir $CURLDIR;
399# Do the git thing, or not...
400if($git) {
401 my $gitstat = 0;
402 my @commits;
404 # update quietly to the latest git
405 if($nogitpull) {
406 logit "skipping git pull (--nogitpull)";
407 }
408 else {
409 logit "run git pull in curl";
410 system("git pull 2>&1");
411 $gitstat += $?;
412 logit "failed to update from curl git ($?), continue anyway" if($?);
414 # Set timestamp to the UTC the git update took place.
415 $timestamp = scalar(gmtime) . " UTC" if(!$gitstat);
416 }
418 # get the last 5 commits for show (even if no pull was made)
419 @commits = qx(git log --pretty=oneline --abbrev-commit -5);
420 logit "The most recent curl git commits:";
421 for(@commits) {
422 chomp ($_);
423 logit " $_";
424 }
426 if($nobuildconf) {
427 logit "told to not run autoreconf -fi";
428 }
429 elsif($configurebuild) {
430 # remove possible left-overs from the past
431 unlink "configure";
432 unlink "autom4te.cache";
434 # generate the build files
435 logit "invoke autoreconf";
436 open(my $f, "-|", "autoreconf -fi 2>&1") or die;
437 open(my $log, ">", $buildlog) or die;
438 while(<$f>) {
439 my $ll = $_;
440 print $ll;
441 print $log $ll;
442 }
443 close($f);
444 close($log);
446 logit "autoreconf -fi was successful";
447 }
448 else {
449 logit "autoreconf -fi was successful (dummy message)";
450 }
451}
452else {
453 # Show snapshot git commit when available
454 if(open(my $f, '<', "docs/tarball-commit.txt")) {
455 my $commit = <$f>;
456 chomp $commit;
457 logit "The most recent curl git commits:";
458 logit " $commit";
459 close($f);
460 }
461}
463# Set timestamp to the one in curlver.h if this is not a git test build.
464if((-f "include/curl/curlver.h") &&
465 open(my $f, "<", "include/curl/curlver.h")) {
466 while(<$f>) {
467 chomp;
468 if($_ =~ /^\#define\s+LIBCURL_TIMESTAMP\s+\"(.+)\".*$/) {
469 my $stampstring = $1;
470 if($stampstring !~ /DEV/) {
471 $stampstring =~ s/\s+UTC//;
472 $timestamp = $stampstring . " UTC";
473 }
474 last;
475 }
476 }
477 close($f);
478}
480# Show timestamp we are using for this test build.
481logit "timestamp = $timestamp";
483if($configurebuild) {
484 if(-f "configure") {
485 logit "configure created (at least it exists)";
486 }
487 else {
488 mydie "no configure created/found";
489 }
490}
491else {
492 logit "configure created (dummy message)"; # dummy message to feign success
493}
495sub findinpath {
496 my $c;
497 my $e;
498 my $x = ($^O eq 'MSWin32') ? '.exe' : '';
499 my $s = ($^O eq 'MSWin32') ? ';' : ':';
500 my $p = $ENV{'PATH'};
501 my @pa = split($s, $p);
502 for $c (@_) {
503 for $e (@pa) {
504 if(-x "$e/$c$x") {
505 return $c;
506 }
507 }
508 }
509}
511my $make = findinpath("gmake", "make", "nmake");
512if(!$make) {
513 mydie "Could not find make in the PATH";
514}
515# force to 'nmake' for VC builds
516$make = "nmake" if($targetos =~ /vc/);
517logit "going with $make as make";
519# change to build dir
520chdir "$pwd/$build";
522if($configurebuild) {
523 # run configure script
524 print qx($CURLDIR/configure $confopts 2>&1);
526 if(-f "lib/Makefile") {
527 logit "configure seems to have finished fine";
528 }
529 else {
530 mydie "configure did not work";
531 }
532}
533else {
534 logit "copying files to build directory ...";
535 if($^O eq 'MSWin32') {
536 system('xcopy', ('/s', '/q', $CURLDIR, '.'));
537 }
538}
540if(-f "./libcurl.pc") {
541 logit_spaced "display libcurl.pc";
542 if(open(my $f, "<", "libcurl.pc")) {
543 while(<$f>) {
544 my $ll = $_;
545 print $ll if(($ll !~ /^ *#/) && ($ll !~ /^ *$/));
546 }
547 close($f);
548 }
549}
551my $f;
553logit_spaced "display lib/$confheader";
554open($f, "<", "lib/$confheader") or die "lib/$confheader: $!";
555while(<$f>) {
556 print if /^ *#/;
557}
558close($f);
560my $mkcmd = "$make -i" . ($targetos && !$configurebuild ? " $targetos" : "");
561logit $mkcmd;
562open($f, "-|", "$mkcmd 2>&1") or die;
563while(<$f>) {
564 s/$pwd//g;
565 print;
566}
567close($f);
569if(-f "lib/libcurl$libext") {
570 logit "libcurl was created fine (libcurl$libext)";
571}
572else {
573 mydie "libcurl was not created (libcurl$libext)";
574}
576if(-f "src/curl$binext") {
577 logit "curl was created fine (curl$binext)";
578}
579else {
580 mydie "curl was not created (curl$binext)";
581}
583if(!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) {
584 logit "display curl${binext} --version output";
585 my $cmd = ($extvercmd ne '' ? $extvercmd . ' ' : '') . "./src/curl${binext} --version|";
586 open($f, "<", $cmd);
587 while(<$f>) {
588 # strip CR from output on non-Windows platforms (WINE on Linux)
589 s/\r// if($^O ne 'MSWin32');
590 print;
591 }
592 close($f);
593}
595if($configurebuild && !$crosscompile) {
596 my $host_triplet = get_host_triplet();
597 # build example programs for selected build targets
598 if(($host_triplet =~ /([^-]+)-([^-]+)-irix(.*)/) ||
599 ($host_triplet =~ /([^-]+)-([^-]+)-aix(.*)/) ||
600 ($host_triplet =~ /([^-]+)-([^-]+)-osf(.*)/) ||
601 ($host_triplet =~ /([^-]+)-([^-]+)-solaris2(.*)/)) {
602 chdir "$pwd/$build/docs/examples";
603 logit_spaced "build examples";
604 open($f, "-|", "$make -i 2>&1") or die;
605 open(my $log, ">", $buildlog) or die;
606 while(<$f>) {
607 s/$pwd//g;
608 print;
609 print $log $_;
610 }
611 close($f);
612 close($log);
613 chdir "$pwd/$build";
614 }
615 # build and run full test suite
616 my $o;
617 if($runtestopts) {
618 $o = "TEST_F=\"$runtestopts\" ";
619 }
620 logit "$make -k ${o}test-full";
621 open($f, "-|", "$make -k ${o}test-full 2>&1") or die;
622 open(my $log, ">", $buildlog) or die;
623 while(<$f>) {
624 s/$pwd//g;
625 print;
626 print $log $_;
627 }
628 close($f);
629 close($log);
631 if(grepfile("^TEST", $buildlog)) {
632 logit "tests were run";
633 }
634 else {
635 mydie "test suite failure";
636 }
638 if(grepfile("^TESTFAIL:", $buildlog)) {
639 logit "the tests were not successful";
640 }
641 else {
642 logit "the tests were successful!";
643 }
644}
645else {
646 if($crosscompile) {
647 my $host_triplet = get_host_triplet();
648 # build example programs for selected cross-compiles
649 if(($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) ||
650 ($host_triplet =~ /([^-]+)-([^-]+)-android(.*)/)) {
651 chdir "$pwd/$build/docs/examples";
652 logit_spaced "build examples";
653 open($f, "-|", "$make -i 2>&1") or die;
654 open(my $log, ">", $buildlog) or die;
655 while(<$f>) {
656 s/$pwd//g;
657 print;
658 print $log $_;
659 }
660 close($f);
661 close($log);
662 chdir "$pwd/$build";
663 }
664 # build test harness programs for selected cross-compiles
665 if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
666 chdir "$pwd/$build/tests";
667 logit_spaced "build test harness";
668 open(my $f, "-|", "$make -i 2>&1") or die;
669 open(my $log, ">", $buildlog) or die;
670 while(<$f>) {
671 s/$pwd//g;
672 print;
673 print $log $_;
674 }
675 close($f);
676 close($log);
677 chdir "$pwd/$build";
678 }
679 logit_spaced "cross-compiling, cannot run tests";
680 }
681 # dummy message to feign success
682 print "TESTDONE: 1 tests out of 0 (dummy message)\n";
683}
685# create a tarball if we got that option.
686if(($mktarball ne '') && (-x $mktarball)) {
687 system($mktarball);
688}
690logit "enddate = " . scalar(gmtime) . " UTC"; # When the run ends
691# mydie to cleanup
692mydie "ending nicely";
Diagnostics4 git calls · 29 ms
CallStatusSizeTime029 ms
discover200152 B2 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=25 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2006.5 KiB · hit25 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=6655 git.response.cache=HIT git.response.duration_ms=25 git.fetch.wants=d3a1b0d8acce41d5ab292583fd6227568268d856 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=6655 git.pkt.payload.max=6634 git.sideband.band1.bytes=6633 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e2c059a96089da
- Request
- 2e5f8950…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format