Skip to content

Commit 56e8afe

Browse files
committed
docs: add note about cloning depth
1 parent e75385f commit 56e8afe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

autotick-bot/install_bot_code.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ done
4343
if [[ "${clone_graph}" == "true" ]]; then
4444
cf_graph_repo=${CF_TICK_GRAPH_GITHUB_BACKEND_REPO:-"regro/cf-graph-countyfair"}
4545
cf_graph_remote="https://github.com/${cf_graph_repo}.git"
46+
# please make sure the cloning depth is always identical to the one used in the integration tests (test_integration.py)
4647
git clone --depth=5 "${cf_graph_remote}" cf-graph
4748
else
4849
echo "Skipping cloning of cf-graph"

tests_integration/test_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def in_fresh_cf_graph():
156156
tmpdir = Path(tmpdir_s)
157157

158158
cf_graph_repo = settings().graph_github_backend_repo
159+
160+
# --depth=5 is the same value as used in prod (see autotick-bot/install_bot_code.sh)
159161
subprocess.run(
160162
[
161163
"git",

0 commit comments

Comments
 (0)