Skip to content

Commit 8341b0a

Browse files
authored
integration-server-test: Don't notify if not run from main (elastic#17209)
* Fix 9.1 upgrade test failure due to apm-data changes * Add context canceled error log; Update notify to fire on main only * Revert "Fix 9.1 upgrade test failure due to apm-data changes" This reverts commit aeddc56.
1 parent e95bb60 commit 8341b0a

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/integration-server-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
SCENARIO="${{ matrix.scenario }}" make integration-server-standalone-test
8989
9090
notify:
91-
if: always()
91+
if: github.ref == 'refs/heads/main'
9292
runs-on: ubuntu-latest
9393
needs:
9494
- run-upgrade

.github/workflows/smoke-tests-os-sched.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
notify:
5050
name: Notify
51-
if: always()
51+
if: github.ref == 'refs/heads/main'
5252
runs-on: ubuntu-latest
5353
needs:
5454
- smoke-tests-os

integrationservertest/logs_filters.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,18 @@ var (
102102
},
103103
})
104104

105-
syncSourcemapContextCanceled = apmErrorLog(types.Query{
105+
initialSearchQueryContextCanceled = apmErrorLog(types.Query{
106106
MatchPhrase: map[string]types.MatchPhraseQuery{
107107
"message": {Query: "failed to sync sourcemaps metadata: failed to run initial search query: fetcher unavailable: context canceled"},
108108
},
109109
})
110110

111+
scrollSearchQueryContextCanceled = apmErrorLog(types.Query{
112+
MatchPhrase: map[string]types.MatchPhraseQuery{
113+
"message": {Query: "failed to sync sourcemaps metadata: failed scroll search: failed to run scroll search query: context canceled"},
114+
},
115+
})
116+
111117
waitServerReadyCtxCanceled = apmErrorLog(types.Query{
112118
MatchPhrase: map[string]types.MatchPhraseQuery{
113119
"message": {Query: "error waiting for server to be ready: context canceled"},

integrationservertest/upgrade_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ func buildTestSteps(t *testing.T, versions ech.Versions, config upgradeTestConfi
158158
preconditionFailed,
159159
populateSourcemapFetcher403,
160160
populateSourcemapServerShuttingDown,
161-
syncSourcemapContextCanceled,
161+
initialSearchQueryContextCanceled,
162+
scrollSearchQueryContextCanceled,
162163
},
163164
})
164165

0 commit comments

Comments
 (0)