Skip to content

Commit

Permalink
atom nightly job add
Browse files Browse the repository at this point in the history
Signed-off-by: Barak Davidov <[email protected]>
  • Loading branch information
barakda committed Jan 27, 2025
1 parent cbb9920 commit 787cec6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CEPH_SHA=latest
CEPH_DEVEL_MGR_PATH=../ceph

# Atom
ATOM_SHA=9db69766f40020a2c2aa20ce795e3cedad0139d0
ATOM_SHA=dd58266c11749e779c860b3b9d3ea2c731ea54a5

# Demo settings
RBD_POOL=rbd
Expand Down
48 changes: 32 additions & 16 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ jobs:
atom:
needs: [build, build-ceph]
if: github.repository == 'ceph/ceph-nvmeof'
if: github.repository == 'ceph/ceph-nvmeof' && github.event_name == 'schedule'
runs-on: atomRunner
steps:
- name: Checkout code
Expand All @@ -666,37 +666,53 @@ jobs:
merge-multiple: true

- name: Cluster build and Atom tests run
if: always() && github.event_name != 'schedule'
if: always()
run: |
. .env
ACTION_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
./tests/atom/clusterBuildTestsRun.sh $NVMEOF_VERSION $CEPH_SHA $ATOM_SHA $ACTION_URL
- name: Cluster build and Atom nightly tests run
if: always() && github.event_name == 'schedule'
run: |
. .env
ACTION_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
./tests/atom/clusterBuildTestsRun.sh $NVMEOF_VERSION $CEPH_SHA $ATOM_SHA $ACTION_URL 'nightly'
- name: Atom artifact build
if: always() && github.event_name != 'schedule'
if: always()
run: ./tests/atom/cpArtifactAndCleanup.sh

- name: Atom artifact build nightly
if: always() && github.event_name == 'schedule'
run: ./tests/atom/cpArtifactAndCleanup.sh 'nightly'

- name: Upload artifact for non-schedule events
uses: actions/upload-artifact@v4
if: always() && github.event_name != 'schedule'
if: always()
with:
name: atom-artifact
path: /home/cephnvme/artifact_m6.tar.gz

atom-nightly:
needs: [build, build-ceph]
if: github.repository == 'ceph/ceph-nvmeof' && github.event_name != 'schedule'
runs-on: atomRunnerNightly
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download container images
uses: actions/download-artifact@v4
with:
pattern: container_images_nvmeof
merge-multiple: true

- name: Cluster build and Atom nightly tests run
if: always()
run: |
. .env
ACTION_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
./tests/atom/clusterBuildTestsRun.sh $NVMEOF_VERSION $CEPH_SHA $ATOM_SHA $ACTION_URL 'nightly'
- name: Atom artifact build nightly
if: always()
run: ./tests/atom/cpArtifactAndCleanup.sh 'nightly'

- name: Upload artifact for schedule events
uses: actions/upload-artifact@v4
if: always() && github.event_name == 'schedule'
if: always()
with:
name: atom-artifact
path: /home/cephnvme/artifact_m7.tar.gz
Expand Down
8 changes: 4 additions & 4 deletions tests/atom/clusterBuildTestsRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ set -e

VERSION=$1
if [ "$2" = "latest" ]; then
# CEPH_SHA=$(curl -s https://shaman.ceph.com/api/repos/ceph/main/latest/centos/9/ | jq -r ".[] | select(.archs[] == \"$(uname -m)\" and .status == \"ready\") | .sha1")
CEPH_SHA=b5c07ab4f77bffd19c88ef47141176982670de94
CEPH_SHA=$(curl -s https://shaman.ceph.com/api/repos/ceph/main/latest/centos/9/ | jq -r ".[] | select(.archs[] == \"$(uname -m)\" and .status == \"ready\") | .sha1")
else
CEPH_SHA=$2
fi
Expand All @@ -19,7 +18,7 @@ NIGHTLY=$5

RUNNER_FOLDER='/home/cephnvme/actions-runner-ceph'
BUSY_FILE='/home/cephnvme/busyServer.txt'
RUNNER_NIGHTLY_FOLDER='/home/cephnvme/actions-runner-ceph-nightly'
RUNNER_NIGHTLY_FOLDER='/home/cephnvme/actions-runner-ceph-m7'
BUSY_NIGHTLY_FILE='/home/cephnvme/busyServerNightly.txt'

check_cluster_busy() {
Expand Down Expand Up @@ -120,7 +119,7 @@ else
--subsystem-num=118 \
--ns-num=8 \
--subsystem-max-ns-num=1024 \
--failover-num=10 \
--failover-num=6 \
--failover-num-after-upgrade=2 \
--rbd-size=200M \
--seed=0 \
Expand All @@ -138,6 +137,7 @@ else
--journalctl-to-console \
--dont-power-off-cloud-vms \
--dont-use-hugepages \
--skip-lb-group-change-test \
--concise-output \
--ibm-cloud-key=nokey \
--github-nvmeof-token=nokey \
Expand Down

0 comments on commit 787cec6

Please sign in to comment.