mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
[ci] Weights PR for master and client on cumulus (#1553)
* [ci] Weights PR for master and client on cumulus * add 4th pr creation to benchmarks-statemint * rename benchmarks-statemint to benchmarks-assets
This commit is contained in:
committed by
GitHub
parent
52d1473da4
commit
03157b70e9
+20
-5
@@ -326,7 +326,7 @@ benchmarks-build:
|
|||||||
- git commit -m "[benchmarks] pr with weights"
|
- git commit -m "[benchmarks] pr with weights"
|
||||||
- git push origin $BRANCHNAME
|
- git push origin $BRANCHNAME
|
||||||
|
|
||||||
benchmarks-statemint:
|
benchmarks-assets:
|
||||||
stage: benchmarks-run
|
stage: benchmarks-run
|
||||||
before_script:
|
before_script:
|
||||||
- *rust-info-script
|
- *rust-info-script
|
||||||
@@ -339,9 +339,24 @@ benchmarks-statemint:
|
|||||||
- ./scripts/benchmarks-ci.sh assets westmint ./artifacts
|
- ./scripts/benchmarks-ci.sh assets westmint ./artifacts
|
||||||
- export BRANCHNAME="weights-statemint-${CI_COMMIT_BRANCH}"
|
- export BRANCHNAME="weights-statemint-${CI_COMMIT_BRANCH}"
|
||||||
- *git-commit-push
|
- *git-commit-push
|
||||||
# create PR
|
# create PR to release-parachains-v* branch
|
||||||
- curl -u ${GITHUB_USER}:${GITHUB_TOKEN}
|
- curl -u ${GITHUB_USER}:${GITHUB_TOKEN}
|
||||||
-d '{"title":"[benchmarks] Update weights for statemine/t","body":"This PR is generated automatically by CI.","head":"'$BRANCHNAME'","base":"'${CI_COMMIT_BRANCH}'"}'
|
-d '{"title":"[benchmarks] Update weights for statemine/t","body":"This PR is generated automatically by CI.","head":"'${BRANCHNAME}'","base":"'${CI_COMMIT_BRANCH}'"}'
|
||||||
|
-X POST https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls
|
||||||
|
# create PR to master
|
||||||
|
- curl -u ${GITHUB_USER}:${GITHUB_TOKEN}
|
||||||
|
-d '{"title":"[benchmarks] Update weights for statemine/t","body":"This PR is generated automatically by CI.","head":"'${BRANCHNAME}'","base":"master"}'
|
||||||
|
-X POST https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls
|
||||||
|
# create PR to a branch with version number (e.g. v0.9.270) and release-v* (e.g. release-v0.9.270)
|
||||||
|
# transform release-parachains-v9270 to v0.9.270
|
||||||
|
- export BASEBRANCH=$(echo ${CI_COMMIT_BRANCH} | cut -d "-" -f 3 | sed -e "s/\(.\)\(.\)\(...\)/\10.\2.\3/")
|
||||||
|
# create PR to v* branch
|
||||||
|
- curl -u ${GITHUB_USER}:${GITHUB_TOKEN}
|
||||||
|
-d '{"title":"[benchmarks] Update weights for statemine/t","body":"This PR is generated automatically by CI.","head":"'${BRANCHNAME}'","base":"'${BASEBRANCH}'"}'
|
||||||
|
-X POST https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls
|
||||||
|
# create PR to release-v* branch
|
||||||
|
- curl -u ${GITHUB_USER}:${GITHUB_TOKEN}
|
||||||
|
-d '{"title":"[benchmarks] Update weights for statemine/t","body":"This PR is generated automatically by CI.","head":"'${BRANCHNAME}'","base":"'release-${BASEBRANCH}'"}'
|
||||||
-X POST https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls
|
-X POST https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls
|
||||||
after_script:
|
after_script:
|
||||||
- rm -rf .git/config
|
- rm -rf .git/config
|
||||||
@@ -368,13 +383,13 @@ benchmarks-collectives:
|
|||||||
tags:
|
tags:
|
||||||
- weights
|
- weights
|
||||||
|
|
||||||
publish-benchmarks-statemint-s3: &publish-benchmarks
|
publish-benchmarks-assets-s3: &publish-benchmarks
|
||||||
stage: publish
|
stage: publish
|
||||||
<<: *kubernetes-env
|
<<: *kubernetes-env
|
||||||
image: paritytech/awscli:latest
|
image: paritytech/awscli:latest
|
||||||
<<: *benchmarks-refs
|
<<: *benchmarks-refs
|
||||||
needs:
|
needs:
|
||||||
- job: benchmarks-statemint
|
- job: benchmarks-assets
|
||||||
artifacts: true
|
artifacts: true
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|||||||
Reference in New Issue
Block a user