Skip to content

cgroup v2 CPU & memory stats for correct chart generation (#65) #423

cgroup v2 CPU & memory stats for correct chart generation (#65)

cgroup v2 CPU & memory stats for correct chart generation (#65) #423

Workflow file for this run

name: main CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_test_with_prometheus_support:
runs-on: ubuntu-latest
steps:
# install deps
- uses: actions/checkout@v4
- name: install debian-packaged dependencies
run: sudo apt install -y libgtest-dev libbenchmark-dev libfmt-dev tidy git python3 python3-dateutil python3-pip
# NOTE: prometheus-cpp & its dependencies wants at least Conan 1.51.0
- name: install pypi-packaged dependencies
run: sudo pip3 install pytest 'black==22.8.0' 'conan==1.60.2'
# NOTE: since we later run "make" using the normal "builder" user, we must use Conan using that same user (so avoid the "sudo"!!)
- name: install Conan-packaged dependencies
run: |
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
conan install conanfile.txt --build=missing
# build & test
- name: check Python formatting
run: make format_check
- name: build cmonitor (with Prometheus support)
run: make PROMETHEUS_SUPPORT=1
- name: run unit tests
run: make test PROMETHEUS_SUPPORT=1
build_test_without_prometheus_support:
runs-on: ubuntu-latest
steps:
# install deps
- uses: actions/checkout@v4
- name: install debian-packaged dependencies
run: sudo apt install -y libgtest-dev libbenchmark-dev libfmt-dev tidy git python3 python3-dateutil python3-pip
- name: install pypi-packaged dependencies
run: sudo pip3 install pytest black
# build & test
- name: build cmonitor (with Prometheus support)
run: make PROMETHEUS_SUPPORT=0
- name: run unit tests
run: make test PROMETHEUS_SUPPORT=0