-
Notifications
You must be signed in to change notification settings - Fork 616
HDDS-11057. Enable reproducible builds #6856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
21e687b
50c6ba2
3f28113
4e9e8bf
0853592
9c92569
18f04a3
59d228a
5ea7a89
2613b12
2f2b76a
1ea4599
7db1d10
c1fe5d1
ad36788
7a4d53f
d8c97c6
ceda008
5bf235d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/usr/bin/env bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
| cd "$DIR/../../.." || exit 1 | ||
|
|
||
| : ${OZONE_WITH_COVERAGE:="false"} | ||
|
|
||
| MAVEN_OPTIONS='-V -B -Dmaven.javadoc.skip=true -DskipTests -DskipDocs --no-transfer-progress' | ||
|
|
||
| if [[ "${OZONE_WITH_COVERAGE}" == "true" ]]; then | ||
| MAVEN_OPTIONS="${MAVEN_OPTIONS} -Pcoverage" | ||
| else | ||
| MAVEN_OPTIONS="${MAVEN_OPTIONS} -Djacoco.skip" | ||
| fi | ||
|
|
||
| export MAVEN_OPTS="-Xmx4096m $MAVEN_OPTS" | ||
| mvn ${MAVEN_OPTIONS} clean "$@" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # This check verifies build reproducibility. | ||
|
|
||
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
| cd "$DIR/../../.." || exit 1 | ||
|
|
||
| BASE_DIR="$(pwd -P)" | ||
| REPORT_DIR=${OUTPUT_DIR:-"${BASE_DIR}/target/repro"} | ||
|
|
||
| source "${DIR}"/_build.sh verify artifact:compare "$@" | tee "${REPORT_DIR}/output.log" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure which is the source artifacts used to validate reproducible builds.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The jars created and uploaded by |
||
|
|
||
| mkdir -p "$REPORT_DIR" | ||
| REPORT_FILE="$REPORT_DIR/summary.txt" | ||
| grep 'ERROR.*mismatch' "${REPORT_DIR}/output.log" > "${REPORT_FILE}" | ||
|
|
||
| wc -l "${REPORT_FILE}" | awk '{ print $1 }' > "${REPORT_DIR}/failures" | ||
|
|
||
| if [[ -s "${REPORT_FILE}" ]]; then | ||
| exit 1 | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.