Skip to content

Commit

Permalink
add debug action
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Sep 9, 2024
1 parent 0f2f9c5 commit 97b31c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/e2e-deleteme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
jobs:
run-e2e-tests:
name: Run E2E Tests
runs-on: [self-hosted, linux, X64, jammy, large]
runs-on: ubuntu-latest
strategy:
matrix:
ginkgo_focus:
Expand All @@ -21,6 +21,10 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
- name: Install requirements
run: |
sudo apt install make
Expand Down
11 changes: 7 additions & 4 deletions hack/ci-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ function check_required_env_vars {
required_env_vars+=("AWS_REGION" "AWS_ACCESS_KEY_ID" "AWS_SECRET_ACCESS_KEY")
fi

set +x
for var in "${required_env_vars[@]}"; do
if [ -z "${!var}" ]; then
error_exit "Missing required environment variable: $var"
fi
done
set -x
}

function exec_in_container {
Expand Down Expand Up @@ -100,10 +102,11 @@ function configure_container_env {

# Main installation and configuration
function setup_management_cluster {
sleep 5
exec_in_container "snap install k8s --classic --edge"
sleep 1
exec_in_container "snap install go --classic"
until exec_in_container true; do
sleep 1
done
exec_in_container "sudo snap install k8s --classic --edge"
exec_in_container "sudo snap install go --classic"
exec_in_container "mkdir -p /root/.kube"
exec_in_container "sudo k8s bootstrap"
exec_in_container "sudo k8s status --wait-ready"
Expand Down

0 comments on commit 97b31c2

Please sign in to comment.