Skip to content

Commit d6affc9

Browse files
committed
ci: Fetch 3000 commits from upstream, rather than 1000
Fixes #1710. This should work around the problem for a few more months. If it doesn't get fixed upstream by then, we can figure something else out.
1 parent 94037d7 commit d6affc9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ jobs:
2222
# so that Flutter knows its version and sees the constraint in our
2323
# pubspec is satisfied. It's uncommon for flutter/flutter to go
2424
# more than 100 commits between tags. Fetch 1000 for good measure.
25+
# TODO(upstream): Around 2025-05, Flutter upstream stopped making
26+
# tags within the main/master branch. Get that fixed:
27+
# https://github.com/zulip/zulip-flutter/issues/1710
28+
# Pending that, fetch more than 1000 commits.
2529
run: |
2630
# TODO temp hack 2025-07-08 as Flutter's `main` is broken but `master` works:
2731
# https://github.com/zulip/zulip-flutter/pull/1688#issuecomment-3050661097
2832
# https://discord.com/channels/608014603317936148/608021351567065092/1392301750383415376
2933
# https://github.com/flutter/flutter/issues/171833
3034
# (See also "temp hack" items below.)
31-
git clone --depth=1000 -b master https://github.com/flutter/flutter ~/flutter
35+
git clone --depth=3000 -b master https://github.com/flutter/flutter ~/flutter
3236
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
3337
echo ~/flutter/bin >> "$GITHUB_PATH"
3438

.github/workflows/update-translations.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
# so that Flutter knows its version and sees the constraint in our
3030
# pubspec is satisfied. It's uncommon for flutter/flutter to go
3131
# more than 100 commits between tags. Fetch 1000 for good measure.
32+
# TODO(upstream): See ci.yml for why we fetch more than 1000.
3233
run: |
33-
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
34+
git clone --depth=3000 -b main https://github.com/flutter/flutter ~/flutter
3435
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
3536
echo ~/flutter/bin >> "$GITHUB_PATH"
3637

0 commit comments

Comments
 (0)