Skip to content

Commit 62a5060

Browse files
committed
do not test in CI, only rely on lag
1 parent a582698 commit 62a5060

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

ccloud/fm-azure-log-analytics-sink/fully-managed-azure-log-analytics-sink.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,22 @@ sleep 10
118118

119119
playground connector show-lag --connector $connector_name
120120

121-
# https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-ingestion-time#checking-ingestion-time
122-
# there is known latency: "The average latency to ingest log data is between 20 seconds and 3 minutes."
121+
if [ -z "$GITHUB_RUN_NUMBER" ]
122+
then
123+
# do not test in CI, only rely on lag
124+
125+
# https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-ingestion-time#checking-ingestion-time
126+
# there is known latency: "The average latency to ingest log data is between 20 seconds and 3 minutes."
123127

124-
sleep 180
128+
sleep 180
125129

126-
az extension add --name log-analytics
127-
az monitor log-analytics query \
128-
--workspace $AZURE_LOG_ANALYTICS_WORKSPACE_ID \
129-
--analytics-query 'log_analytics_topic_CL | limit 10' > /tmp/result.log 2>&1
130-
cat /tmp/result.log
131-
grep "first_name_s" /tmp/result.log
130+
az extension add --name log-analytics
131+
az monitor log-analytics query \
132+
--workspace $AZURE_LOG_ANALYTICS_WORKSPACE_ID \
133+
--analytics-query 'log_analytics_topic_CL | limit 10' > /tmp/result.log 2>&1
134+
cat /tmp/result.log
135+
grep "first_name_s" /tmp/result.log
136+
fi
132137

133138
log "Do you want to delete the fully managed connector $connector_name ?"
134139
check_if_continue

0 commit comments

Comments
 (0)