From 67513b4511c6baac1bcb57cd4deaf96024eed558 Mon Sep 17 00:00:00 2001 From: Tyler Hackett Date: Fri, 11 Oct 2024 13:30:20 -0700 Subject: [PATCH 1/3] log ip address --- packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh b/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh index c7c984fa1..b897d25dd 100755 --- a/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh +++ b/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh @@ -3,6 +3,10 @@ # make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully set -o pipefail +echo "Here is the public IP address of the machine running the tests" + +curl -s http://ipecho.net/plain; echo + npm rebuild detox ./node_modules/.bin/detox test --configuration ios.internal.release.smoke.ci --retries 1 --max-workers 3; test_result=$? From 1407a816089b61216f774ad4723324db21bfd1b7 Mon Sep 17 00:00:00 2001 From: Tyler Hackett Date: Wed, 30 Oct 2024 10:17:02 -0700 Subject: [PATCH 2/3] fix ios memory query --- packages/core-mobile/scripts/datadog/updateIosDashboard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-mobile/scripts/datadog/updateIosDashboard.sh b/packages/core-mobile/scripts/datadog/updateIosDashboard.sh index 21455b287..91b5614fa 100755 --- a/packages/core-mobile/scripts/datadog/updateIosDashboard.sh +++ b/packages/core-mobile/scripts/datadog/updateIosDashboard.sh @@ -1680,7 +1680,7 @@ curl -X PUT "https://api.datadoghq.com/api/v1/monitor/156561219" \ { "name": "[core mobile] Memory Use Exceeds the Recommended Threshold on iOS", "type": "rum alert", - "query": "rum(\"@type:view @application.id:4deaf0a2-6489-4a26-b05c-deb1f3673bbb @os.name:iOS -version:<$BUILD_NUMBER service:org.avalabs.corewallet\").rollup(\"avg\", \"@view.memory_average\").by(\"version\").last(\"1d\") > 734000000", + "query": "rum(\"@type:view @application.id:4deaf0a2-6489-4a26-b05c-deb1f3673bbb @os.name:iOS -version:<$BUILD_NUMBER service:org.avalabs.corewallet\").rollup(\"avg\", \"@view.memory_average\").by(\"version\").last(\"1d\") > 1048580000", "message": "{{#is_alert}}Memory use is over 1000mb. Double check the changes made today and revert or update to decrease memory usage.{{/is_alert}}\n\n{{#is_warning}}Memory use is over 800mb which is approaching the acceptable threshold of 1000 MB{{/is_warning}}\n\n@slack-shared-services-qa-mobile-dd-alerts", "tags": [], "options": { From 8b3b64f2d3280c87440f0282bd961b469bc95705 Mon Sep 17 00:00:00 2001 From: Tyler Hackett Date: Wed, 30 Oct 2024 10:36:38 -0700 Subject: [PATCH 3/3] Update iosInternalE2e.sh Signed-off-by: Tyler Hackett --- packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh b/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh index b897d25dd..c7c984fa1 100755 --- a/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh +++ b/packages/core-mobile/scripts/bitrise/detox/iosInternalE2e.sh @@ -3,10 +3,6 @@ # make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully set -o pipefail -echo "Here is the public IP address of the machine running the tests" - -curl -s http://ipecho.net/plain; echo - npm rebuild detox ./node_modules/.bin/detox test --configuration ios.internal.release.smoke.ci --retries 1 --max-workers 3; test_result=$?