From b5a93a9931e537687ba63dacb18d6bdd403640c2 Mon Sep 17 00:00:00 2001 From: Phoevos Kalemkeris Date: Thu, 17 Aug 2023 11:11:58 +0300 Subject: [PATCH 01/12] ci: Integrate Kubeflow UATs Signed-off-by: Phoevos Kalemkeris --- .github/workflows/full-bundle-tests.yaml | 56 +++++++++++++++++++++--- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 42eadfb1..39a7c19b 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -33,11 +33,35 @@ jobs: echo "MY_ADDONS=hostpath-storage ingress dns:$dns_server rbac registry metallb:'10.64.140.43-10.64.140.49,192.168.0.105-192.168.0.111'" >> $GITHUB_OUTPUT - - name: Install tools + - name: Setup Python run: | + echo "deb-src http://archive.ubuntu.com/ubuntu/ jammy main" | sudo tee -a /etc/apt/sources.list + sudo apt-get update -yqq - sudo apt-get install -yqq python3-pip - sudo --preserve-env=http_proxy,https_proxy,no_proxy pip3 install tox + sudo apt-get build-dep -yqq python3 + sudo apt-get install -yqq pkg-config + + sudo apt-get install -yqq build-essential gdb lcov pkg-config \ + libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ + libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ + lzma lzma-dev tk-dev uuid-dev zlib1g-dev + + curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash + + export PYENV_ROOT="$HOME/.pyenv" >> "$GITHUB_ENV" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" >> "$GITHUB_ENV" + + pyenv install 3.8.16 + pyenv global 3.8.16 + + # configure environment variables to be available in subsequent steps + echo "PYENV_ROOT=$PYENV_ROOT" >> "$GITHUB_ENV" + echo "PATH=$PATH" >> "$GITHUB_ENV" + + - name: Install tools + run: | + eval "$(pyenv init -)" + pip install tox sudo snap install charmcraft --classic sudo snap install firefox @@ -57,7 +81,7 @@ jobs: # - run: | # sudo cat /var/snap/microk8s/current/args/certs.d/docker.io/hosts.toml - - name: update credentials + - name: Update credentials run: | sg microk8s -c "cat >> /var/snap/microk8s/current/args/containerd-template.toml << EOF [plugins.\"io.containerd.grpc.v1.cri\".registry.configs.\"registry-1.docker.io\".auth] @@ -82,7 +106,7 @@ jobs: sg microk8s -c "mkdir -p ~/.kube" sg microk8s -c "microk8s config > ~/.kube/config" - - name: Install and bootstrap juju + - name: Install and bootstrap Juju run: | sudo snap install juju --classic --channel=2.9/stable sg microk8s -c 'juju bootstrap microk8s bundle-controller --model-default test-mode=true --model-default logging-config="=DEBUG" --agent-version="2.9.44" --debug --verbose' @@ -96,12 +120,14 @@ jobs: sudo sysctl fs.inotify.max_user_instances=1280 sudo sysctl fs.inotify.max_user_watches=655360 - - run: | + - name: Configure Juju model + run: | sg microk8s -c "juju add-model kubeflow --config default-series=focal --config automatically-retry-hooks=true" sg microk8s -c "juju model-config" sg microk8s -c "juju status" - - run: | + - name: Configure env for Gecko driver + run: | # required for gecko driver export XDG_RUNTIME_DIR="/run/user/$(id -u)" export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus" @@ -112,10 +138,22 @@ jobs: - name: Run bundle tests run: | + eval "$(pyenv init -)" export BUNDLE_TEST_PATH=${{ inputs.bundle-test-path }} export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} sg microk8s -c "tox -e full_bundle_tests -- ${{ inputs.bundle-source }}" + - name: Checkout Kubeflow UATs + run: | + git clone https://github.com/canonical/charmed-kubeflow-uats.git ~/charmed-kubeflow-uats + cd ~/charmed-kubeflow-uats + git checkout main + + - name: Run UATs + run: | + eval "$(pyenv init -)" + sg microk8s -c "tox -c ~/charmed-kubeflow-uats/ -e kubeflow" + - name: Upload selenium screenshots if: failure() uses: actions/upload-artifact@v3 @@ -156,3 +194,7 @@ jobs: sg microk8s -c "microk8s kubectl logs -n $NAMESPACE $POD" done <<< "$POD_LIST" fi + + - name: Save debug artifacts + uses: canonical/kubeflow-ci/actions/dump-charm-debug-artifacts@main + if: always() From 6a5236745f5248a72f8e242a4c27cb9d0f89432d Mon Sep 17 00:00:00 2001 From: Phoevos Kalemkeris Date: Sat, 26 Aug 2023 06:56:03 +0300 Subject: [PATCH 02/12] ci: Make UATs branch configurable Signed-off-by: Phoevos Kalemkeris --- .github/workflows/full-bundle-tests.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 39a7c19b..8bf8ddb2 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -9,6 +9,11 @@ on: bundle-source: description: 'Either `--channel ` or `--file .yaml`' required: true + uats-branch: + description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' + type: string + default: 'main' + required: true workflow_call: inputs: bundle-test-path: @@ -19,6 +24,11 @@ on: description: 'Either `--channel ` or `--file .yaml`' type: string required: true + uats-branch: + description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' + type: string + default: 'main' + required: true jobs: test-bundle: @@ -147,7 +157,7 @@ jobs: run: | git clone https://github.com/canonical/charmed-kubeflow-uats.git ~/charmed-kubeflow-uats cd ~/charmed-kubeflow-uats - git checkout main + git checkout ${{ inputs.uats-branch }} - name: Run UATs run: | From 150128d2a91a2cf07dbdfa130d940c49be82d2b7 Mon Sep 17 00:00:00 2001 From: Phoevos Kalemkeris Date: Thu, 14 Sep 2023 12:40:28 +0300 Subject: [PATCH 03/12] fix: Install kubectl Signed-off-by: Phoevos Kalemkeris --- .github/workflows/full-bundle-tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 8bf8ddb2..37569a1f 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -73,6 +73,7 @@ jobs: eval "$(pyenv init -)" pip install tox sudo snap install charmcraft --classic + sudo snap install kubectl --classic sudo snap install firefox - name: Setup microk8s From 2b26b6fbd41305cc4ebd03dee29b39107247d0d5 Mon Sep 17 00:00:00 2001 From: Phoevos Kalemkeris Date: Fri, 15 Sep 2023 11:55:30 +0300 Subject: [PATCH 04/12] fix: Configure proxy for UATs workload Signed-off-by: Phoevos Kalemkeris --- .github/workflows/full-bundle-tests.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 37569a1f..f183692f 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -58,8 +58,8 @@ jobs: curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - export PYENV_ROOT="$HOME/.pyenv" >> "$GITHUB_ENV" - command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" >> "$GITHUB_ENV" + export PYENV_ROOT="$HOME/.pyenv" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" pyenv install 3.8.16 pyenv global 3.8.16 @@ -72,6 +72,7 @@ jobs: run: | eval "$(pyenv init -)" pip install tox + pip install jinja-cli sudo snap install charmcraft --classic sudo snap install kubectl --classic sudo snap install firefox @@ -160,6 +161,14 @@ jobs: cd ~/charmed-kubeflow-uats git checkout ${{ inputs.uats-branch }} + - name: Configure proxy for UATs workload + run: | + eval "$(pyenv init -)" + jinja -E HTTP_PROXY -E HTTPS_PROXY \ + ~/charmed-kubeflow-uats/assets/installs/test-cm.yaml.j2 -o test-cm.yaml + + kubectl apply -f test-cm.yaml + - name: Run UATs run: | eval "$(pyenv init -)" From f490066f613cf0af57693b10ce0cedc9824f16cb Mon Sep 17 00:00:00 2001 From: Phoevos Kalemkeris Date: Fri, 15 Sep 2023 17:12:56 +0300 Subject: [PATCH 05/12] fix: Configure proxy through params.env Signed-off-by: Phoevos Kalemkeris --- .github/workflows/full-bundle-tests.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index f183692f..101a35e8 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -72,7 +72,6 @@ jobs: run: | eval "$(pyenv init -)" pip install tox - pip install jinja-cli sudo snap install charmcraft --classic sudo snap install kubectl --classic sudo snap install firefox @@ -161,18 +160,20 @@ jobs: cd ~/charmed-kubeflow-uats git checkout ${{ inputs.uats-branch }} - - name: Configure proxy for UATs workload + - name: Create UAT environment configuration file run: | - eval "$(pyenv init -)" - jinja -E HTTP_PROXY -E HTTPS_PROXY \ - ~/charmed-kubeflow-uats/assets/installs/test-cm.yaml.j2 -o test-cm.yaml + # Define the environment variables to include in the configuration file + variables=("HTTP_PROXY" "HTTPS_PROXY") - kubectl apply -f test-cm.yaml + # Create the params.env file and populate it with the values of the specified variables + for var in "${variables[@]}"; do + echo "$var=$(eval echo \$$var)" >> params.env + done - name: Run UATs run: | eval "$(pyenv init -)" - sg microk8s -c "tox -c ~/charmed-kubeflow-uats/ -e kubeflow" + sg microk8s -c "tox -c ~/charmed-kubeflow-uats/ -e kubeflow -- --env params.env" - name: Upload selenium screenshots if: failure() From f37bbea7524e9736729768eca54a84801573b268 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 07:52:52 +0000 Subject: [PATCH 06/12] test: run UATs with actions operator --- .github/workflows/full-bundle-tests.yaml | 50 +++++++++++++----------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 101a35e8..deb39d61 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -68,18 +68,22 @@ jobs: echo "PYENV_ROOT=$PYENV_ROOT" >> "$GITHUB_ENV" echo "PATH=$PATH" >> "$GITHUB_ENV" - - name: Install tools - run: | + - name: Install tools + run: | eval "$(pyenv init -)" pip install tox - sudo snap install charmcraft --classic + #sudo snap install charmcraft --classic sudo snap install kubectl --classic sudo snap install firefox - - name: Setup microk8s - run: | - sudo snap install microk8s --classic --channel=1.24/stable - sudo usermod -a -G microk8s $USER + - name: Setup operator environment + uses: charmed-kubernetes/actions-operator@main + with: + provider: microk8s + channel: 1.24/stable + juju-channel: 2.9/stable + charmcraft-channel: latest/candidate + microk8s-addons: "dns hostpath-storage rbac metallb:10.64.140.43-10.64.140.49" # - name: update registry # run: | @@ -92,23 +96,23 @@ jobs: # - run: | # sudo cat /var/snap/microk8s/current/args/certs.d/docker.io/hosts.toml - - name: Update credentials - run: | - sg microk8s -c "cat >> /var/snap/microk8s/current/args/containerd-template.toml << EOF - [plugins.\"io.containerd.grpc.v1.cri\".registry.configs.\"registry-1.docker.io\".auth] - username = \"${{ secrets.MAKSIM_DOCKERHUB_USER }}\" - password = \"${{ secrets.MAKSIM_DOCKERHUB_PASSWORD }}\" - EOF" + # - name: Update credentials + #run: | + #sg microk8s -c "cat >> /var/snap/microk8s/current/args/containerd-template.toml << EOF + #[plugins.\"io.containerd.grpc.v1.cri\".registry.configs.\"registry-1.docker.io\".auth] + #username = \"${{ secrets.MAKSIM_DOCKERHUB_USER }}\" + #password = \"${{ secrets.MAKSIM_DOCKERHUB_PASSWORD }}\" + #EOF" - - name: Restart microk8s - run: | - sg microk8s -c "microk8s stop" - sg microk8s -c "microk8s start" - sg microk8s -c "microk8s status --wait-ready --timeout 150" + # - name: Restart microk8s + #run: | + #sg microk8s -c "microk8s stop" + #sg microk8s -c "microk8s start" + #sg microk8s -c "microk8s status --wait-ready --timeout 150" - - name: Enable addons - run: | - sg microk8s -c "microk8s enable ${{ steps.dns-name.outputs.MY_ADDONS }}" + #- name: Enable addons + #run: | + #sg microk8s -c "microk8s enable ${{ steps.dns-name.outputs.MY_ADDONS }}" - name: Wait for microk8s to be ready and give time for addons run: | @@ -119,7 +123,7 @@ jobs: - name: Install and bootstrap Juju run: | - sudo snap install juju --classic --channel=2.9/stable + # sudo snap install juju --classic --channel=2.9/stable sg microk8s -c 'juju bootstrap microk8s bundle-controller --model-default test-mode=true --model-default logging-config="=DEBUG" --agent-version="2.9.44" --debug --verbose' - name: Show all pods status From 4870769198dd9cc0bca907136116b00679c02c22 Mon Sep 17 00:00:00 2001 From: misohu Date: Wed, 8 Nov 2023 09:02:36 +0100 Subject: [PATCH 07/12] Rewrite --- .github/workflows/full-bundle-tests.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index deb39d61..e531c8ba 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -1,4 +1,4 @@ -name: Tests +name: Test self hosted on: workflow_dispatch: @@ -68,22 +68,22 @@ jobs: echo "PYENV_ROOT=$PYENV_ROOT" >> "$GITHUB_ENV" echo "PATH=$PATH" >> "$GITHUB_ENV" - - name: Install tools - run: | + - name: Install tools + run: | eval "$(pyenv init -)" pip install tox #sudo snap install charmcraft --classic sudo snap install kubectl --classic sudo snap install firefox - - name: Setup operator environment - uses: charmed-kubernetes/actions-operator@main - with: - provider: microk8s - channel: 1.24/stable - juju-channel: 2.9/stable - charmcraft-channel: latest/candidate - microk8s-addons: "dns hostpath-storage rbac metallb:10.64.140.43-10.64.140.49" + - name: Setup operator environment + uses: charmed-kubernetes/actions-operator@main + with: + provider: microk8s + channel: 1.24/stable + juju-channel: 2.9/stable + charmcraft-channel: latest/candidate + microk8s-addons: "dns hostpath-storage rbac metallb:10.64.140.43-10.64.140.49" # - name: update registry # run: | @@ -123,7 +123,7 @@ jobs: - name: Install and bootstrap Juju run: | - # sudo snap install juju --classic --channel=2.9/stable + # sudo snap install juju --classic --channel=2.9/stable sg microk8s -c 'juju bootstrap microk8s bundle-controller --model-default test-mode=true --model-default logging-config="=DEBUG" --agent-version="2.9.44" --debug --verbose' - name: Show all pods status From 63f4d2ee03e25f739c18b367b648ee4b5fec844c Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 08:10:39 +0000 Subject: [PATCH 08/12] ci: re-run --- .github/workflows/full-bundle-tests.yaml | 62 ++++++++++++------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index e531c8ba..55164b86 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -1,34 +1,34 @@ name: Test self hosted on: - workflow_dispatch: - inputs: - bundle-test-path: - description: 'Test folder to run' - required: true - bundle-source: - description: 'Either `--channel ` or `--file .yaml`' - required: true - uats-branch: - description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' - type: string - default: 'main' - required: true - workflow_call: - inputs: - bundle-test-path: - description: 'Test folder to run' - type: string - required: true - bundle-source: - description: 'Either `--channel ` or `--file .yaml`' - type: string - required: true - uats-branch: - description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' - type: string - default: 'main' - required: true + pull_request: + #inputs: + #bundle-test-path: + #description: 'Test folder to run' + #required: true + #bundle-source: + #description: 'Either `--channel ` or `--file .yaml`' + #required: true + #uats-branch: + #description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' + #type: string + #default: 'main' + #required: true + #workflow_call: + #inputs: + #bundle-test-path: + #description: 'Test folder to run' + #type: string + #required: true + #bundle-source: + #description: 'Either `--channel ` or `--file .yaml`' + #type: string + #required: true + #uats-branch: + #description: 'The branch of `charmed-kubeflow-uats` to run, e.g. `track/1.7`' + #type: string + #default: 'main' + #required: true jobs: test-bundle: @@ -154,15 +154,15 @@ jobs: - name: Run bundle tests run: | eval "$(pyenv init -)" - export BUNDLE_TEST_PATH=${{ inputs.bundle-test-path }} + export BUNDLE_TEST_PATH=tests-bundle/1.7 export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} - sg microk8s -c "tox -e full_bundle_tests -- ${{ inputs.bundle-source }}" + sg microk8s -c "tox -e full_bundle_tests -- 1.7/stable" - name: Checkout Kubeflow UATs run: | git clone https://github.com/canonical/charmed-kubeflow-uats.git ~/charmed-kubeflow-uats cd ~/charmed-kubeflow-uats - git checkout ${{ inputs.uats-branch }} + git checkout main - name: Create UAT environment configuration file run: | From f37f591d4ec1c6d24fea3f484f286990d2192bb2 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 09:20:59 +0000 Subject: [PATCH 09/12] ci: re-run with full path --- .github/workflows/full-bundle-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 55164b86..e094469a 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -156,7 +156,7 @@ jobs: eval "$(pyenv init -)" export BUNDLE_TEST_PATH=tests-bundle/1.7 export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} - sg microk8s -c "tox -e full_bundle_tests -- 1.7/stable" + sg microk8s -c "tox -e full_bundle_tests -- releases/1.7/stable/kubeflow/bundle.yaml" - name: Checkout Kubeflow UATs run: | From a4fae267a9d79a617c6f236361a6e895db8dc364 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 10:16:20 +0000 Subject: [PATCH 10/12] ci: re-run with --file --- .github/workflows/full-bundle-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index e094469a..e3b352c9 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -156,7 +156,7 @@ jobs: eval "$(pyenv init -)" export BUNDLE_TEST_PATH=tests-bundle/1.7 export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} - sg microk8s -c "tox -e full_bundle_tests -- releases/1.7/stable/kubeflow/bundle.yaml" + sg microk8s -c "tox -e full_bundle_tests -- --file releases/1.7/stable/kubeflow/bundle.yaml" - name: Checkout Kubeflow UATs run: | From 013cf6f08bb321c1971440669b7f9083c9d76f8b Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 11:42:53 +0000 Subject: [PATCH 11/12] ci: re-run --- .github/workflows/full-bundle-tests.yaml | 50 ------------------------ 1 file changed, 50 deletions(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index e3b352c9..9cdcf695 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -35,39 +35,6 @@ jobs: runs-on: [self-hosted, linux, X64, two-xlarge] steps: - uses: actions/checkout@v3 - - name: Parse and enable DNS server - id: dns-name - run: | - dns_server=$(grep -oPm1 'Current DNS Server: \K[^\s]+' <<< "$(resolvectl status)") - echo "Using following DNS Server: $dns_server" - - echo "MY_ADDONS=hostpath-storage ingress dns:$dns_server rbac registry metallb:'10.64.140.43-10.64.140.49,192.168.0.105-192.168.0.111'" >> $GITHUB_OUTPUT - - - name: Setup Python - run: | - echo "deb-src http://archive.ubuntu.com/ubuntu/ jammy main" | sudo tee -a /etc/apt/sources.list - - sudo apt-get update -yqq - sudo apt-get build-dep -yqq python3 - sudo apt-get install -yqq pkg-config - - sudo apt-get install -yqq build-essential gdb lcov pkg-config \ - libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ - libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ - lzma lzma-dev tk-dev uuid-dev zlib1g-dev - - curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash - - export PYENV_ROOT="$HOME/.pyenv" - command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - - pyenv install 3.8.16 - pyenv global 3.8.16 - - # configure environment variables to be available in subsequent steps - echo "PYENV_ROOT=$PYENV_ROOT" >> "$GITHUB_ENV" - echo "PATH=$PATH" >> "$GITHUB_ENV" - - name: Install tools run: | eval "$(pyenv init -)" @@ -116,16 +83,9 @@ jobs: - name: Wait for microk8s to be ready and give time for addons run: | - sleep 90 - sg microk8s -c "microk8s status --wait-ready --timeout 150" sg microk8s -c "mkdir -p ~/.kube" sg microk8s -c "microk8s config > ~/.kube/config" - - name: Install and bootstrap Juju - run: | - # sudo snap install juju --classic --channel=2.9/stable - sg microk8s -c 'juju bootstrap microk8s bundle-controller --model-default test-mode=true --model-default logging-config="=DEBUG" --agent-version="2.9.44" --debug --verbose' - - name: Show all pods status run: | sg microk8s -c "microk8s kubectl get pods --all-namespaces" @@ -164,16 +124,6 @@ jobs: cd ~/charmed-kubeflow-uats git checkout main - - name: Create UAT environment configuration file - run: | - # Define the environment variables to include in the configuration file - variables=("HTTP_PROXY" "HTTPS_PROXY") - - # Create the params.env file and populate it with the values of the specified variables - for var in "${variables[@]}"; do - echo "$var=$(eval echo \$$var)" >> params.env - done - - name: Run UATs run: | eval "$(pyenv init -)" From ce34f8b045848cf4bb2d7aab6e90a27e652b7849 Mon Sep 17 00:00:00 2001 From: NohaIhab Date: Wed, 8 Nov 2023 12:09:22 +0000 Subject: [PATCH 12/12] ci: re-run with sleep --- .github/workflows/full-bundle-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full-bundle-tests.yaml b/.github/workflows/full-bundle-tests.yaml index 9cdcf695..9ceed8f6 100644 --- a/.github/workflows/full-bundle-tests.yaml +++ b/.github/workflows/full-bundle-tests.yaml @@ -110,7 +110,7 @@ jobs: loginctl enable-linger $USER sudo apt-get install dbus-user-session -yqq systemctl --user start dbus.service - + - run: sleep 7200 - name: Run bundle tests run: | eval "$(pyenv init -)"