From f2e5029cdcb70779b70aba4ee6c37212a8320ac3 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 26 Nov 2026 04:00:34 +0000 Subject: automatic import of waas --- .gitignore | 1 + sources | 1 + waas.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 sources create mode 100644 waas.spec diff --git a/.gitignore b/.gitignore index e69de29..9bf49e4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/waas-25.3.T7.B083.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..c7c39e4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +f0db16f21355ebda7bc67cb02e4b2dc0 waas-25.3.T7.B083.tar.gz diff --git a/waas.spec b/waas.spec new file mode 100644 index 0000000..adce2a2 --- /dev/null +++ b/waas.spec @@ -0,0 +1,59 @@ +# WAAS (Workload-Aware Application Scheduling) codeploy service. +# +# Upstream ships a flat Python application (src/*.py) with no setup.py or +# pyproject.toml, therefore it is packaged as an application rather than an +# importable library. The scripts import each other by bare module name, so +# they are installed together under /usr/libexec/waas and exposed through a +# small launcher in /usr/bin. +# +# Runtime note: src/metric_monitor.py imports the BoostKit "kperf" module, +# which is not shipped in the openEuler repositories; it is expected to be +# provided by the WAAS deployment environment. + +Name: waas +Version: 25.3.T7.B083 +Release: 1%{?dist} +Summary: WAAS codeploy service for workload-aware resource scheduling + +License: Apache-2.0 +URL: https://gitcode.com/boostkit/waas +Source0: https://gitcode.com/boostkit/waas/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +Requires: python3 +Requires: python3-psutil + +%description +WAAS (Workload-Aware Application Scheduling) codeploy is a DaemonSet-style +service that binds target processes to CPU cores, performs NUMA-aware +migration and enforces cgroup / resctrl resource restrictions on nodes. +This package provides the waas_codeploy Python service and its helper +modules. + +%prep +%autosetup -n %{name}-%{version} + +%build +# Pure Python application: nothing to compile. + +%install +install -d %{buildroot}%{_libexecdir}/%{name} +install -m 0644 src/*.py %{buildroot}%{_libexecdir}/%{name}/ + +install -d %{buildroot}%{_bindir} +cat > %{buildroot}%{_bindir}/waas_codeploy << 'EOF' +#!/bin/sh +exec python3 %{_libexecdir}/waas/waas_codeploy.py "$@" +EOF +chmod 0755 %{buildroot}%{_bindir}/waas_codeploy + +%files +%license LICENSE +%doc README.md README.en.md +%{_libexecdir}/%{name}/ +%{_bindir}/waas_codeploy + +%changelog +* Thu Nov 26 2026 Python_Bot - 25.3.T7.B083-1 +- Initial package -- cgit v1.2.3