d147700046
* parity-version: mark 2.1.0 track beta * ci: update branch version references * docker: release master to latest * Fix checkpointing when creating contract failed (#9514) * ci: fix json docs generation (#9515) * fix typo in version string (#9516) * Update patricia trie to 0.2.2 crates. Default dependencies on minor version only. * Putting back ethereum tests to the right commit * Enable all Constantinople hard fork changes in constantinople_test.json (#9505) * Enable all Constantinople hard fork changes in constantinople_test.json * Address grumbles * Remove EIP-210 activation * 8m -> 5m * Temporarily add back eip210 transition so we can get test passed * Add eip210_test and remove eip210 transition from const_test * In create memory calculation is the same for create2 because the additional parameter was popped before. (#9522) * deps: bump fs-swap and kvdb-rocksdb * Multithreaded snapshot creation (#9239) * Add Progress to Snapshot Secondary chunks creation * Use half of CPUs to multithread snapshot creation * Use env var to define number of threads * info to debug logs * Add Snapshot threads as CLI option * Randomize chunks per thread * Remove randomness, add debugging * Add warning * Add tracing * Use parity-common fix seek branch * Fix log * Fix tests * Fix tests * PR Grumbles * PR Grumble II * Update Cargo.lock * PR Grumbles * Default snapshot threads to half number of CPUs * Fix default snapshot threads // min 1 * correct before_script for nightly build versions (#9543) - fix gitlab array of strings syntax error - get proper commit id - avoid colon in stings * Remove initial token for WS. (#9545) * version: mark release critical * ci: fix rpc docs generation 2 (#9550) * Improve P2P discovery (#9526) * Add `target` to Rust traces * network-devp2p: Don't remove discovery peer in main sync * network-p2p: Refresh discovery more often * Update Peer discovery protocol * Run discovery more often when not enough nodes connected * Start the first discovery early * Update fast discovery rate * Fix tests * Fix `ping` tests * Fixing remote Node address ; adding PingPong round * Fix tests: update new +1 PingPong round * Increase slow Discovery rate Check in flight FindNode before pings * Add `deprecated` to deprecated_echo_hash * Refactor `discovery_round` branching * net_version caches network_id to avoid redundant aquire of sync read lock (#9544) * net_version caches network_id to avoid redundant aquire of sync read lock, #8746 * use lower_hex display formatting for net_peerCount rpc method * Increase Gas-floor-target and Gas Cap (#9564) + Gas-floor-target increased to 8M by default + Gas-cap increased to 10M by default * Revert to old parity-tokio-ipc. * Downgrade named pipes.
68 lines
2.4 KiB
Bash
Executable File
68 lines
2.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
updater_push_release () {
|
|
echo "push release"
|
|
# Mainnet
|
|
|
|
}
|
|
echo "__________Set ENVIROMENT__________"
|
|
DESCRIPTION="$(cat CHANGELOG.md)"
|
|
RELEASE_TABLE="$(cat scripts/gitlab/templates/release-table.md)"
|
|
RELEASE_TABLE="$(echo "${RELEASE_TABLE//\$VERSION/${VERSION}}")"
|
|
#The text in the file CANGELOG.md before which the table with links is inserted. Must be present in this file necessarily
|
|
REPLACE_TEXT="The full list of included changes:"
|
|
case ${CI_COMMIT_REF_NAME} in
|
|
nightly|*v2.2*) NAME="Parity "$VERSION" nightly";;
|
|
beta|*v2.1*) NAME="Parity "$VERSION" beta";;
|
|
stable|*v2.0*) NAME="Parity "$VERSION" stable";;
|
|
*) echo "No release" exit 0;;
|
|
esac
|
|
cd artifacts
|
|
ls -l | sort -k9
|
|
filetest=( * )
|
|
echo ${filetest[*]}
|
|
for DIR in "${filetest[@]}";
|
|
do
|
|
cd $DIR
|
|
if [[ $DIR == "*windows*" ]];
|
|
then
|
|
WIN=".exe";
|
|
else
|
|
WIN="";
|
|
fi
|
|
for binary in $(ls parity.sha256)
|
|
do
|
|
sha256=$(cat $binary | awk '{ print $1}' )
|
|
case $DIR in
|
|
x86_64* )
|
|
DATA="commit=$CI_BUILD_REF&sha3=$sha256&filename=parity$WIN&secret=$RELEASES_SECRET"
|
|
../../scripts/gitlab/safe_curl.sh $DATA "http://update.parity.io:1337/push-build/$CI_BUILD_REF_NAME/$DIR"
|
|
# Kovan
|
|
../../scripts/gitlab/safe_curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$DIR"
|
|
;;
|
|
esac
|
|
RELEASE_TABLE="$(echo "${RELEASE_TABLE/sha$DIR/${sha256}}")"
|
|
done
|
|
cd ..
|
|
done
|
|
#do not touch the following 3 lines. Features of output in Markdown
|
|
DESCRIPTION="$(echo "${DESCRIPTION/${REPLACE_TEXT}/${RELEASE_TABLE}
|
|
|
|
${REPLACE_TEXT}}")"
|
|
echo "$DESCRIPTION"
|
|
if [[ "$CI_COMMIT_REF_NAME" == "nightly" ]]; then DESCRIPTION=""; fi #TODO in the future, we need to prepare a script that will do changelog
|
|
echo "__________Create release to Github____________"
|
|
github-release release --user devops-parity --repo parity-ethereum --tag "$CI_COMMIT_REF_NAME" --draft --name "$NAME" --description "$DESCRIPTION"
|
|
echo "__________Push binaries to AWS S3____________"
|
|
aws configure set aws_access_key_id $s3_key
|
|
aws configure set aws_secret_access_key $s3_secret
|
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "nightly" ]];
|
|
then
|
|
export S3_BUCKET=builds-parity-published;
|
|
else
|
|
export S3_BUCKET=builds-parity;
|
|
fi
|
|
aws s3 sync ./ s3://$S3_BUCKET/$CI_BUILD_REF_NAME/
|