Skip to content

Commit a616391

Browse files
committed
Revert "Merge branch 'master' into sarahchen6/1.49.0-branch"
This reverts commit f3ee497, reversing changes made to 3023be2.
1 parent f3ee497 commit a616391

File tree

617 files changed

+5743
-12473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

617 files changed

+5743
-12473
lines changed

.circleci/cancel_workflow.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
echo "Cancelling workflow ${CIRCLE_WORKFLOW_ID}"
4+
curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel --header "Circle-Token: ${CIRCLE_TOKEN}"

.circleci/checkout_merge_commit.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
CIRCLE_PULL_REQUEST="${CIRCLE_PULL_REQUEST:-}"
5+
CCI_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"
6+
7+
if [[ "${CIRCLE_BRANCH:-}" != "master" && -n "${CCI_PR_NUMBER:-}" ]]
8+
then
9+
FETCH_REFS="${FETCH_REFS:-} +refs/pull/${CCI_PR_NUMBER}/merge:refs/pull/${CCI_PR_NUMBER}/merge +refs/pull/${CCI_PR_NUMBER}/head:refs/pull/${CCI_PR_NUMBER}/head"
10+
git fetch -u origin ${FETCH_REFS}
11+
head_ref="$(git show-ref --hash refs/pull/${CCI_PR_NUMBER}/head)"
12+
merge_ref="$(git show-ref --hash refs/pull/${CCI_PR_NUMBER}/merge)"
13+
if git merge-base --is-ancestor "$head_ref" "$merge_ref"; then
14+
git checkout "pull/${CCI_PR_NUMBER}/merge"
15+
else
16+
echo "[WARN] There is a merge conflict between master and PR ${CCI_PR_NUMBER}, merge branch cannot be checked out."
17+
git checkout "pull/${CCI_PR_NUMBER}/head"
18+
fi
19+
fi

.circleci/collect_libs.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Save all important libs into (project-root)/libs
4+
# This folder will be saved by circleci and available after test runs.
5+
6+
set -x
7+
set -e
8+
9+
LIBS_DIR=./libs/
10+
mkdir -p $LIBS_DIR >/dev/null 2>&1
11+
12+
cp /tmp/hs_err_pid*.log $LIBS_DIR || true
13+
cp /tmp/java_pid*.hprof $LIBS_DIR || true
14+
15+
for lib_path in workspace/*/build/libs; do
16+
echo "saving libs in $lib_path"
17+
cp $lib_path/*.jar $LIBS_DIR/
18+
done

0 commit comments

Comments
 (0)