Removing rfc from release package and fixing release validation script (#4147)
This commit is contained in:
committed by
GitHub
parent
52aae36b53
commit
38e75ea806
@@ -307,7 +307,7 @@ object HoodieSqlUtils extends SparkAdapterSupport {
|
||||
HoodieActiveTimeline.formatDate(defaultDateFormat.get().parse(queryInstant))
|
||||
} else {
|
||||
throw new IllegalArgumentException(s"Unsupported query instant time format: $queryInstant,"
|
||||
+ s"Supported time format are: 'yyyy-MM-dd: HH:mm:ss' or 'yyyy-MM-dd' or 'yyyyMMddHHmmss'")
|
||||
+ s"Supported time format are: 'yyyy-MM-dd: HH:mm:ss.SSS' or 'yyyy-MM-dd' or 'yyyyMMddHHmmssSSS'")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ rsync -a \
|
||||
--exclude ".github" --exclude "target" \
|
||||
--exclude ".idea" --exclude "*.iml" --exclude ".DS_Store" --exclude "build-target" \
|
||||
--exclude "docs/content" --exclude ".rubydeps" \
|
||||
--exclude "rfc"
|
||||
. hudi-$RELEASE_VERSION
|
||||
|
||||
tar czf ${RELEASE_DIR}/hudi-${RELEASE_VERSION}.src.tgz hudi-$RELEASE_VERSION
|
||||
|
||||
@@ -156,10 +156,10 @@ echo -e "\t\tNotice file exists ? [OK]\n"
|
||||
|
||||
### Licensing Check
|
||||
echo "Performing custom Licensing Check "
|
||||
numfilesWithNoLicense=`find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.json' | grep -v '.data'| grep -v '.commit' | grep -v DISCLAIMER | grep -v KEYS | grep -v '.mailmap' | grep -v '.sqltemplate' | grep -v 'ObjectSizeCalculator.java' | grep -v 'AvroConversionHelper.scala' | xargs grep -L "Licensed to the Apache Software Foundation (ASF)" | wc -l`
|
||||
numfilesWithNoLicense=`find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.json' | grep -v '.data'| grep -v '.commit' | grep -v DISCLAIMER | grep -v KEYS | grep -v '.mailmap' | grep -v '.sqltemplate' | grep -v 'ObjectSizeCalculator.java' | grep -v 'AvroConversionHelper.scala' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)" | wc -l`
|
||||
if [ "$numfilesWithNoLicense" -gt "0" ]; then
|
||||
echo "There were some source files that did not have Apache License"
|
||||
find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.json' | grep -v '.data' | grep -v '.commit' | grep -v DISCLAIMER | grep -v '.sqltemplate' | grep -v KEYS | grep -v '.mailmap' | grep -v 'ObjectSizeCalculator.java' | grep -v 'AvroConversionHelper.scala' | xargs grep -L "Licensed to the Apache Software Foundation (ASF)"
|
||||
find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.json' | grep -v '.data' | grep -v '.commit' | grep -v DISCLAIMER | grep -v '.sqltemplate' | grep -v KEYS | grep -v '.mailmap' | grep -v 'ObjectSizeCalculator.java' | grep -v 'AvroConversionHelper.scala' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)"
|
||||
exit -1
|
||||
fi
|
||||
echo -e "\t\tLicensing Check Passed [OK]\n"
|
||||
|
||||
Reference in New Issue
Block a user