Skip to content

Commit ad53491

Browse files
authored
Merge pull request #16817 from MinaProtocol/dw/counterparty-16792
[develop] Counterparty of 16792
2 parents 39814d7 + 69585c5 commit ad53491

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

buildkite/src/Jobs/Lint/Merge.dhall

+13
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ in Pipeline.build
7272
, image = (../../Constants/ContainerImages.dhall).toolchainBase
7373
}
7474
}
75+
, Command.build
76+
Command.Config::{
77+
, commands =
78+
[ Cmd.run "scripts/merged-to-kimchi-stubs-vendors.sh main" ]
79+
, label =
80+
"[kimchi-stubs-vendors] Check merges cleanly into kimchi-stubs-vendors main branch"
81+
, key = "merged-to-kimchi-stubs-vendors-main"
82+
, soft_fail = Some (B/SoftFail.Boolean False)
83+
, target = Size.Multi
84+
, docker = Some Docker::{
85+
, image = (../../Constants/ContainerImages.dhall).toolchainBase
86+
}
87+
}
7588
, Command.build
7689
Command.Config::{
7790
, commands = [ Cmd.run "true" ] : List Cmd.Type
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
if [[ $# -ne 1 ]]; then
6+
echo "Usage: $0 <target-branch>"
7+
exit 1
8+
fi
9+
10+
cd src/lib/crypto/kimchi_bindings/stubs/kimchi-stubs-vendors
11+
12+
CURR=$(git rev-parse HEAD)
13+
14+
# temporarily skip SSL verification (for CI)
15+
if [ "${BUILDKITE:-false}" == true ]
16+
then
17+
git config http.sslVerify false
18+
git fetch origin
19+
git config http.sslVerify true
20+
fi
21+
22+
23+
BRANCH=$1
24+
25+
function in_branch {
26+
if git rev-list origin/"$1" | grep -q "${CURR}"; then
27+
echo "kimchi-stubs-vendors submodule commit is an ancestor of $1"
28+
true
29+
else
30+
false
31+
fi
32+
}
33+
34+
if (! in_branch "${BRANCH}"); then
35+
echo "kimchi-stubs-vendors submodule commit is NOT an ancestor of ${BRANCH} branch"
36+
exit 1
37+
fi

0 commit comments

Comments
 (0)