diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-03-11 13:56:44 -0800 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-03-12 18:01:47 +0000 |
commit | e5adb4b5064927626d7f14886602959ed83e519e (patch) | |
tree | 7053c9f430a68ea895a26cc6b0b79afb23fe2f49 /epan | |
parent | 71f471253248e83b4f7999ffbe4b7893ce225b07 (diff) |
GitLab CI: Speed up our fetching/cloning.
Fetching the complete Wireshark repository in GitLab's CI currently
takes about 3.5 minutes. GitLab CI lets you do shallow cloning, but only
up to 1000 commits. This isn't sufficient for any of our jobs that might
need a reachable tag since it's currently about 1200 commits away in
master.
Set GIT_DEPTH to 1 (which appears to trigger the required shallow clone
logic in GitLab's CI), then deepen it by setting GIT_FETCH_EXTRA_FLAGS
to "--depth=5000". This is *should* be much faster than a full checkout
and still give us a reachable tag:
$ git rev-list --count v3.3.0rc0..v3.5.0rc0
2330
$ git rev-list --count v3.1.0rc0..v3.3.0rc0
2198
$ git rev-list --count v2.9.0rc0..v3.1.0rc0
3449
Diffstat (limited to 'epan')
0 files changed, 0 insertions, 0 deletions