Artifactspublic-v0

curl

master
ply4 git calls28 ms288 KiB3 cachedprotocol v2
144 lines5.0 KiBexecutableRaw
1#!/bin/sh
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
22# SPDX-License-Identifier: curl
24###########################################################################
26# tests compilation script for the OS/400.
30SCRIPTDIR=$(dirname "${0}")
31. "${SCRIPTDIR}/initscript.sh"
32cd "${TOPDIR}/tests" || exit 1
35# Build programs in a directory.
37build_all_programs()
40 # Compile all programs.
41 # The list is found in variable "noinst_PROGRAMS"
43 # shellcheck disable=SC2034
44 INCLUDES="'$(pwd)' '${TOPDIR}/lib' '${TOPDIR}/src'"
45 MODS="${1}"
46 SRVPGMS="${2}"
48 # shellcheck disable=SC2154
49 for PGM in ${noinst_PROGRAMS}
50 do DB2PGM=$(db2_name "${PGM}")
51 PGMIFSNAME="${LIBIFSNAME}/${DB2PGM}.PGM"
53 # Extract preprocessor symbol definitions from
54 # compilation options for the program.
56 PGMCFLAGS="$(eval echo "\${${PGM}_CFLAGS}")"
57 PGMDFNS=
59 for FLAG in ${PGMCFLAGS}
60 do case "${FLAG}" in
61 -D?*)
62 DEFINE="$(echo "${FLAG}" | sed 's/^..//')"
63 PGMDFNS="${PGMDFNS} '${DEFINE}'"
64 ;;
65 esac
66 done
68 # Compile all C sources for the program into modules.
70 PGMSOURCES="$(eval echo "\${${PGM}_SOURCES}")"
71 LINK=
72 MODULES=
74 for SOURCE in ${PGMSOURCES}
75 do case "${SOURCE}" in
76 *.c) # Special processing for libxxx.c files:
77 # their module name is determined
78 # by the target PROGRAM name.
80 case "${SOURCE}" in
81 lib*.c) MODULE="${DB2PGM}"
82 ;;
83 *) MODULE=$(db2_name "${SOURCE}")
84 ;;
85 esac
87 # If source is in a sibling directory,
88 # prefix module name with 'X'.
90 case "${SOURCE}" in
91 ../*) MODULE=$(db2_name "X${MODULE}")
92 ;;
93 esac
95 make_module "${MODULE}" "${SOURCE}" "${PGMDFNS}"
96 if action_needed "${PGMIFSNAME}" "${MODIFSNAME}"
97 then LINK=yes
98 fi
99 ;;
100 esac
101 done
103 # Link program if needed.
105 if [ -n "${LINK}" ]
106 then PGMLDADD="$(eval echo "\${${PGM}_LDADD}")"
107 for M in ${PGMLDADD}
108 do case "${M}" in
109 -*) ;; # Ignore non-module.
110 *) MODULES="${MODULES} $(db2_name "${M}")"
111 ;;
112 esac
113 done
114 MODULES="$(echo "${MODULES}" |
115 sed "s/[^ ][^ ]*/${TARGETLIB}\/&/g")"
116 CMD="CRTPGM PGM(${TARGETLIB}/${DB2PGM})"
117 CMD="${CMD} ENTMOD(${TARGETLIB}/CURLMAIN)"
118 CMD="${CMD} MODULE(${MODULES} ${MODS})"
119 CMD="${CMD} BNDSRVPGM(${SRVPGMS} QADRTTS)"
120 CMD="${CMD} TGTRLS(${TGTRLS})"
121 CLcommand "${CMD}"
122 fi
123 done
127# Build programs in the server directory.
130 cd server || exit 1
131 get_make_vars Makefile.inc
132 build_all_programs "${TARGETLIB}/OS400SYS"
136# Build all programs in the libtest subdirectory.
139 cd libtest || exit 1
140 get_make_vars Makefile.inc
142 # shellcheck disable=SC2153
143 build_all_programs "" "${TARGETLIB}/${SRVPGM}"
Diagnostics4 git calls · 28 ms
CallStatusSizeTime028 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
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 · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=3
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=2
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=86
Open pack map
fetch2001.6 KiB · hit23 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=23
git.response.bytes=1650
git.response.cache=HIT
git.response.duration_ms=23
git.fetch.wants=4ddc537487b2f656cf8683968343b786251f72f5
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=1650
git.pkt.payload.max=1629
git.sideband.band1.bytes=1628
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
a5e2edd51c1077be
Request
3bfdd542…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format