Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
CI: trigger simnet master and wait for status (#7899)
Browse files Browse the repository at this point in the history
* CI: trigger simnet master and wait for status

* chore: remove leftovers from chaosnet; remove flaming-fir deployment
  • Loading branch information
TriplEight authored Jan 14, 2021
1 parent d0b2e7d commit f1c6725
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 6,870 deletions.
77 changes: 25 additions & 52 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ stages:
- deploy
- flaming-fir

workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH

variables: &default-vars
GIT_STRATEGY: fetch
GIT_DEPTH: 100
Expand Down Expand Up @@ -70,11 +75,6 @@ default:
tags:
- linux-docker

workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH

.test-refs: &test-refs
rules:
- if: $CI_PIPELINE_SOURCE == "web"
Expand Down Expand Up @@ -158,7 +158,7 @@ test-prometheus-alerting-rules:
- .gitlab-ci.yml
- .maintain/monitoring/**/*
script:
- echo "promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml"
- promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml
- cat .maintain/monitoring/alerting-rules/alerting-rules.yaml | promtool test rules .maintain/monitoring/alerting-rules/alerting-rule-tests.yaml

#### stage: test
Expand Down Expand Up @@ -497,13 +497,13 @@ build-rust-doc:
DOCKERFILE: $PRODUCT.Dockerfile
IMAGE_NAME: docker.io/parity/$PRODUCT
before_script:
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
( echo "no docker credentials provided"; exit 1 )
script:
- cd ./artifacts/$PRODUCT/
- VERSION="$(cat ./VERSION)"
- echo "${PRODUCT} version = ${VERSION}"
- test -z "${VERSION}" && exit 1
script:
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
( echo "no docker credentials provided"; exit 1 )
- buildah bud
--format=docker
--build-arg VCS_REF="${CI_COMMIT_SHA}"
Expand All @@ -516,6 +516,7 @@ build-rust-doc:
- buildah info
- buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
- buildah push --format=v2s2 "$IMAGE_NAME:latest"
- buildah logout "$IMAGE_NAME"

publish-docker-substrate:
stage: publish
Expand All @@ -529,7 +530,6 @@ publish-docker-substrate:
<<: *docker-build-vars
PRODUCT: substrate
after_script:
- buildah logout "$IMAGE_NAME"
# only VERSION information is needed for the deployment
- find ./artifacts/ -depth -not -name VERSION -type f -delete

Expand All @@ -542,8 +542,6 @@ publish-docker-subkey:
variables:
<<: *docker-build-vars
PRODUCT: subkey
after_script:
- buildah logout "$IMAGE_NAME"

publish-s3-release:
stage: publish
Expand Down Expand Up @@ -614,6 +612,8 @@ publish-to-crates-io:
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
allow_failure: true

#### stage: deploy

deploy-prometheus-alerting-rules:
stage: deploy
needs:
Expand All @@ -640,52 +640,25 @@ deploy-prometheus-alerting-rules:
- .gitlab-ci.yml
- .maintain/monitoring/**/*

.validator-deploy: &validator-deploy
stage: flaming-fir
trigger-simnet:
stage: deploy
rules:
# .build-refs, but manual
- if: $CI_COMMIT_REF_NAME == "master"
when: manual
- if: $CI_PIPELINE_SOURCE == "web"
when: manual
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
when: manual
# this job runs only on nightly pipeline with the mentioned variable, against `master` branch
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly"
needs:
# script will fail if there is no artifacts/substrate/VERSION
- job: publish-docker-substrate
artifacts: true
image: parity/azure-ansible:v1
allow_failure: true
interruptible: true
tags:
- linux-docker

validator 1 4:
<<: *validator-deploy
script:
- ./.maintain/flamingfir-deploy.sh flamingfir-validator1

validator 2 4:
<<: *validator-deploy
script:
- ./.maintain/flamingfir-deploy.sh flamingfir-validator2

validator 3 4:
<<: *validator-deploy
script:
- ./.maintain/flamingfir-deploy.sh flamingfir-validator3

validator 4 4:
<<: *validator-deploy
script:
- ./.maintain/flamingfir-deploy.sh flamingfir-validator4
artifacts: false
trigger:
project: parity/simnet
branch: master
strategy: depend

#### stage: .post
#### stage: .post

check-labels:
stage: .post
image: paritytech/tools:latest
<<: *kubernetes-build
stage: .post
image: paritytech/tools:latest
<<: *kubernetes-build
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
script:
Expand Down
1 change: 0 additions & 1 deletion .maintain/chaostest/.eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .maintain/chaostest/.eslintrc.json

This file was deleted.

11 changes: 0 additions & 11 deletions .maintain/chaostest/.gitignore

This file was deleted.

90 changes: 0 additions & 90 deletions .maintain/chaostest/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions .maintain/chaostest/bin/run

This file was deleted.

3 changes: 0 additions & 3 deletions .maintain/chaostest/bin/run.cmd

This file was deleted.

Loading

0 comments on commit f1c6725

Please sign in to comment.