diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f607c25b82..f59ab950df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,7 +103,7 @@ jobs: - name: Generate coverage report run: | go test ./... -coverprofile=coverage.out -covermode=atomic -timeout=20m - - uses: codecov/codecov-action@v5.1.1 + - uses: codecov/codecov-action@v5.1.2 with: files: ./coverage.out flags: unit-tests diff --git a/.github/workflows/dispatch-baremetal.yml b/.github/workflows/dispatch-baremetal.yml index 84bf19fe1f..e8030dc3c1 100644 --- a/.github/workflows/dispatch-baremetal.yml +++ b/.github/workflows/dispatch-baremetal.yml @@ -22,6 +22,17 @@ on: options: - paseo - westend + instance: + description: 'Instance' + required: true + default: '' + type: choice + options: + - hetzner-gossamer-westend + - hetzner-gossamer-westend-2 + - hetzner-gossamer-paseo + - hetzner-gossamer-paseo-2 + - hetzner-gossamer-polkadot gossamerStartArgs: description: 'Arguments' required: false @@ -50,6 +61,7 @@ jobs: "commit": "${{ github.event.inputs.commit }}", "nodeType": "${{ github.event.inputs.nodeType }}", "chain": "${{ github.event.inputs.chain }}", + "instance": "${{ github.event.inputs.instance }}", "gossamerStartArgs": "${{ github.event.inputs.gossamerStartArgs }}" } } diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml deleted file mode 100644 index f2aadc34b1..0000000000 --- a/.github/workflows/staging.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: staging -on: - push: - branches: - - staging - -jobs: - update: - strategy: - matrix: - chain: [polkadot, kusama, westend] - runs-on: buildjet-4vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v2 - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: gossamer-${{ matrix.chain }} - IMAGE_TAG: ${{ github.sha }} - CHAIN: ${{ matrix.chain }} - DD_API_KEY: ${{ secrets.DD_API_KEY }} - run: | - docker build -f=Dockerfile.staging . --progress=plain -t=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg chain=$CHAIN --build-arg DD_API_KEY=$DD_API_KEY - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Render Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: .github/workflows/staging/${{ matrix.chain }}-taskdef.json - container-name: gossamer-${{ matrix.chain }} - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v2 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: gossamer-${{ matrix.chain }}-svc - cluster: gossamer-stg - wait-for-service-stability: true diff --git a/.github/workflows/staging/kusama-taskdef.json b/.github/workflows/staging/kusama-taskdef.json deleted file mode 100644 index 3bbc41b41c..0000000000 --- a/.github/workflows/staging/kusama-taskdef.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "containerDefinitions": [ - { - "logConfiguration": { - "logDriver": "awslogs", - "options": { - "awslogs-group": "gossamer-staging-CWLogsGroup-wPH0S1xHYmq7", - "awslogs-region": "us-east-2", - "awslogs-stream-prefix": "ecs" - } - }, - "portMappings": [ - { - "containerPort": 7001, - "protocol": "tcp" - }, - { - "containerPort": 8546, - "protocol": "tcp" - }, - { - "containerPort": 8540, - "protocol": "tcp" - }, - { - "containerPort": 6060, - "protocol": "tcp" - } - ], - "environment": [], - "image": "500822580415.dkr.ecr.us-east-2.amazonaws.com/gossamer-kusama", - "essential": true, - "name": "gossamer-kusama" - } - ], - "placementConstraints": [ - { - "type": "memberOf", - "expression": "attribute:ecs.availability-zone==us-east-2a" - } - ], - "memory": "12288", - "family": "gossamer-kusama", - "networkMode": "host", - "requiresCompatibilities": [ - "EC2" - ], - "cpu": "4096" -} \ No newline at end of file diff --git a/.github/workflows/staging/openmetrics.d/kusama-conf.yaml b/.github/workflows/staging/openmetrics.d/kusama-conf.yaml deleted file mode 100644 index 5b2d2f8b85..0000000000 --- a/.github/workflows/staging/openmetrics.d/kusama-conf.yaml +++ /dev/null @@ -1,486 +0,0 @@ -## All options defined here are available to all instances. -# -init_config: - - ## @param proxy - mapping - optional - ## Set HTTP or HTTPS proxies for all instances. Use the `no_proxy` list - ## to specify hosts that must bypass proxies. - ## - ## The SOCKS protocol is also supported like so: - ## - ## socks5://user:pass@host:port - ## - ## Using the scheme `socks5` causes the DNS resolution to happen on the - ## client, rather than on the proxy server. This is in line with `curl`, - ## which uses the scheme to decide whether to do the DNS resolution on - ## the client or proxy. If you want to resolve the domains on the proxy - ## server, use `socks5h` as the scheme. - # - # proxy: - # http: http://: - # https: https://: - # no_proxy: - # - - # - - - ## @param skip_proxy - boolean - optional - default: false - ## If set to `true`, this makes the check bypass any proxy - ## settings enabled and attempt to reach services directly. - # - # skip_proxy: false - - ## @param timeout - number - optional - default: 10 - ## The timeout for connecting to services. - # - # timeout: 10 - - ## @param service - string - optional - ## Attach the tag `service:` to every metric, event, and service check emitted by this integration. - ## - ## Additionally, this sets the default `service` for every log source. - # - # service: - -## Every instance is scheduled independent of the others. -# -instances: - - ## @param prometheus_url - string - required - ## The URL where your application metrics are exposed by Prometheus. - # - - prometheus_url: http://127.0.0.1:9876/metrics - - ## @param namespace - string - required - ## The namespace to be prepended to all metrics. - # - namespace: gossamer.staging.kusama - - ## @param metrics - (list of string or mapping) - required - ## List of metrics to be fetched from the prometheus endpoint, if there's a - ## value it'll be renamed. This list should contain at least one metric. - # - metrics: - - gossamer_* - - go_* - - ## @param prometheus_metrics_prefix - string - optional - ## Removes a given from exposed Prometheus metrics. - # - # prometheus_metrics_prefix: _ - - ## @param health_service_check - boolean - optional - default: true - ## Send a service check reporting about the health of the Prometheus endpoint. - ## The service check is named .prometheus.health - # - # health_service_check: true - - ## @param label_to_hostname - string - optional - ## Override the hostname with the value of one label. - # - # label_to_hostname: