Skip to content

Commit

Permalink
updated logging and added additional logs for integrationTests
Browse files Browse the repository at this point in the history
  • Loading branch information
alianides committed Jul 18, 2024
1 parent 7d02bb9 commit 4a64e59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/run-integrationTests-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ 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
6 changes: 3 additions & 3 deletions test/integrationTests/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"Microsoft.AspNetCore": "Warning",
"System.Net.Http": "Error",
"Microsoft.Azure.SpaceFx": "Information",
"Microsoft.Azure.SpaceFx.Core.Services.MessageReceiver": "Information",
"Microsoft.Azure.SpaceFx.Core.Services.HeartbeatService": "Information",
"Microsoft.Azure.SpaceFx.Core.Services.ResourceUtilizationMonitor": "Information"
"Microsoft.Azure.SpaceFx.Core.Services.MessageReceiver": "Debug",
"Microsoft.Azure.SpaceFx.Core.Services.HeartbeatService": "Debug",
"Microsoft.Azure.SpaceFx.Core.Services.ResourceUtilizationMonitor": "Trace"
},
"Console": {
"TimestampFormat": "[yyyy-MM-dd HH:mm:ss] "
Expand Down
6 changes: 4 additions & 2 deletions test/integrationTests_python/integrationTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ def position_service():

def main():

logger.info("[BEGIN] Integration Tests")
logger.info("---------------------------")


print("Building SpaceFX Client")
spacefx.client.build()

logger.info("[BEGIN] Integration Tests")
logger.info("---------------------------")

appid = spacefx.client.get_app_id()
logger.info(f"AppID: {appid}")

Expand Down

0 comments on commit 4a64e59

Please sign in to comment.