From 3f62a7a594542943c71d39682132445a512692c7 Mon Sep 17 00:00:00 2001 From: Red Tail Date: Wed, 2 Jun 2021 13:38:44 -0400 Subject: [PATCH] Initial commit to enable RHEL-9 gating for stalld Resolves: rhbz#1966701 Signed-off-by: Mark Simmons msimmons@redhat.com --- gating.yaml | 6 ++++++ sources | 2 +- stalld.spec | 13 +++++++++---- tests/scripts/run_tests.sh | 21 +++++++++++++++++++++ tests/tests.yml | 11 +++++++++++ 5 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 gating.yaml create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6985029 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/sources b/sources index fd6e291..a223739 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (stalld-1.9.tar.xz) = f64d870b9f7883142289f1e92400733d39ff4f39550aa66663de49a230aceae54fc37bc175beda687ffc4316440425db39e1705e9ffd527672d5b4121200febb +SHA512 (stalld-1.10.tar.xz) = 839f63281ae637203135840fa1f3c8ce0ef5547463f65c9d0590237e801b96946eff21d1636549c57edfdf301adc392def24e0ccd6c43b6b2542166ec71a65a1 diff --git a/stalld.spec b/stalld.spec index 2a36ec3..d60ab45 100644 --- a/stalld.spec +++ b/stalld.spec @@ -1,6 +1,6 @@ Name: stalld -Version: 1.9 -Release: 2%{?dist} +Version: 1.10 +Release: 1%{?dist} Summary: Daemon that finds starving tasks and gives them a temporary boost License: GPLv2 @@ -51,8 +51,13 @@ allow 10 microseconds of runtime for 1 second of clock time. %systemd_postun_with_restart %{name}.service %changelog -* Fri Apr 16 2021 Mohan Boddu - 1.9-2 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Tue Apr 27 2021 Clark Williams - 1.10-1 +- utils: Fix bounds check on cpu and end_cpu variables +- stalld: Support denylisting of tasks in stalld +- src/utils: use right argument for warning printf + +* Wed Feb 17 2021 Clark Williams - 1.9-2 +- update to pick up latest gating test * Wed Feb 17 2021 Clark Williams - 1.9-1 - Set starvation threshold default to 30 seconds diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..3f34499 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,21 @@ +#!/usr/bin/bash + +# This will get uncommented once we have the rpm +# make sure we have stalld installed +if rpm -q --quiet stalld; then + : +else + sudo dnf install -y stalld + if [[ $? != 0 ]]; then + echo "install of stalld failed!" + exit 1 + fi +fi + +STALLD="/usr/bin/stalld" + +# See if stalld is installed and executable +$STALLD --help 2>> /dev/null +if [[ $? != 0 ]]; then + exit 2 +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6a5dc81 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts + run: ./run_tests.sh + required_packages: + - stalld