Skip to content

Commit

Permalink
chore: add scale test package
Browse files Browse the repository at this point in the history
In addition, add github workflow for releasing the scale test docker
images which is a prerequisite for the scale test.
  • Loading branch information
mkermani144 committed Apr 13, 2024
1 parent cbb02e4 commit 2163e1d
Show file tree
Hide file tree
Showing 14 changed files with 624 additions and 0 deletions.
File renamed without changes.
44 changes: 44 additions & 0 deletions .github/workflows/scale-test-docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Push Scale Test Docker Image
on:
push:
paths:
- 'packages/**'
- 'tests/scaling/**'

jobs:
build:
strategy:
matrix:
roles: [node, relay]

name: Build and Push Scale Test Docker Image
permissions: write-all
runs-on: ubuntu-latest

steps:
- name: Checkout the Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: rosen-bridge
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Metadata action
uses: docker/metadata-action@v5
id: meta
tags: latest
with:
images: ghcr.io/rosen-bridge/scale-test${{matrix.role}}

- name: Build and push ${{matrix.role}}
uses: docker/build-push-action@v4
with:
context: .
file: 'tests/scaling/src/${{matrix.role}}/Dockerfile'
push: true
tags: ${{ steps.meta.outputs.tags }}
1 change: 1 addition & 0 deletions tests/scaling/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
24 changes: 24 additions & 0 deletions tests/scaling/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions tests/scaling/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# RoseNet scaling test

## Table of contents

- [Introduction](#introduction)
- [Usage](#usage)

## Introduction

RoseNet scaling test

## Usage

You need to have [OpenTofu](https://opentofu.org/) installed. Then, after
[passing required variables](https://opentofu.org/docs/language/values/variables/#assigning-values-to-root-module-variables) (defined in [`variables.tf`](./variables.tf)),
run the following commands. It should complete with no errors.

```bash
tofu init
tofu apply
```

Finally run `tofu destroy` to destroy the infrastructure.
Loading

0 comments on commit 2163e1d

Please sign in to comment.