Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use find cmd instead of static path for finding goss-server pids #607

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion goss-testing/automated/dst-ct-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ set_vars() {
export GOSS_BASE="/opt/cray/tests/install/ncn"
fi
# The cgroups file that contains the pids of the goss suites/vars that are linked to an http endpoint
GOSS_CGROUPS="/sys/fs/cgroup/systemd/system.slice/goss-servers.service/cgroup.procs"
GOSS_CGROUPS="$(find /sys/fs/cgroup -path '*/goss-servers.service/cgroup.procs' -type f)"
# The CSM version is needed for the DST pipeline for showing the version of the product the test ran on in the dashboard
CSM_VER="$(kubectl -n services get cm cray-product-catalog -o jsonpath='{.data.csm}' | yq r -j - | jq -r 'keys[]' | sed '/-/!{s/$/_/}' | sort -V | sed 's/_$//' | head -n1)"
# The DST-compatible results file (see https://github.hpe.com/hpe/hpc-dst-ct-results-api/blob/master/docs/usage/getting-started.md#quick-start)
Expand Down