-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
241 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
type: container | ||
|
||
artifactory: | ||
package_type: deb | ||
deploy_path: /ubuntu/24.04/amd64/pcp | ||
params: | ||
deb.distribution: noble | ||
deb.component: main | ||
deb.architecture: amd64 | ||
|
||
container: | ||
containerfile: | | ||
FROM docker.io/library/ubuntu:24.04 | ||
RUN apt-get update && apt-get install -y systemd sudo | ||
RUN useradd --create-home pcpbuild | ||
RUN echo 'pcpbuild ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/pcpbuild | ||
# allow services to be started during installation | ||
# pmcd will create the file /var/lib/pcp/pmns/stdpmid, which is required by QA tests | ||
RUN printf '#!/bin/sh\nexit 0\n' > /usr/sbin/policy-rc.d | ||
CMD ["/usr/bin/systemd"] | ||
tasks: | ||
setup: | | ||
sudo apt-get -y update | ||
pkgs=$(qa/admin/list-packages -m -v -x cpan -x pip3 -x not4ci) | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y $pkgs | ||
build: | | ||
./Makepkgs --nonrpm --verbose | ||
dpkg -I build/deb/pcp_*.deb | grep Depends | grep -q libuv1 | ||
copy_build_artifacts: | | ||
cp build/deb/*.deb ../artifacts/build | ||
install: | | ||
sudo dpkg -i build/deb/*.deb | ||
echo 'pcpqa ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/pcpqa | ||
init_qa: | | ||
sudo systemctl start redis | ||
sudo -i -u pcpqa ./check 002 | ||
qa_sanity: | | ||
set -o pipefail | ||
sudo -i -u pcpqa ./check -TT -g sanity -x not_in_ci -x not_in_container |& tee ../artifacts/test/test.log | ||
qa: | | ||
set -o pipefail | ||
DEFAULT_PCP_QA_ARGS="-x x11 -x remote -x not_in_ci -x not_in_container" | ||
sudo -i -u pcpqa ./check -TT ${PCP_QA_ARGS:-${DEFAULT_PCP_QA_ARGS}} |& tee ../artifacts/test/test.log | ||
copy_test_artifacts: | | ||
cp /var/lib/pcp/testsuite/check.timings ../artifacts/test | ||
# add current timestamp if the last QA test got stuck | ||
[ $(awk 'END{print NF}' ../artifacts/test/check.timings) = 2 ] && date '+%s' >> ../artifacts/test/check.timings | ||
shopt -s nullglob | ||
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ../artifacts/test; [ -f ${test/.out.bad/.full} ] && cp ${test/.out.bad/.full} ../artifacts/test; done | ||
[ -x /var/lib/pcp/testsuite/admin/whatami ] && /var/lib/pcp/testsuite/admin/whatami >../artifacts/test/whatami |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# runs in a GitHub Actions VM, without container | ||
type: direct | ||
|
||
tasks: | ||
setup: | | ||
sudo apt-get -y update | ||
pkgs=$(qa/admin/list-packages -m -v -x cpan -x pip3 -x not4ci) | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y $pkgs | ||
build: | | ||
./Makepkgs --nonrpm --verbose | ||
dpkg -I build/deb/pcp_*.deb | grep Depends | grep -q libuv1 | ||
copy_build_artifacts: | | ||
cp build/deb/*.deb ../artifacts/build | ||
install: | | ||
sudo dpkg -i build/deb/*.deb | ||
echo 'pcpqa ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/pcpqa | ||
init_qa: | | ||
sudo systemctl start redis | ||
sudo -i -u pcpqa ./check 002 | ||
qa_sanity: | | ||
set -o pipefail | ||
sudo -i -u pcpqa ./check -TT -g sanity -x not_in_ci |& tee ../artifacts/test/test.log | ||
qa: | | ||
set -o pipefail | ||
DEFAULT_PCP_QA_ARGS="-x x11 -x remote -x not_in_ci" | ||
sudo -i -u pcpqa ./check -TT ${PCP_QA_ARGS:-${DEFAULT_PCP_QA_ARGS}} |& tee ../artifacts/test/test.log | ||
copy_test_artifacts: | | ||
cp /var/lib/pcp/testsuite/check.timings ../artifacts/test | ||
# add current timestamp if the last QA test got stuck | ||
[ $(awk 'END{print NF}' ../artifacts/test/check.timings) = 2 ] && date '+%s' >> ../artifacts/test/check.timings | ||
shopt -s nullglob | ||
for test in /var/lib/pcp/testsuite/*.out.bad; do cp $test ../artifacts/test; [ -f ${test/.out.bad/.full} ] && cp ${test/.out.bad/.full} ../artifacts/test; done | ||
[ -x /var/lib/pcp/testsuite/admin/whatami ] && /var/lib/pcp/testsuite/admin/whatami >../artifacts/test/whatami |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# PCP required package list for Ubuntu 22.04 x86_64 | ||
# | ||
Text::CSV_XS cpan | ||
apache2-bin | ||
auditd not4ci | ||
autoconf | ||
autotools-dev | ||
avahi-utils | ||
bash | ||
bc | ||
bind9-host | ||
bison | ||
bpfcc-tools | ||
bpftrace | ||
# see https://wiki.ubuntu.com/Debug%20Symbol%20Packages to set up repo | ||
# for this one ... | ||
bpftrace-dbgsym not4ci | ||
bsd-mailx | ||
build-essential | ||
chrpath | ||
coreutils | ||
Text::CSV_XS cpan | ||
cppcheck | ||
cron | ||
curl | ||
debhelper | ||
dh-python | ||
docker.io not4ci | ||
dpkg-dev | ||
ed | ||
expect | ||
flex | ||
g++ | ||
gawk | ||
gcc | ||
gdb | ||
gfs2-utils | ||
git | ||
grep | ||
iproute2 | ||
jq | ||
libavahi-common-dev | ||
libclass-dbi-perl | ||
libcmocka-dev | ||
libcoin-dev | ||
libdbd-mysql-perl | ||
libdbd-pg-perl | ||
libdevmapper-dev | ||
libextutils-autoinstall-perl | ||
libfile-slurp-perl | ||
libgl1-mesa-dri | ||
libibmad-dev | ||
libibumad-dev | ||
libicu74 | ||
libjson-perl | ||
liblist-moreutils-perl | ||
liblzma-dev | ||
libncurses-dev | ||
libnet-snmp-perl | ||
libperl5.38 | ||
libpfm4-dev | ||
libpython3-dev | ||
libpython3-stdlib | ||
libqt5svg5-dev | ||
libreadline-dev | ||
librrds-perl | ||
libsasl2-dev | ||
libsasl2-modules | ||
libsoqt520-dev | ||
libspreadsheet-read-perl | ||
libspreadsheet-readsxc-perl | ||
libspreadsheet-writeexcel-perl | ||
libspreadsheet-xlsx-perl | ||
libsqlite3-0 | ||
libssl-dev | ||
libsystemd-dev | ||
libtext-csv-xs-perl | ||
libtimedate-perl | ||
libuv1-dev | ||
libvirt-daemon | ||
libvirt-daemon-system | ||
libxml-libxml-perl | ||
libxml-tokeparser-perl | ||
libyaml-libyaml-perl | ||
linux-headers-`uname -r` not4ci | ||
lm-sensors | ||
make | ||
man-db | ||
mandoc | ||
mariadb-client | ||
memcached | ||
net-tools | ||
nmap | ||
openjdk-11-jre-headless | ||
openssl | ||
perl | ||
perl-modules-5.38 | ||
pkg-config | ||
postgresql-client-common | ||
psmisc | ||
pylint | ||
python3-all | ||
python3-all-dev | ||
python3-bpfcc | ||
python3-dev | ||
python3-elasticsearch | ||
python3-json-pointer | ||
python3-libvirt | ||
python3-lxml | ||
python3-minimal | ||
python3-openpyxl | ||
python3-pil | ||
python3-prometheus-client | ||
python3-psycopg2 | ||
python3-pymongo | ||
python3-pyodbc | ||
python3-requests | ||
python3-setuptools | ||
python3-six | ||
qtbase5-dev | ||
qtbase5-dev-tools | ||
qtchooser | ||
redis-redisearch | ||
redis-server | ||
redis-tools | ||
sasl2-bin | ||
sed | ||
smartmontools | ||
socat | ||
sysstat | ||
systemtap | ||
systemtap-sdt-dev | ||
time | ||
unbound | ||
valgrind | ||
xfsprogs | ||
xkb-data | ||
zfsutils-linux | ||
zlib1g-dev | ||
libbpf1 | ||
libbpf-dev | ||
clang | ||
llvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters