apache / apache/parquet-java

Remove duplicate LICENSE and NOTICE files from benchmark JARs

Aperta Adatta ai principianti
#3,695 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
3.1k
Fork
1.6k
Merge medio
3g 12h
PR unite (30g)
33

Descrizione

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/`.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Ispeziona la configurazione di shade nei moduli parquet-benchmarks e parquet-plugins/parquet-plugins-benchmarks. Esegui ./mvnw --batch-mode -Pvector-plugins -DskipTests clean package, quindi ispeziona i JAR finali dei benchmark con i controlli forniti. Il lavoro è completato quando ogni JAR finale contiene esattamente un META-INF/LICENSE e un META-INF/NOTICE, mantenendo le attribuzioni richieste.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
build-system
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.