Artifactspublic-v0

curl

master
ply4 git calls226 ms290 KiB2 cachedprotocol v2
191 lines8.1 KiBRaw
1# Copyright (C) Daniel Fandrich, <dan@coneharvesters.com>, et al.
2#
3# SPDX-License-Identifier: curl
4#
5# Compile on an old version of Linux that has barely the minimal build
6# requirements for CMake. This tests that curl is still usable on really
7# outdated systems.
8#
9# Debian stretch is chosen as it closely matches some of the oldest major
10# versions we support (especially cmake); see docs/DEPENDENCIES.md and it
11# is still supported (as of this writing).
12# stretch has ELTS support from Freexian until 2027-06-30
13# For ELTS info see https://www.freexian.com/lts/extended/docs/how-to-use-extended-lts/
14# The Debian key expires 2025-05-20, after which package signature
15# verification may need to be disabled.
16# httrack is one of the smallest downloaders, needed to bootstrap ELTS,
17# and doesn not conflict with the curl we are building.
19name: 'Linux Old'
21'on':
22 push:
23 branches:
24 - master
25 - 'curl-*'
26 - '*/ci'
27 paths-ignore:
28 - '**/*.md'
29 - 'appveyor.*'
30 - 'Dockerfile'
31 - 'projects/**'
32 pull_request:
33 branches:
34 - master
35 - 'curl-*'
36 paths-ignore:
37 - '**/*.md'
38 - 'appveyor.*'
39 - 'Dockerfile'
40 - 'projects/**'
42concurrency:
43 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
44 cancel-in-progress: true
46permissions: {}
47cache-mode: none
49env:
50 MAKEFLAGS: -j 5
51 CURL_CI: github
52 CURL_TEST_MIN: 1680
53 DEBIAN_FRONTEND: noninteractive
54 DO_NOT_TRACK: '1'
56jobs:
57 cmake-autotools:
58 name: 'autotools & cmake'
59 runs-on: ubuntu-latest
60 container: debian:stretch-20220622-slim@sha256:c5cd3ffceeb25b683bf5111ea89bf8049a177e00fb237235d48076a19cc80097 # manually bumped (oldest supported Debian major version, rule disabled)
62 steps:
63 - name: 'install prereqs'
64 # Remember, this shell is dash, not bash
65 run: |
66 sed -E -i -e s@[a-z]+\.debian\.org/@archive.debian.org/debian-archive/@ -e '/ stretch-updates /d' /etc/apt/sources.list
67 apt-get -o Dpkg::Use-Pty=0 update
68 # See comment above if this fails after 2025-05-20
69 apt-get -o Dpkg::Use-Pty=0 install -y --no-install-suggests --no-install-recommends curl ca-certificates
70 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
71 https://deb.freexian.com/extended-lts/pool/main/f/freexian-archive-keyring/freexian-archive-keyring_2022.06.08_all.deb --output pkg.deb
72 sha256sum pkg.deb | tee /dev/stderr | grep -qwF -- a8160d1aa1a40aa9988bf0b389b650550c7460ec3b4ec1d847778fe44b9c4dbc && dpkg -i pkg.deb
73 echo 'deb http://deb.freexian.com/extended-lts stretch-lts main contrib non-free' | tee /etc/apt/sources.list.d/extended-lts.list
74 apt-get -o Dpkg::Use-Pty=0 update
75 apt-get -o Dpkg::Use-Pty=0 install -y --no-install-suggests --no-install-recommends \
76 make automake autoconf libtool ninja-build gcc pkg-config libpsl-dev libzstd-dev zlib1g-dev libkrb5-dev libldap2-dev stunnel4
77 # GitHub's actions/checkout needs newer glibc and libstdc++. The latter also depends on
78 # gcc-8-base, but it does not actually seem used in our situation and is not available in
79 # the main repo, so force the install.
80 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
81 https://deb.freexian.com/extended-lts/pool/main/g/glibc/libc6_2.28-10+deb10u5_amd64.deb --output pkg-c.deb
82 sha256sum pkg-c.deb | tee /dev/stderr | grep -qwF -- 0eec8ab0c8a4d018548a0ee3b23b6dadafcd9903d62ea50f36c86be24530471a
83 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
84 https://deb.freexian.com/extended-lts/pool/main/g/gcc-8/libstdc++6_8.3.0-6_amd64.deb --output pkg-cpp.deb
85 sha256sum pkg-cpp.deb | tee /dev/stderr | grep -qwF -- 5cc70625329655ff9382580971d4616db8aa39af958b7c995ee84598f142a4ee
86 dpkg -i --force-depends pkg-c.deb pkg-cpp.deb
88 - name: 'install prereqs (cmake)'
89 env:
90 CMAKE_VERSION: 3.18.0 # manually bumped (lowest minor version supported by curl)
91 CMAKE_SHA256: 4d9a9d3351161073a67e49366d701b6fa4b0343781982dc5eef08a02a750d403
92 run: |
93 cd ~
94 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
95 --location --proto-redir =https "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz" --output pkg.bin
96 sha256sum pkg.bin | tee /dev/stderr | grep -qwF -- "${CMAKE_SHA256}" && tar -xzf pkg.bin && rm -f pkg.bin
97 mv "cmake-${CMAKE_VERSION}-Linux-x86_64" cmake
99 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
100 with:
101 persist-credentials: false
103 - name: 'CM build-only configure (out-of-tree)'
104 run: |
105 ~/cmake/bin/cmake -B bld-1 -G Ninja -DCMAKE_UNITY_BUILD=ON -DCURL_WERROR=ON -DBUILD_SHARED_LIBS=ON \
106 -DCURL_ENABLE_SSL=OFF -DENABLE_ARES=OFF -DCURL_ZSTD=OFF -DCURL_USE_GSSAPI=OFF -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=OFF
108 - name: 'CM build-only build'
109 run: |
110 ~/cmake/bin/cmake --build bld-1 --verbose
111 ~/cmake/bin/cmake --install bld-1 --verbose
113 - name: 'CM build-only curl -V'
114 run: bld-1/src/curl --disable --version
116 - name: 'CM build-only configure log'
117 if: ${{ !cancelled() }}
118 run: cat bld-1/CMakeFiles/CMake*.log 2>/dev/null || true
120 - name: 'CM build-only curl_config.h'
121 run: |
122 echo '::group::raw'; cat bld-1/lib/curl_config.h || true; echo '::endgroup::'
123 grep -F '#define' bld-1/lib/curl_config.h | sort || true
125 # when this job can get libssh 0.9.0 or greater, this should get that enabled again
126 # when this job can get c-ares 1.16.0 or greater, this should get that enabled again
128 - name: 'CM configure (out-of-tree, zstd, gssapi)'
129 run: |
130 ~/cmake/bin/cmake -B bld-oldie -G Ninja -DCMAKE_UNITY_BUILD=ON -DCURL_WERROR=ON -DBUILD_SHARED_LIBS=ON \
131 -DCURL_ENABLE_SSL=OFF -DENABLE_ARES=OFF -DCURL_USE_GSSAPI=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=OFF \
132 -DCURL_LIBCURL_VERSIONED_SYMBOLS=ON
134 - name: 'CM configure log'
135 if: ${{ !cancelled() }}
136 run: cat bld-oldie/CMakeFiles/CMake*.log 2>/dev/null || true
138 - name: 'CM curl_config.h'
139 run: |
140 echo '::group::raw'; cat bld-oldie/lib/curl_config.h || true; echo '::endgroup::'
141 grep -F '#define' bld-oldie/lib/curl_config.h | sort || true
143 - name: 'CM build'
144 run: ~/cmake/bin/cmake --build bld-oldie
146 - name: 'CM curl -V'
147 run: bld-oldie/src/curl --disable --version
149 - name: 'CM install'
150 run: ~/cmake/bin/cmake --install bld-oldie
152 - name: 'CM build tests'
153 run: ~/cmake/bin/cmake --build bld-oldie --target testdeps
155 - name: 'CM run tests'
156 run: ~/cmake/bin/cmake --build bld-oldie --target test-ci
158 - name: 'CM build examples'
159 run: ~/cmake/bin/cmake --build bld-oldie --target curl-examples-build
161 - name: 'AM autoreconf'
162 run: autoreconf -fi
164 - name: 'AM configure (out-of-tree, zstd, gssapi)'
165 run: |
166 mkdir bld-am
167 cd bld-am
168 ../configure --prefix="$PWD"/../curl-install-am --enable-unity --enable-warnings --enable-werror --disable-shared \
169 --disable-dependency-tracking --enable-option-checking=fatal \
170 --without-ssl --disable-ares --without-libssh2 --with-zstd --with-gssapi
172 - name: 'AM configure log'
173 if: ${{ !cancelled() }}
174 run: cat bld-am/config.log 2>/dev/null || true
176 - name: 'AM curl_config.h'
177 run: |
178 echo '::group::raw'; cat bld-am/lib/curl_config.h || true; echo '::endgroup::'
179 grep -F '#define' bld-am/lib/curl_config.h | sort || true
181 - name: 'AM build'
182 run: make -C bld-am
184 - name: 'AM curl -V'
185 run: bld-am/src/curl --disable --version
187 - name: 'AM install'
188 run: make -C bld-am install
190 - name: 'AM build tests'
191 run: make -C bld-am/tests all
Diagnostics4 git calls · 226 ms
CallStatusSizeTime0226 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
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 · hit4 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=4
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
fetch2003.0 KiB220 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=220
git.response.bytes=3076
git.response.cache=MISS
git.response.duration_ms=220
git.fetch.wants=db9de96c6496870b65efe25b4de3bae03445a5af
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=3076
git.pkt.payload.max=3055
git.sideband.band1.bytes=3054
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
a5e2325c6b7ea594
Request
17301208…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format