-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
CI: logformatter: link to correct PR base #23081
Merged
openshift-merge-bot
merged 1 commit into
containers:main
from
edsantiago:logformatter-base-sha
Jun 25, 2024
+20
−30
Merged
Changes from all commits
Commits
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 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 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 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 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 |
---|---|---|
|
@@ -22,13 +22,8 @@ source $(dirname $0)/lib.sh | |
showrun echo "starting" | ||
|
||
function _run_validate() { | ||
# git-validation tool fails if $EPOCH_TEST_COMMIT is empty | ||
# shellcheck disable=SC2154 | ||
if [[ -n "$EPOCH_TEST_COMMIT" ]]; then | ||
showrun make validate | ||
else | ||
warn "Skipping git-validation since \$EPOCH_TEST_COMMIT is empty" | ||
fi | ||
showrun make validate | ||
|
||
# make sure PRs have tests | ||
showrun make tests-included | ||
} | ||
|
@@ -257,7 +252,8 @@ function _run_altbuild() { | |
context_dir=$(mktemp -d --tmpdir make-size-check.XXXXXXX) | ||
savedhead=$(git rev-parse HEAD) | ||
# Push to PR base. First run of the script will write size files | ||
pr_base=$(git merge-base origin/$DEST_BRANCH HEAD) | ||
# shellcheck disable=SC2154 | ||
pr_base=$PR_BASE_SHA | ||
showrun git checkout $pr_base | ||
showrun hack/make-and-check-size $context_dir | ||
# pop back to PR, and run incremental makes. Subsequent script | ||
|
@@ -457,7 +453,9 @@ function _bail_if_test_can_be_skipped() { | |
# Defined by Cirrus-CI for all tasks | ||
# shellcheck disable=SC2154 | ||
head=$CIRRUS_CHANGE_IN_REPO | ||
base=$(git merge-base $DEST_BRANCH $head) | ||
# shellcheck disable=SC2154 | ||
base=$PR_BASE_SHA | ||
echo "_bail_if_test_can_be_skipped: head=$head base=$base" | ||
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. debugging printf. Does anyone mind if I leave it in for a little while? 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. It's fine IMO |
||
diffs=$(git diff --name-only $base $head) | ||
|
||
# If PR touches any files in an argument directory, we cannot skip | ||
|
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.
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.
As best I can tell,
PRE_COMMIT
does not useEPOCH_TEST_COMMIT
. Thisecho
was added in #5066, back in February 2020, but I think it was a mistake.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.
I'm pretty sure pre-cmmit doesn't. I know vbatts/gitvalidate does use it though (in case that matters here).