-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduce generic run-integration-test.sh
script
#1141
Introduce generic run-integration-test.sh
script
#1141
Conversation
b61b4b5
to
5d15247
Compare
/integration-test |
Looks good. No mutations were possible for these changes. |
1 similar comment
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean 🧹
5d15247
to
be79b3b
Compare
Looks good. No mutations were possible for these changes. |
be79b3b
to
0c9e563
Compare
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
0c9e563
to
ee1b4b4
Compare
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and added a commit. One question remaining!
|| ( | ||
git -C "${project_root}" fetch --depth 1 "${repository}" "${revision}" \ | ||
&& git -C "${project_root}" checkout --force FETCH_HEAD \ | ||
&& (git -C "${project_root}" tag "${revision}" --message "${revision}" || true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we understand why --message "${revision}"
is now necessary here/is there an easy way for me to see what breaks if this is omitted? 👀
(Looking at git tag --help
, I suspect this has to do with a tag.gpgSign
user setting.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I have the gpgSign
setup. Before adding this, I was required to pass in a message (via vim in the commandline) myself before it would continue with running. But instead we can also say --no-sign
perhaps?
Hmm, I ran it again without the --message "{revision}"
and it works for me... I have a new PC setup since the last time I worked on this, so maybe it's slightly different now?
Will drop it.
# are behavior preserving. Some tests are skipped: | ||
# - The `metadataFilesGenerationAllFiles` test is skipped because it makes line | ||
# number assertions that will fail when the code is formatted or patched. | ||
# - The `allCheckSectionJavaDocs` test is skipped because is validates that | ||
# Javadoc has certain closing tags that are removed by Google Java Format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation must now live elsewhere.
mvn ${shared_build_flags} \ | ||
clean package \ | ||
-Derror-prone.configuration-args="${error_prone_validation_flags}" \ | ||
${validation_mvn_flags} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above we use shared_build_flags
, so I'd say that this property should then be names validation_build_flags
.
;; | ||
esac | ||
|
||
# XXX: Configure Renovate to manage the AssertJ version declared here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# XXX: Configure Renovate to manage the AssertJ version declared here. |
repos_root="${integration_test_root}/.repos" | ||
|
||
if [ "${#}" -ne 11 ]; then | ||
>&2 echo "Usage $(basename "${0}") [TestName] [Project] [Repository] [Revision] [BuildFlags] [AdditionalSourceDirectories] [PatchFlags] [ValidationEpFlags] [ValidationMvnFlags] [DoSync] [ReportDirectory]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colon missing after "Usage". 👀
The parameters aren't optional, so we should use angled brackets, rather than square brackets.
test_name="${1}" | ||
project="${2}" | ||
repository="${3}" | ||
revision="${4}" | ||
build_flags="${5}" | ||
additional_src_directories="${6}" | ||
patch_flags="${7}" | ||
validation_ep_flags="${8}" | ||
validation_mvn_flags="${9}" | ||
do_sync="${10}" | ||
report_directory="${11}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming here isn't very consistent; will propose some things.
find "${error_prone_support_root}" \ | ||
-path "*/META-INF/services/com.google.errorprone.bugpatterns.BugChecker" \ | ||
-not -path "*/error-prone-experimental/*" \ | ||
-not -path "*/error-prone-guidelines/*" \ | ||
-print0 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation partially corrected here, but not fully. Should do the same below.
integration-tests/checkstyle.sh
Outdated
do_sync="$([ "${#}" = 0 ] || [ "${1:-}" != '--sync' ] || echo 1)" | ||
report_directory="$([ "${#}" = 0 ] || ([ -z "${do_sync}" ] && echo "${1}") || ([ "${#}" = 1 ] || echo "${2}"))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can partially deduplicate this ^ logic too; will propose something.
ee1b4b4
to
03d1a70
Compare
Looks good. No mutations were possible for these changes. |
Suggested commit message:
|
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go! 🚀
b837751
to
342bf12
Compare
Quality Gate passedIssues Measures |
Looks good. No mutations were possible for these changes. |
This PR aims to split out some of the changes from #894 to minimize the diff of that PR.
It's introducing too many changes to review at once. After we merged this PR, it'll be easier to review the other.
Credits to @oxkitsune for these changes!