-
Notifications
You must be signed in to change notification settings - Fork 588
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
21e687b
HDDS-11057. Enable reproducible builds
adoroszlai 50c6ba2
do not record username (commandment 1)
adoroszlai 3f28113
do not record date/time (commandment 2)
adoroszlai 4e9e8bf
add check for reproducibility
adoroszlai 0853592
chmod +x
adoroszlai 9c92569
fix grep
adoroszlai 18f04a3
create report dir after mvn clean
adoroszlai 59d228a
pass arguments
adoroszlai 5ea7a89
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai 2613b12
remove build date and user
adoroszlai 2f2b76a
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai 1ea4599
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai 7db1d10
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai c1fe5d1
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai ad36788
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai 7a4d53f
Merge remote-tracking branch 'origin/master' into HDDS-11057
adoroszlai d8c97c6
adopt HDDS-11046
adoroszlai ceda008
fix and improve repro check
adoroszlai 5bf235d
reorder steps
adoroszlai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/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 -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 "$@" | ||
| rc=$? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| #!/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. | ||
|
|
||
| # Helper script to compare jars reported by maven-artifact-plugin | ||
|
|
||
| set -e -u -o pipefail | ||
|
|
||
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
| cd "$DIR/../../.." || exit 1 | ||
|
|
||
| BASE_DIR="$(pwd -P)" | ||
| : ${OUTPUT_LOG:="${BASE_DIR}/target/repro/output.log"} | ||
|
|
||
| for jar in $(grep -o "investigate with diffoscope [^ ]*\.jar [^ ]*\.jar" "${OUTPUT_LOG}" | awk '{ print $NF }'); do | ||
| jarname=$(basename "$jar") | ||
| if [[ ! -e "$jar" ]]; then | ||
| echo "$jar does not exist" | ||
| continue | ||
| fi | ||
|
|
||
| ref=$(find target/reference -name "$jarname") | ||
| if [[ -z "$ref" ]]; then | ||
| ref=$(find ~/.m2/repository -name "$jarname") | ||
| fi | ||
|
|
||
| if [[ ! -e "$ref" ]]; then | ||
| echo "Reference not found for: $jarname" | ||
| continue | ||
| fi | ||
|
|
||
| diffoscope "$ref" "$jar" | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.