Skip to content

Commit

Permalink
seperated integrationTest step to reduce log output
Browse files Browse the repository at this point in the history
  • Loading branch information
alianides committed Jul 18, 2024
1 parent f43dd4b commit a2a0ec5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/run-integrationTests-python.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-template-spacesdk-client-python
name: test-template-spacefx-client-python
on:
workflow_call:
inputs:
Expand All @@ -21,7 +21,7 @@ on:

jobs:
build-and-test:
name: test-spacesdk-client-python-${{ inputs.WORKFLOW_AGENT }}
name: test-spacefx-client-python-${{ inputs.WORKFLOW_AGENT }}
runs-on: ${{ inputs.WORKFLOW_AGENT }}
permissions:
contents: read
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
docker exec ${DEV_CONTAINER_NAME} bash -c "dotnet build /workspace/${{ inputs.app_name }}/test/debugClient/debugClient.csproj"
echo $?
- name: Run Integration Tests
- name: Deploy DebugShim
shell: bash
run: |
[[ ! -f /var/spacedev/tmp/${{ inputs.app_name }}/container_info.json ]] && echo "container_info.json not found. Dev container start up failed" && exit 1
Expand All @@ -107,6 +107,10 @@ jobs:
echo "Running: docker exec ${DEV_CONTAINER_NAME} bash -c \"/spacefx-dev/debugShim-deploy.sh --debug_shim ${{ inputs.app_name }} --python_file /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py --disable_plugin_configs --port 5678\""
docker exec ${DEV_CONTAINER_NAME} bash -c "/spacefx-dev/debugShim-deploy.sh --debug_shim ${{ inputs.app_name }} --python_file /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py --disable_plugin_configs --port 5678" &
- name: Run Integration Tests
shell: bash
run: |
echo "Executing integration tests..."
echo "k3s kubectl exec -n payload-app deploy/${{ inputs.app_name }} -- bash -c \"python3 /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py\" &"
(
# Reroute the stdout to a file so we can uniquely identify this run
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: test-spacesdk-client-dotnet
name: test-spacefx-client-dotnet
on:
workflow_dispatch:
push:
pull_request:
branches: [ main ]

jobs:
test-spacesdk-client-python-amd64:
test-spacefx-client-python-amd64:
permissions:
contents: read
issues: read
Expand All @@ -21,7 +21,7 @@ jobs:
GIT_HUB_USER_TOKEN: ${{ secrets.GIT_HUB_USER_TOKEN }}
SETUP_REPO_URL: ${{ secrets.SETUP_REPO_URL }}

test-spacesdk-client-python-arm64:
test-spacefx-client-python-arm64:
permissions:
contents: read
issues: read
Expand Down

0 comments on commit a2a0ec5

Please sign in to comment.