From 4e22049c9f61927b7d00823029f38fa5c13ee3de Mon Sep 17 00:00:00 2001 From: Anshuman Date: Mon, 3 Nov 2025 10:22:57 +0530 Subject: [PATCH] ceph-pull-requests-ppc64:Added support for ppc64 runners Signed-off-by: Anshuman --- ceph-make-check-periodic-ppc64/build/build | 59 ++++++++++ .../build/kill-tests | 32 ++++++ .../ceph-make-check-periodic-ppc64.yml | 101 ++++++++++++++++++ 3 files changed, 192 insertions(+) create mode 100644 ceph-make-check-periodic-ppc64/build/build create mode 100644 ceph-make-check-periodic-ppc64/build/kill-tests create mode 100644 ceph-make-check-periodic-ppc64/config/definitions/ceph-make-check-periodic-ppc64.yml diff --git a/ceph-make-check-periodic-ppc64/build/build b/ceph-make-check-periodic-ppc64/build/build new file mode 100644 index 000000000..b514fee42 --- /dev/null +++ b/ceph-make-check-periodic-ppc64/build/build @@ -0,0 +1,59 @@ +#!/bin/bash -ex + +docs_pr_only +container_pr_only +gha_pr_only +qa_pr_only +if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true || "$QA_ONLY" == true ]]; then + echo "Only the doc/, container/, qa/ or .github/ dir changed. No need to run make check." + exit 0 +fi + +NPROC=$(nproc) +NPMCACHE=${HOME}/npmcache +cat >.env </dev/null; then + # kill only if we've waited for a while + if test $seconds != 0; then + pgrep --pgroup $ctest_pgid + echo 'try harder' + kill -SIGKILL -- -"$ctest_pgid" + fi + else + echo 'killed' + break + fi +done diff --git a/ceph-make-check-periodic-ppc64/config/definitions/ceph-make-check-periodic-ppc64.yml b/ceph-make-check-periodic-ppc64/config/definitions/ceph-make-check-periodic-ppc64.yml new file mode 100644 index 000000000..464baf0b1 --- /dev/null +++ b/ceph-make-check-periodic-ppc64/config/definitions/ceph-make-check-periodic-ppc64.yml @@ -0,0 +1,101 @@ +- job: + block-downstream: false + block-upstream: false + builders: + - shell: + !include-raw-verbatim: + - ../../../scripts/build_utils.sh + - ../../../scripts/setup_container_runtime.sh + - ../../build/build + concurrent: true + disabled: false + name: ceph-make-check-periodic-ppc64 + node: 'ppc64 && (installed-os-noble || centos9)' + parameters: + - string: + name: ghprbPullId + description: "the GitHub pull id, like '72' in 'ceph/pull/72'" + default: origin/main + project-type: freestyle + properties: + - build-discarder: + artifact-days-to-keep: -1 + artifact-num-to-keep: -1 + days-to-keep: 15 + num-to-keep: 300 + - raw: + xml: | + + false + + - github: + url: https://github.com/ceph/ceph/ + - raw: + xml: | + + false + false + + quiet-period: '5' + retry-count: '3' + scm: + - git: + url: https://github.com/ceph/ceph.git + name: origin + branches: + - origin/pr/${{ghprbPullId}}/merge + refspec: +refs/pull/${{ghprbPullId}}/*:refs/remotes/origin/pr/${{ghprbPullId}}/* + skip-tag: true + shallow-clone: true + honor-refspec: true + timeout: 20 + wipe-workspace: true + triggers: + - timed: '@weekly' + publishers: + - cobertura: + report-file: "src/pybind/mgr/dashboard/frontend/coverage/cobertura-coverage.xml" + only-stable: "true" + health-auto-update: "false" + stability-auto-update: "false" + zoom-coverage-chart: "true" + source-encoding: "Big5" + targets: + - files: + healthy: 10 + unhealthy: 20 + failing: 30 + - method: + healthy: 10 + unhealthy: 20 + failing: 30 + - postbuildscript: + builders: + - role: SLAVE + build-on: + - ABORTED + build-steps: + - shell: + !include-raw-verbatim: + - ../../build/kill-tests + - xunit: + thresholds: + - failed: + unstable: 0 + unstablenew: 0 + failure: 0 + failurenew: 0 + types: + - ctest: + pattern: "build/Testing/**/Test.xml" + skip-if-no-test-files: true + wrappers: + - credentials-binding: + - username-password-separated: + credential-id: github-readonly-token + username: GITHUB_USER + password: GITHUB_PASS + - username-password-separated: + credential-id: dgalloway-docker-hub + username: DOCKER_HUB_USERNAME + password: DOCKER_HUB_PASSWORD