Skip to content
Draft
Show file tree
Hide file tree
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 .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ jobs:
run_e2e:
if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'e2e/run' }}
name: Run E2E tests
runs-on: ubuntu-latest
runs-on: [self-hosted, regular]
needs:
- dev_setup_build
- set_e2e_requirement_status
Expand Down
119 changes: 66 additions & 53 deletions .github/workflows/nightly_e2e_tests_ceph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defaults:

jobs:
show_dev_manifest:
runs-on: ubuntu-latest
runs-on: [self-hosted, regular]
name: Run e2e
steps:
- uses: actions/checkout@v4
Expand All @@ -44,19 +44,32 @@ jobs:

- name: Install Task
uses: arduino/setup-task@v2

- uses: azure/setup-kubectl@v4
id: install

- name: Install ginkgo
working-directory: ./tests/e2e/
run: |
echo "Install ginkgo"
GINKGO_VERSION=$(go list -f '{{.Version}}' -m github.com/onsi/ginkgo/v2)
go install "github.com/onsi/ginkgo/v2/ginkgo@${GINKGO_VERSION}"

- name: Install Deckhouse-cli
run: |
echo "Install d8"
curl -fsSL -o d8-install.sh https://raw.githubusercontent.com/deckhouse/deckhouse-cli/main/d8-install.sh
bash d8-install.sh

- name: Setup d8
uses: werf/trdl/actions/[email protected]
with:
repo: d8
url: https://deckhouse.ru/downloads/deckhouse-cli-trdl/
root-version: 1
root-sha512: 343bd5f0d8811254e5f0b6fe292372a7b7eda08d276ff255229200f84e58a8151ab2729df3515cb11372dc3899c70df172a4e54c8a596a73d67ae790466a0491
group: 0
channel: stable

# - name: Install Deckhouse-cli
# run: |
# echo "Install d8"
# curl -fsSL -o d8-install.sh https://raw.githubusercontent.com/deckhouse/deckhouse-cli/main/d8-install.sh
# bash d8-install.sh

- uses: azure/k8s-set-context@v4
with:
Expand All @@ -76,49 +89,49 @@ jobs:
run: |
task run:ci -v

- uses: actions/upload-artifact@v4
if: always()
with:
name: resources_from_failed_tests
path: /tmp/e2e_failed__*
if-no-files-found: ignore

- name: Save results
working-directory: ./tests/e2e/
if: always()
run: |
if [ -z "$SUMMARY" ]; then
SUMMARY=$(jq -n \
--arg csi "$CSI" \
--arg date "$DATE" \
--arg startTime "$START_TIME" \
--arg branch "$GITHUB_REF_NAME" \
--arg status ":question: UNKNOWN" \
--arg link "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
'{
CSI: $csi,
Date: $date,
StartTime: $startTime,
Branch: $branch,
Status: $status,
Link: $link
}'
)
fi
echo $SUMMARY

hash=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32 | md5sum | awk '{print $1}')

kubectl apply --filename - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: "end-to-end-tests-report-$STORAGE_CLASS_NAME-$DATE-${hash:0:8}"
namespace: default
labels:
storageClass: "$STORAGE_CLASS_NAME"
type: Opaque
stringData:
summary: |
$(echo "$SUMMARY" | sed 's/^/ /')
EOF
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: resources_from_failed_tests
# path: /tmp/e2e_failed__*
# if-no-files-found: ignore

# - name: Save results
# working-directory: ./tests/e2e/
# if: always()
# run: |
# if [ -z "$SUMMARY" ]; then
# SUMMARY=$(jq -n \
# --arg csi "$CSI" \
# --arg date "$DATE" \
# --arg startTime "$START_TIME" \
# --arg branch "$GITHUB_REF_NAME" \
# --arg status ":question: UNKNOWN" \
# --arg link "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
# '{
# CSI: $csi,
# Date: $date,
# StartTime: $startTime,
# Branch: $branch,
# Status: $status,
# Link: $link
# }'
# )
# fi
# echo $SUMMARY

# hash=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32 | md5sum | awk '{print $1}')

# kubectl apply --filename - <<EOF
# apiVersion: v1
# kind: Secret
# metadata:
# name: "end-to-end-tests-report-$STORAGE_CLASS_NAME-$DATE-${hash:0:8}"
# namespace: default
# labels:
# storageClass: "$STORAGE_CLASS_NAME"
# type: Opaque
# stringData:
# summary: |
# $(echo "$SUMMARY" | sed 's/^/ /')
# EOF
2 changes: 1 addition & 1 deletion .github/workflows/nightly_e2e_tests_replicated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defaults:

jobs:
show_dev_manifest:
runs-on: ubuntu-latest
runs-on: [self-hosted, regular]
name: Run e2e
steps:
- uses: actions/checkout@v4
Expand Down
Loading