Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bff60a7
add cumulus companions
s3krit Jun 3, 2021
deaeab7
remove references to any specific repo in check_companion_build.sh
s3krit Jun 3, 2021
21c3d80
naughty naughty very naughty (revert me)
s3krit Jun 3, 2021
98030be
add custom build string option
s3krit Jun 3, 2021
4b68a08
add beefy
s3krit Jun 3, 2021
5f05ce8
Revert "naughty naughty very naughty (revert me)"
s3krit Jun 3, 2021
07747bc
out with the old
s3krit Jun 3, 2021
00a925b
add anchors
s3krit Jun 7, 2021
3b90256
move check-companion-build to test stage
s3krit Jun 7, 2021
cd97118
ugh...
s3krit Jun 7, 2021
98f83ce
fix
s3krit Jun 7, 2021
a9427dd
Merge branch 'master' of https://github.com/paritytech/substrate into…
s3krit Jun 10, 2021
359820c
dynamically patch crates as needed
s3krit Jun 10, 2021
3002789
Merge branch 'master' into mp-cumulus-companions
s3krit Jun 28, 2021
8c5363d
Merge remote-tracking branch 'origin/master' into mp-cumulus-companions
s3krit Jun 28, 2021
dc8d301
fix reviews
s3krit Jun 28, 2021
c90db6c
first attempt at deeper dependencies
s3krit Jun 28, 2021
7df4a60
include lib.sh
s3krit Jun 28, 2021
1b8c9d8
Merge remote-tracking branch 'origin/master' into mp-cumulus-companions
s3krit Jun 28, 2021
8181635
patch things correctly
s3krit Jun 28, 2021
c476a9d
improve comments, test something neat
s3krit Jun 28, 2021
f5f920d
Apply suggestions from code review
s3krit Jun 29, 2021
46988ba
update comments
s3krit Jun 29, 2021
c96f997
Merge branch 'master' into mp-cumulus-companions
s3krit Aug 6, 2021
a7ee4a3
use jq for parsing PRs
s3krit Aug 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix reviews
  • Loading branch information
s3krit committed Jun 28, 2021
commit dc8d30188e0779c31f564a594b0fef2dbf70ba5f
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ build-rust-doc:
- buildah push --format=v2s2 "$IMAGE_NAME:latest"
after_script:
- buildah logout "$IMAGE_NAME"
# pass artifacts to the trigger-simnet job
# pass artifacts to the trigger-simnet job
- echo "IMAGE_NAME=${IMAGE_NAME}" | tee -a ./artifacts/$PRODUCT/build.env
- IMAGE_TAG="$(cat ./artifacts/$PRODUCT/VERSION)"
- echo "IMAGE_TAG=${IMAGE_TAG}" | tee -a ./artifacts/$PRODUCT/build.env
Expand Down
12 changes: 10 additions & 2 deletions .maintain/gitlab/check_companion_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set -e

ORGANISATION=$1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Apparently "Organisation" is valid spelling in British English but IMO it'd look better ORGANIZATION

REPO=$2
BUILDSTRING=${3:-cargo test --all --release}
BUILDSTRING=${3:-cargo test --workspace --release}

github_api_substrate_pull_url="https://api.github.com/repos/paritytech/substrate/pulls"
# use github api v3 in order to access the data without authentication
Expand Down Expand Up @@ -100,16 +100,24 @@ match_arg["--substrate"]='source = "git+https://github.com/paritytech/substrate?
match_arg["--polkadot"]='source = "git+https://github.com/paritytech/polkadot?'
match_arg["--beefy"]='source = "git+https://github.com/paritytech/parity-bridges-gadget?'

declare -A patch_args
patch_args=()

# For each Cargo.lock
while IFS= read -r cargo_lock; do
# If the Cargo.lock has a dependency, we patch with diener
for patch_arg in "${!match_arg[@]}"; do
if grep -q "${match_arg[$patch_arg]}" "$cargo_lock" ; then
echo "marking $patch_arg as patchable"
patch_args["$patch_arg"]='true'
echo "patching $patch_arg"
diener patch --crates-to-patch ../ "$patch_arg" --path Cargo.toml
fi
done
done < <(find . -name Cargo.lock)

for patch_arg in "${!patch_args[@]}"; do
diener patch --crates-to-patch ../ "$patch_arg" --path Cargo.toml
done

# Test pr or master branch with this Substrate commit.
eval "$BUILDSTRING"