apache / apache/parquet-java

Remove duplicate LICENSE and NOTICE files from benchmark JARs

オープン 初心者向け
#3,695 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
3.1k
フォーク
1.6k
平均マージ
3日 12時間
マージ済み PR(30日)
33

説明

Similar to https://github.com/apache/iceberg/issues/17406

**These local JMH artifacts are not published, so releases are unaffected**. Update their shade configuration to retain only the intended `META-INF/LICENSE` and `META-INF/NOTICE`, while preserving required attribution in those canonical files.

The shaded benchmark uber-JARs contain multiple LICENSE/NOTICE variants:
- `parquet-benchmarks.jar`
- `parquet-plugins-benchmarks.jar`

## Reproduction

```bash
# Build all default and vector-plugin JARs without running tests.
./mvnw --batch-mode -Pvector-plugins -DskipTests clean package

# Check all final JARs; exclude only Maven Shade backup artifacts.
(
failed=0
while IFS= read -r -d '' jar; do
licenses=$(jar tf "$jar" | grep -Eic '(^|/)LICENSE([._-].*)?$' || true)
notices=$(jar tf "$jar" | grep -Eic '(^|/)NOTICE([._-].*)?$' || true)

if [ "$licenses" -eq 1 ] && [ "$notices" -eq 1 ]; then
echo "PASS: $jar"
else
echo "FAIL: $jar (LICENSE=$licenses, NOTICE=$notices)"
jar tf "$jar" | grep -Ei '(^|/)(LICENSE|NOTICE)([._-].*)?$'
failed=1
fi
done < <(
# original-* JARs are temporary backups created by Maven Shade.
find . -type f -path '*/target/*.jar' \
! -name 'original-*.jar' \
-print0 | sort -z
)
exit "$failed"
)
```

Observed failures:

```text
FAIL: ./parquet-benchmarks/target/parquet-benchmarks.jar (LICENSE=9, NOTICE=4)
FAIL: ./parquet-plugins/parquet-plugins-benchmarks/target/parquet-plugins-benchmarks.jar (LICENSE=4, NOTICE=3)
```

Expected: every final JAR contains exactly one LICENSE and one NOTICE file under `META-INF/`.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

parquet-benchmarks モジュールと parquet-plugins/parquet-plugins-benchmarks モジュールの shade 設定を調査します。./mvnw --batch-mode -Pvector-plugins -DskipTests clean package を実行し、その後、提供されているチェックで最終的なベンチマーク JAR を調査します。各最終 JAR に META-INF/LICENSE がちょうど 1 つ、META-INF/NOTICE がちょうど 1 つ含まれ、必要な帰属表示が維持されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。