|
1 |
| -# Meshery SMP Action |
2 |
| -This repository is used for storing a GitHub action for performing SMP tests using Meshery |
| 1 | +# Meshery - SMP GitHub Action |
3 | 2 |
|
4 |
| -## Inputs |
5 |
| -```yaml |
6 |
| - # token to connect with the remote provider |
7 |
| - provider_token: |
8 |
| - description: "Provider token to use. NOTE: value of the 'token' key in auth.json" |
9 |
| - required: true |
| 3 | +GitHub Action to run SMP Performance Benchmarks on CI/CD pipelines. |
| 4 | + |
| 5 | +[Meshery](https://meshery.io/) is the canonical implementation of the [Service Mesh Performance specification](https://smp-spec.io/). |
| 6 | + |
| 7 | +## Learn More |
| 8 | + |
| 9 | +- [Performance Management in Meshery](https://docs.meshery.io/functionality/performance-management) |
| 10 | +- [Guide: Running Performance Tests in Meshery](https://docs.meshery.io/guides/performance-management) |
| 11 | +- [Supported Service Meshes](https://docs.meshery.io/service-meshes) |
| 12 | + |
| 13 | +## Usage |
| 14 | + |
| 15 | +See [action.yml](action.yml) |
10 | 16 |
|
11 |
| - # platform to deploy meshery |
12 |
| - platform: |
13 |
| - description: "Platform to deploy meshery on. Possible values: docker, kubernetes" |
14 |
| - default: docker |
| 17 | +You can use this action by defining your test configuration in a performance profile in Meshery or write your test configurations in SMP compatible format ([see example](#smp-compatible-test-configuration-file)). |
15 | 18 |
|
16 |
| - # SUPPLY EITHER "profile_filename" or profile_name |
| 19 | +You can then pass in either of these to the action to run a performance test. |
17 | 20 |
|
18 |
| - # name of the file storing the performance profile (keep in .github) |
19 |
| - profile_filename: |
20 |
| - description: "Name of the file containing SMP profile" |
| 21 | +The results of the tests are updated on the Performance Management dashboard in Meshery. |
21 | 22 |
|
22 |
| - # name of the prformance profile to use |
23 |
| - profile_name: |
24 |
| - description: "Name of the performance profile" |
| 23 | +See [Performance Management with Meshery](https://docs.meshery.io/guides/performance-management) for detailed instructions on setting up Meshery and authenticating the GitHub Action. |
| 24 | + |
| 25 | +## SMP Compatible Test Configuration File |
| 26 | + |
| 27 | +```yaml |
| 28 | +smp_version: v0.0.1 |
| 29 | +id: |
| 30 | +name: Istio Performance Test |
| 31 | +labels: {} |
| 32 | +clients: |
| 33 | +- internal: false |
| 34 | + load_generator: fortio |
| 35 | + protocol: 1 |
| 36 | + connections: 2 |
| 37 | + rps: 10 |
| 38 | + headers: {} |
| 39 | + cookies: {} |
| 40 | + body: "" |
| 41 | + content_type: "" |
| 42 | + endpoint_urls: |
| 43 | + - http://localhost:2323/productpage |
| 44 | +duration: "30m" |
25 | 45 | ```
|
26 | 46 |
|
27 | 47 | ## Sample configuration
|
| 48 | +
|
28 | 49 | ```yaml
|
29 |
| -name: Testing SMP action |
| 50 | +name: Meshery SMP Action |
30 | 51 | on:
|
31 | 52 | push:
|
32 | 53 | branches:
|
33 |
| - 'perf' |
| 54 | + 'master' |
34 | 55 |
|
35 | 56 | jobs:
|
36 |
| - job1: |
37 |
| - name: Run Performance Test |
| 57 | + performance-test: |
| 58 | + name: Performance Test |
38 | 59 | runs-on: ubuntu-latest
|
39 | 60 | steps:
|
40 | 61 | - name: checkout
|
41 | 62 | uses: actions/checkout@v2
|
42 | 63 | with:
|
43 | 64 | ref: 'perf'
|
44 | 65 |
|
45 |
| - - name: Deploy k8s |
| 66 | + - name: Deploy k8s-minikube |
46 | 67 | uses: manusa/actions-setup-minikube@v2.4.1
|
47 | 68 | with:
|
48 | 69 | minikube version: 'v1.21.0'
|
49 | 70 | kubernetes version: 'v1.20.7'
|
50 | 71 | driver: docker
|
51 | 72 |
|
52 |
| - - name: Performance test |
| 73 | + - name: Run Performance Test |
53 | 74 | uses: layer5io/meshery-smp-action@master
|
54 | 75 | with:
|
55 | 76 | provider_token: ${{ secrets.PROVIDER_TOKEN }}
|
56 | 77 | platform: docker
|
57 |
| - profile_name: demo |
| 78 | + profile_name: istio-soak-test |
58 | 79 | ```
|
59 | 80 |
|
60 |
| -<div> </div> |
61 |
| -
|
62 | 81 | ## Join the service mesh community!
|
63 | 82 |
|
64 | 83 | <a name="contributing"></a><a name="community"></a>
|
|
0 commit comments