Skip to content

[cpu][windows]: compute total counters from individual stats to handle processor groups correctly #2952

[cpu][windows]: compute total counters from individual stats to handle processor groups correctly

[cpu][windows]: compute total counters from individual stats to handle processor groups correctly #2952

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
go-versions:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.versions.outputs.value }}
steps:
- id: versions
run: |
versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])')
echo "value=${versions}" >> $GITHUB_OUTPUT
test:
needs: go-versions
strategy:
fail-fast: false
matrix:
go-version: ${{fromJson(needs.go-versions.outputs.versions)}}
os:
- ubuntu-24.04
- ubuntu-22.04
- macos-26
- macos-15
- macos-15-intel
- macos-14
- windows-2025
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}
# psutil enables the *_Against_Psutil comparison tests; they skip
# when it is missing, so both steps are best-effort.
- name: Install Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.x"
continue-on-error: true
- name: Install psutil
# Pinned like the SHA-pinned actions above: the *_Against_Psutil
# tests are verified against this psutil version; bump deliberately
# after re-checking the comparisons.
run: python -m pip install psutil==7.2.2
continue-on-error: true
- name: Test
run: |
go test -coverprofile='coverage.out' -covermode=atomic ./...