This is an automated email from the ASF dual-hosted git repository. leonardBang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
commit d20dbc104581bd53b2984d847f874190e7d392c4 Author: Leonard Xu <[email protected]> AuthorDate: Wed Jul 1 14:57:42 2026 +0800 [test][ci] Keep E2E timezone selection on hour boundaries --- .github/workflows/utils.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/utils.sh b/.github/workflows/utils.sh index a18831021..4bf12c683 100644 --- a/.github/workflows/utils.sh +++ b/.github/workflows/utils.sh @@ -18,9 +18,10 @@ ################################################################################ function random_timezone() { - local rnd=$(expr $RANDOM % 25) - local hh=$(expr $rnd / 2) - local mm=$(expr $rnd % 2 \* 3)"0" + # Keep CI-generated zones on hour boundaries. Some connector dependencies do not handle + # sub-hour JVM offsets consistently, and connector-specific timezone cases cover that behavior. + local hh=$(expr $RANDOM % 13) + local mm="00" local sgn=$(expr $RANDOM % 2) if [ $sgn -eq 0 ] then @@ -28,4 +29,4 @@ function random_timezone() { else echo "GMT-$hh:$mm" fi -} \ No newline at end of file +}
