Artifactspublic-v0

curl

master
ply4 git calls362 ms289 KiB1 cachedprotocol v2
139 lines4.9 KiBRaw
1# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2#
3# SPDX-License-Identifier: curl
5name: 'CodeQL'
7'on':
8 push:
9 branches:
10 - master
11 - 'curl-*'
12 - '*/ci'
13 paths-ignore:
14 - '**/*.md'
15 - 'appveyor.*'
16 - 'projects/**'
17 - 'tests/data/**'
18 pull_request:
19 branches:
20 - master
21 - 'curl-*'
22 paths-ignore:
23 - '**/*.md'
24 - 'appveyor.*'
25 - 'projects/**'
26 - 'tests/data/**'
27 schedule:
28 - cron: '0 0 * * 4'
30concurrency:
31 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
32 cancel-in-progress: true
34permissions: {}
35cache-mode: none
37env:
38 DO_NOT_TRACK: '1'
40jobs:
41 gha_python:
42 if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }}
43 name: 'GHA and Python'
44 runs-on: ubuntu-26.04-arm
45 permissions:
46 security-events: write # To create/update security events
47 steps:
48 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49 with:
50 persist-credentials: false
52 - name: 'initialize'
53 uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
54 with:
55 languages: actions, python
56 queries: security-extended
58 - name: 'perform analysis'
59 uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
61 c:
62 if: ${{ github.repository_owner == 'curl' || github.event_name != 'schedule' }}
63 name: 'C'
64 runs-on: ${{ matrix.platform == 'Linux' && 'ubuntu-26.04-arm' || 'windows-2022' }}
65 permissions:
66 security-events: write # To create/update security events
67 strategy:
68 fail-fast: false
69 matrix:
70 platform: [Linux, Windows]
71 env:
72 MATRIX_PLATFORM: '${{ matrix.platform }}'
73 steps:
74 - name: 'install prereqs'
75 if: ${{ matrix.platform == 'Linux' }}
76 timeout-minutes: 2
77 uses: $/.github/actions/pkg-install
78 with:
79 apt: libpsl-dev libbrotli-dev libidn2-dev libssh2-1-dev libssh-dev libnghttp2-dev libldap-dev libkrb5-dev libgnutls28-dev libwolfssl-dev
80 brew: c-ares gsasl libnghttp3 libngtcp2 mbedtls rustls-ffi
82 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
83 with:
84 persist-credentials: false
86 - name: 'delete test input C files'
87 shell: bash
88 run: find tests/data -name '*.c' -delete
90 - name: 'initialize'
91 # https://github.com/github/codeql-action/blob/main/init/action.yml
92 uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
93 with:
94 languages: cpp
95 build-mode: manual
96 trap-caching: false
98 - name: 'build'
99 timeout-minutes: 10
100 shell: bash
101 run: |
102 if [ "${MATRIX_PLATFORM}" = 'Windows' ]; then
103 cmake -B . -DBUILD_SHARED_LIBS=OFF -DCURL_DROP_UNUSED=ON -DCURL_WERROR=ON \
104 -DCMAKE_VS_GLOBALS=TrackFileAccess=false \
105 -DCURL_USE_SCHANNEL=ON -DCURL_USE_LIBPSL=OFF -DUSE_WIN32_IDN=ON
106 cmake --build . --verbose
107 src/Debug/curl.exe --disable --version
108 else
109 eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
111 export PKG_CONFIG_PATH
113 # MultiSSL
114 PKG_CONFIG_PATH="$(brew --prefix c-ares)/lib/pkgconfig:$(brew --prefix mbedtls)/lib/pkgconfig:$(brew --prefix rustls-ffi)/lib/pkgconfig:$(brew --prefix gsasl)/lib/pkgconfig"
115 cmake -B _bld1 -G Ninja -DCURL_DISABLE_TYPECHECK=ON -DCURL_WERROR=ON -DENABLE_DEBUG=ON \
116 -DCURL_USE_GNUTLS=ON -DCURL_USE_MBEDTLS=ON -DCURL_USE_RUSTLS=ON -DCURL_USE_WOLFSSL=ON \
117 -DCURL_USE_GSASL=ON -DCURL_USE_GSSAPI=ON -DUSE_SSLS_EXPORT=ON -DUSE_ECH=ON -DENABLE_ARES=ON \
118 -DCURL_DISABLE_VERBOSE_STRINGS=ON
119 cmake --build _bld1
120 cmake --build _bld1 --target testdeps
121 cmake --build _bld1 --target curl-examples-build
123 # HTTP/3
124 PKG_CONFIG_PATH="$(brew --prefix libnghttp3)/lib/pkgconfig:$(brew --prefix libngtcp2)/lib/pkgconfig:$(brew --prefix gsasl)/lib/pkgconfig"
125 cmake -B _bld2 -G Ninja -DCURL_DISABLE_TYPECHECK=ON -DCURL_WERROR=ON \
126 -DCURL_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR="$(brew --prefix openssl)" -DUSE_NGTCP2=ON \
127 -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON \
128 -DCURL_USE_GSASL=ON -DCURL_USE_GSSAPI=ON -DUSE_SSLS_EXPORT=ON -DUSE_PROXY_HTTP3=ON
129 cmake --build _bld2
130 cmake --build _bld2 --target testdeps
131 cmake --build _bld2 --target curl-examples-build
133 _bld1/src/curl --disable --version
134 _bld2/src/curl --disable --version
135 fi
137 - name: 'perform analysis'
138 # https://github.com/github/codeql-action/blob/main/analyze/action.yml
139 uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
Diagnostics4 git calls · 362 ms
CallStatusSizeTime0362 ms
discover200152 B3 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 B3 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=UPDATING
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 · hit4 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=355
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
fetch2001.7 KiB355 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1734
git.response.cache=MISS
git.response.duration_ms=355
git.fetch.wants=a51332c53c459df345d8ecc2b133baa6128288bf
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=1734
git.pkt.payload.max=1713
git.sideband.band1.bytes=1712
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
a5e12ffb0f01a9fe
Request
f4394bbc…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format