-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: odubajDT <[email protected]>
- Loading branch information
Showing
23 changed files
with
2,237 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: load-tests | ||
on: | ||
push: | ||
branches: [main] | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+*" | ||
paths-ignore: | ||
- "**/README.md" | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup-environment: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "~1.22.6" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Cache Go | ||
id: go-cache | ||
timeout-minutes: 5 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/go/bin | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: loadtest-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install Dependencies | ||
run: make gomoddownload | ||
|
||
- name: Install Tools | ||
run: make install-tools | ||
|
||
- run: make oteltestbedcol | ||
|
||
- name: Upload Testbed Binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testbed-binaries | ||
path: ./bin/* | ||
|
||
loadtest: | ||
runs-on: ubuntu-22.04 | ||
needs: [setup-environment] | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "~1.22.6" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Cache Go | ||
id: go-cache | ||
timeout-minutes: 5 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/go/bin | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: loadtest-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install Dependencies | ||
run: make gomoddownload | ||
|
||
- name: Install Tools | ||
run: make install-tools | ||
|
||
- name: Cerate results folder | ||
run: mkdir -p results && touch results/TESTRESULTS.md | ||
|
||
- name: Download Testbed Binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: testbed-binaries | ||
path: bin/ | ||
|
||
- name: make Testbet Binaries executable | ||
run: chmod +x bin/* | ||
|
||
- name: Loadtest | ||
run: make run-load-tests | ||
|
||
# - name: Create Test Result Archive | ||
# if: ${{ failure() || success() }} | ||
# continue-on-error: true | ||
# run: tar -cvf test_results_load-tests.tar internal/testbed/load/tests/results | ||
|
||
# - name: Upload Test Results | ||
# if: ${{ failure() || success() }} | ||
# continue-on-error: true | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: test-result-archive-load-tests | ||
# path: ./*.tar | ||
|
||
# - run: cp testbed/tests/results/benchmarks.json testbed/tests/results/load-tests.json | ||
|
||
# - name: Upload benchmarks.json | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: benchmark-results-load-tests | ||
# path: testbed/tests/results/load-tests.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `oteltestbedcol` binary | ||
|
||
This folder contains the sources for the `oteltestbedcol` test binary. This binary is intended for **TEST PURPOSES ONLY**. The source files in this folder are **NOT** the ones used to build any official Dynatrace Collector releases. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.