]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
CI: use a fixed version of chutney
authorJim Newsome <jnewsome@torproject.org>
Wed, 30 Oct 2024 15:34:58 +0000 (10:34 -0500)
committerAlexander Hansen Færøy <ahf@torproject.org>
Wed, 19 Mar 2025 18:28:32 +0000 (19:28 +0100)
While chutney currently runs tor's chutney test in its own CI,
it's difficult to guarantee the two won't accidentally diverge.
Probably best to use a fixed version here so that we can control
chutney version bumps and avoid surprise breakage in tor's CI.

This will also free us to intentionally make breaking changes in
chutney (though I don't have any immediate plans for any).

.gitlab-ci.yml
changes/ci-pin-chutney [new file with mode: 0644]

index 0372c4015bd5daf0d45af9b13b6f4f84a98c1652..a5957883204e9748f6eebe509b9624ff745e376c 100644 (file)
@@ -107,7 +107,12 @@ variables:
     # TODO: This next line should not be debian-only.
     - |
       if [ "$CHUTNEY" = yes ]; then
-        git clone --depth 1 https://gitlab.torproject.org/tpo/core/chutney.git
+        # Use a fixed version of chutney to avoid surprise breakage.
+        CHUTNEY_SHALLOW_SINCE=2024-10-28
+        CHUTNEY_COMMIT=be881a1e7c4bc8038fa13fde4a7b24e5c56349c4
+
+        git clone --shallow-since "$CHUTNEY_SHALLOW_SINCE" https://gitlab.torproject.org/tpo/core/chutney.git
+        git -C ./chutney checkout "$CHUTNEY_COMMIT"
         export CHUTNEY_PATH="$(pwd)/chutney"
         # Have pip install chutney's python dependencies by installing chutney
         # itself.
diff --git a/changes/ci-pin-chutney b/changes/ci-pin-chutney
new file mode 100644 (file)
index 0000000..f572de9
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor feature (testing, CI):
+    - Use a fixed version of chutney (be881a1e) instead of its current HEAD.
+      This version should also be preferred when testing locally.