test
Some checks failed
Global Runner Check / test-valgrind (push) Successful in 0s
Global Runner Check / test-linux (push) Successful in 0s
Infrastructure Stress Test / memory-analysis (push) Failing after 8s
Infrastructure Stress Test / parallel-builds (1) (push) Failing after 6s
Infrastructure Stress Test / parallel-builds (2) (push) Failing after 5s
Infrastructure Stress Test / parallel-builds (3) (push) Failing after 3s
Infrastructure Stress Test / parallel-builds (4) (push) Failing after 2s
Infrastructure Stress Test / parallel-builds (5) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (6) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (7) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (8) (push) Failing after 1s
Some checks failed
Global Runner Check / test-valgrind (push) Successful in 0s
Global Runner Check / test-linux (push) Successful in 0s
Infrastructure Stress Test / memory-analysis (push) Failing after 8s
Infrastructure Stress Test / parallel-builds (1) (push) Failing after 6s
Infrastructure Stress Test / parallel-builds (2) (push) Failing after 5s
Infrastructure Stress Test / parallel-builds (3) (push) Failing after 3s
Infrastructure Stress Test / parallel-builds (4) (push) Failing after 2s
Infrastructure Stress Test / parallel-builds (5) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (6) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (7) (push) Failing after 1s
Infrastructure Stress Test / parallel-builds (8) (push) Failing after 1s
This commit is contained in:
32
.gitea/workflows/heavy_test.yaml
Normal file
32
.gitea/workflows/heavy_test.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: "Infrastructure Stress Test"
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
parallel-builds:
|
||||
runs-on: linux
|
||||
strategy:
|
||||
matrix:
|
||||
task_id: [1, 2, 3, 4, 5, 6, 7, 8]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Compile with Clang 21
|
||||
run: clang++ -std=c++23 -O2 main.cpp -o app_${{ matrix.task_id }}
|
||||
|
||||
- name: Run intensive calculation
|
||||
run: ./app_${{ matrix.task_id }}
|
||||
|
||||
memory-analysis:
|
||||
runs-on: valgrind
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build for Debug
|
||||
run: clang++ -std=c++23 -g -O0 main.cpp -o app_debug
|
||||
|
||||
- name: Valgrind Memcheck
|
||||
run: |
|
||||
valgrind --leak-check=full \
|
||||
--show-leak-kinds=all \
|
||||
--error-exitcode=1 \
|
||||
./app_debug
|
||||
23
main.cpp
Normal file
23
main.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
|
||||
void stress_test() {
|
||||
std::cout << "Starting computational task..." << std::endl;
|
||||
|
||||
auto data = std::make_unique<std::vector<int>>(1000000);
|
||||
std::iota(data->begin(), data->end(), 1);
|
||||
|
||||
long long sum = 0;
|
||||
for (int i : *data) {
|
||||
sum += i;
|
||||
}
|
||||
|
||||
std::cout << "Sum calculated: " << sum << std::endl;
|
||||
}
|
||||
|
||||
int main() {
|
||||
stress_test();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user