-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker instead of LXD to run tests with local assets (#1253)
* Use docker instead of LXD to run tests with local assets
- Loading branch information
Showing
37 changed files
with
1,881 additions
and
1,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: E2E Troubleshoot | ||
description: Troubleshoot e2e tests for embedded-cluster | ||
inputs: | ||
test-name: | ||
description: 'individual test to troubleshoot' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Upload Host Support Bundle | ||
id: upload-host-support-bundle | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.test-name }}-support-bundle-host.tar.gz | ||
path: ./e2e/support-bundle-host-*.tar.gz | ||
|
||
- name: Upload Cluster Support Bundle | ||
id: upload-cluster-support-bundle | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.test-name }}-support-bundle-cluster.tar.gz | ||
path: ./e2e/support-bundle-cluster.tar.gz | ||
|
||
- name: Upload Playwright Report | ||
id: upload-playwright-report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.test-name }}-playwright-report.tar.gz | ||
path: ./e2e/playwright-report.tar.gz | ||
|
||
- name: Print instructions for host support bundle | ||
if: ${{ steps.upload-host-support-bundle.outputs.artifact-url != '' }} | ||
run: | | ||
echo -e "\e[1;33m┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐\e[0m" | ||
echo -e "\e[1;33m Download the host support bundle from: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;34m ${{ steps.upload-host-support-bundle.outputs.artifact-url }} \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m└──────────────────────────────────────────────────────────────────────────────────────────────────────┘\e[0m" | ||
shell: bash | ||
|
||
- name: Print instructions for cluster support bundle | ||
if: ${{ steps.upload-cluster-support-bundle.outputs.artifact-url != '' }} | ||
run: | | ||
echo -e "\e[1;33m┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐\e[0m" | ||
echo -e "\e[1;33m To analyze the cluster support bundle: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 1- Download & extract the support bundle from: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;34m ${{ steps.upload-cluster-support-bundle.outputs.artifact-url }} \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 2- Install sbctl CLI from: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;34m https://github.com/replicatedhq/sbctl \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 3- From inside the extracted directory, run: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;32m sbctl serve -s . \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 4- Export the printed kubeconfig to interact with the cluster. \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m└──────────────────────────────────────────────────────────────────────────────────────────────────────┘\e[0m" | ||
shell: bash | ||
|
||
- name: Print instructions to view Playwright report | ||
if: ${{ steps.upload-playwright-report.outputs.artifact-url != '' }} | ||
run: | | ||
echo -e "\e[1;33m┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐\e[0m" | ||
echo -e "\e[1;33m To view the Playwright test report: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 1- Download & extract the report from: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;34m ${{ steps.upload-playwright-report.outputs.artifact-url }} \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m 2- From inside the extracted directory, run: \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;32m npx playwright show-report . \e[0m" | ||
echo -e "\e[1;33m \e[0m" | ||
echo -e "\e[1;33m└──────────────────────────────────────────────────────────────────────────────────────────────────────┘\e[0m" | ||
shell: bash | ||
|
||
# - name: Setup upterm session (ssh) | ||
# uses: lhotari/action-upterm@v1 | ||
# if: failure() | ||
# with: | ||
# ## If no one connects after 5 minutes, shut down server. | ||
# wait-timeout-minutes: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Free Disk Space | ||
description: Free up Github runner disk space | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Free disk space | ||
shell: bash | ||
run: | | ||
df -h | ||
# Don't enable these as they take a long time to run (sometimes over 10 minutes) | ||
# sudo docker system prune -af | ||
# sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf \ | ||
/opt/hostedtoolcache/CodeQL \ | ||
/opt/hostedtoolcache/Python \ | ||
/opt/hostedtoolcache/PyPy \ | ||
/opt/microsoft/powershell \ | ||
/opt/ghc \ | ||
/opt/az | ||
sudo rm -rf \ | ||
/usr/share/swift \ | ||
/usr/share/dotnet \ | ||
/usr/lib/jvm \ | ||
/usr/local/share/boost \ | ||
/usr/local/lib/heroku \ | ||
/usr/local/julia* \ | ||
/usr/local/.ghcup \ | ||
/usr/local/share/powershell \ | ||
/usr/local/bin/aliyun \ | ||
/usr/local/bin/azcopy \ | ||
/usr/local/bin/bicep \ | ||
/usr/local/bin/cpack \ | ||
/usr/local/bin/hub \ | ||
/usr/local/bin/minikube \ | ||
/usr/local/bin/packer \ | ||
/usr/local/bin/pulumi* \ | ||
/usr/local/bin/sam \ | ||
/usr/local/bin/stack \ | ||
/usr/local/bin/terraform \ | ||
/usr/local/bin/oc | ||
df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.