bin/flink-suite.sh aborts under macOS's default bash 3.2
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash
- 領域
- cli
調査の方向性
bin/flink-suite.sh と docs/upstream-flink-suite.md を読み、issue に記載されたコマンドを使って macOS Bash 3.2 で空配列の展開を再現してください。必要に応じてスクリプトまたはドキュメントを更新し、バージョン要件を確認してください。完了の条件は、記載された環境設定で suite が中断せず、必要な Bash の動作が明確になっていることです。
索引モデルが issue の本文から書いたものです。
説明
Priority: P4.
Problem
bin/flink-suite.sh runs under #!/usr/bin/env bash with set -uo pipefail and expands arrays that can be empty, such as STREAMFUSION_LINE_PROFILES on the 2.2 line and TEST_SELECTOR_ARGS when no test selector is given. Bash before 4.4 treats "${array[@]}" of an empty array as an unbound variable under set -u, so on macOS, whose /bin/bash is 3.2, the suite aborts unless a newer bash comes first on PATH. docs/upstream-flink-suite.md does not state a bash requirement.
Confirmed on canonical main 97f7b08de84d11b9eb58e0f3b1bf33713e57ec83:
$ /bin/bash -c 'set -u; empty=(); printf "[%s]\n" "${empty[@]}"'
/bin/bash: empty[@]: unbound variable # bash 3.2.57 (macOS)
$ /opt/homebrew/bin/bash -c 'set -u; empty=(); printf "[%s]\n" "${empty[@]}"'
[] # bash 5.3
Direction
Expand possibly empty arrays as ${array[@]+"${array[@]}"}, which works on every bash version. Alternatively, document the bash 4.4 requirement and fail fast with a clear version check at the top of the script.
- 主要言語
- Java
- スター
- 157
- フォーク
- 13
- 平均マージ
- 7時間 56分
- マージ済み PR(30日)
- 153
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
datafusion-contrib/StreamFusion のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
datafusion-contrib/StreamFusion#187 ·
メンテナーはふだん 1 日以内に返信
-
Keep remaining connector source attachments and release checks module-local対応中かも @liuyongvs が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
datafusion-contrib/StreamFusion#658 ·
メンテナーはふだん 1 日以内に返信
-
Widen native Kafka source admission: metadata, non-raw keys, Canal include filters, nested CDC対応中かも @Flanderzz が 15 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
datafusion-contrib/StreamFusion#657 ·
メンテナーはふだん 1 日以内に返信
-
Native JSON decode diverges from Flink on quoted booleans, dates, negative zero and message boundaries対応中かも @Flanderzz が 15 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
datafusion-contrib/StreamFusion#656 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
datafusion-contrib/StreamFusion#655 ·
メンテナーはふだん 1 日以内に返信
datafusion-contrib/StreamFusion の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
SasanLabs/VulnerableApp#912 ·
メンテナーはふだん 1 日以内に返信
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apicurio/apicurio-registry#11079 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenAEV-Platform/openaev#9139 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
desktop edt not responding
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100