From 3a701bddc6e0c1310baca8f0c254b99299be49c4 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 22 Oct 2020 21:24:11 +0100 Subject: [PATCH] Force flaky failures for filebeat and libbeat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build and Test / Filebeat Windows / test_close_renamed – test_harvester.Test Oct 21, 2020 @ 04:00:25.019 Build and Test / Libbeat / Libbeat oss / TestClientPublishEventKerberosAware – elasticsearch --- Jenkinsfile.yml | 6 +- filebeat/Jenkinsfile.yml | 80 +++++++++---------- filebeat/tests/system/test_harvester.py | 1 + libbeat/Jenkinsfile.yml | 30 +++---- .../elasticsearch/client_integration_test.go | 1 + 5 files changed, 60 insertions(+), 58 deletions(-) diff --git a/Jenkinsfile.yml b/Jenkinsfile.yml index b89d9c54b765..5f61776400e6 100644 --- a/Jenkinsfile.yml +++ b/Jenkinsfile.yml @@ -1,17 +1,17 @@ projects: #- "auditbeat" #- "deploy/kubernetes" - #- "filebeat" + - "filebeat" #- "generator" #- "heartbeat" #- "journalbeat" - #- "libbeat" + - "libbeat" #- "metricbeat" #- "packetbeat" #- "winlogbeat" #- "x-pack/auditbeat" #- "x-pack/dockerlogbeat" - - "x-pack/elastic-agent" + #- "x-pack/elastic-agent" #- "x-pack/filebeat" #- "x-pack/functionbeat" #- "x-pack/libbeat" diff --git a/filebeat/Jenkinsfile.yml b/filebeat/Jenkinsfile.yml index 09dbe948c72c..4dab3143e3a0 100644 --- a/filebeat/Jenkinsfile.yml +++ b/filebeat/Jenkinsfile.yml @@ -13,47 +13,47 @@ when: tags: true ## for all the tags platform: "linux && ubuntu-18" ## default label for all the stages stages: - arm: - mage: "mage build unitTest" - platforms: ## override default label in this specific stage. - - "arm" - when: ## Override the top-level when. - comments: - - "/test filebeat for arm" - labels: - - "arm" - parameters: - - "armTest" - branches: true ## for all the branches - tags: true ## for all the tags - build: - mage: "mage build test" - withModule: true ## run the ITs only if the changeset affects a specific module. - macos: - mage: "mage build unitTest" - platforms: ## override default label in this specific stage. - - "macosx" - when: ## Override the top-level when. - comments: - - "/test filebeat for macos" - labels: - - "macOS" - parameters: - - "macosTest" - branches: true ## for all the branches - tags: true ## for all the tags + #arm: + # mage: "mage build unitTest" + # platforms: ## override default label in this specific stage. + # - "arm" + # when: ## Override the top-level when. + # comments: + # - "/test filebeat for arm" + # labels: + # - "arm" + # parameters: + # - "armTest" + # branches: true ## for all the branches + # tags: true ## for all the tags + #build: + # mage: "mage build test" + # withModule: true ## run the ITs only if the changeset affects a specific module. + #macos: + # mage: "mage build unitTest" + # platforms: ## override default label in this specific stage. + # - "macosx" + # when: ## Override the top-level when. + # comments: + # - "/test filebeat for macos" + # labels: + # - "macOS" + # parameters: + # - "macosTest" + # branches: true ## for all the branches + # tags: true ## for all the tags windows: mage: "mage build unitTest" platforms: ## override default labels in this specific stage. - "windows-2019" - windows-2016: - mage: "mage build unitTest" - platforms: ## override default labels in this specific stage. - - "windows-2016" - when: ## Override the top-level when. - comments: - - "/test filebeat for windows-2016" - labels: - - "windows-2016" - branches: true ## for all the branches - tags: true ## for all the tags + #windows-2016: + # mage: "mage build unitTest" + # platforms: ## override default labels in this specific stage. + # - "windows-2016" + # when: ## Override the top-level when. + # comments: + # - "/test filebeat for windows-2016" + # labels: + # - "windows-2016" + # branches: true ## for all the branches + # tags: true ## for all the tags diff --git a/filebeat/tests/system/test_harvester.py b/filebeat/tests/system/test_harvester.py index cb30dc4976b6..ea91c478f732 100644 --- a/filebeat/tests/system/test_harvester.py +++ b/filebeat/tests/system/test_harvester.py @@ -18,6 +18,7 @@ class Test(BaseTest): def test_close_renamed(self): + t.Fatal("for testing the flaky test reporting for an existing flaky test") """ Checks that a file is closed when its renamed / rotated """ diff --git a/libbeat/Jenkinsfile.yml b/libbeat/Jenkinsfile.yml index 692400e7253b..a58e22fdfabb 100644 --- a/libbeat/Jenkinsfile.yml +++ b/libbeat/Jenkinsfile.yml @@ -12,20 +12,20 @@ when: tags: true ## for all the tags platform: "linux && ubuntu-18" ## default label for all the stages stages: - arm: - mage: "mage build unitTest" - platforms: ## override default label in this specific stage. - - "arm" - when: ## Override the top-level when. - comments: - - "/test libbeat for arm" - labels: - - "arm" - parameters: - - "armTest" + #arm: + # mage: "mage build unitTest" + # platforms: ## override default label in this specific stage. + # - "arm" + # when: ## Override the top-level when. + # comments: + # - "/test libbeat for arm" + # labels: + # - "arm" + # parameters: + # - "armTest" build: mage: "mage build test" - crosscompile: - make: "make -C libbeat crosscompile" - stress-tests: - make: "make STRESS_TEST_OPTIONS='-timeout=20m -race -v -parallel 1' -C libbeat stress-tests" + #crosscompile: + # make: "make -C libbeat crosscompile" + #stress-tests: + # make: "make STRESS_TEST_OPTIONS='-timeout=20m -race -v -parallel 1' -C libbeat stress-tests" diff --git a/libbeat/outputs/elasticsearch/client_integration_test.go b/libbeat/outputs/elasticsearch/client_integration_test.go index 67ccc34b8f7a..9870f5de7a53 100644 --- a/libbeat/outputs/elasticsearch/client_integration_test.go +++ b/libbeat/outputs/elasticsearch/client_integration_test.go @@ -55,6 +55,7 @@ func TestClientPublishEvent(t *testing.T) { } func TestClientPublishEventKerberosAware(t *testing.T) { + t.Fatal("for testing the flaky test reporting for an existing flaky test") t.Skip("Flaky test: https://github.com/elastic/beats/issues/21295") err := setupRoleMapping(t, eslegtest.GetEsKerberosHost())