Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disappearing test results in pipelines #45897

Merged

Conversation

brianseeders
Copy link
Contributor

@brianseeders brianseeders commented Sep 17, 2019

Fixes #45828

@spalger noticed that a test was missing from the Jenkins test result page for a build. Upon further investigation, an entire ciGroup was missing, and the number of tests changed every build by 100-200, with random suites dropping in and out.

The junit results files were being uploaded to GCS correctly, and the files contained all of the test results, so it seemed to be a problem with Jenkins processing the files.

There seems to be a bug in the junit plugin, possibly related to test result files having the same filename (even if they are in unique directories). The plugin does a lot to try to detect and drop "old" test results from previous runs, and to merge tests that have the same filename in some cases. The theory is that some of the results are dropping out.

I ran this branch on a local Jenkins 6 times, and it had the same number of test results every time.

@brianseeders brianseeders added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:CI Continuous integration v7.4.0 v7.5.0 v7.3.2 v6.8.4 test-pipelines labels Sep 17, 2019
@brianseeders brianseeders requested a review from a team as a code owner September 17, 2019 14:31
@brianseeders brianseeders self-assigned this Sep 17, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@brianseeders
Copy link
Contributor Author

Just kicked off a couple of re-runs to see if they have consistent test numbers:

https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/74/
https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/75/

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brianseeders
Copy link
Contributor Author

19,296 tests all 3 builds, which makes 9 consistent builds altogether.

@brianseeders brianseeders merged commit 91090db into elastic:master Sep 17, 2019
@brianseeders brianseeders deleted the fix/pipeline-disappearing-tests branch September 17, 2019 19:23
brianseeders added a commit to brianseeders/kibana that referenced this pull request Sep 17, 2019
Fix disappearing test results in pipelines
brianseeders added a commit to brianseeders/kibana that referenced this pull request Sep 17, 2019
Fix disappearing test results in pipelines
brianseeders added a commit to brianseeders/kibana that referenced this pull request Sep 17, 2019
Fix disappearing test results in pipelines
brianseeders added a commit to brianseeders/kibana that referenced this pull request Sep 17, 2019
Fix disappearing test results in pipelines
rylnd added a commit to rylnd/kibana that referenced this pull request Sep 17, 2019
* master: (33 commits)
  [easy] Exclude __examples__ from coverage (elastic#45556)
  [DOCS] Update CCR links (elastic#44012)
  Use unique junit report filenames again (elastic#45897)
  [ftr/savedObjects] add simple saved object api client to ftr s… (elastic#45856)
  New visualization editor Lens (elastic#36437)
  Sort using unix timestamp value (elastic#43162)
  [APM] Use POST instead of implicit GET (elastic#45903)
  [Canvas] Converting workpad header components to typescript and adding i18n (elastic#45274)
  skip flaky test (elastic#45884)
  set IS_PIPELINE_JOB in intake jobs (elastic#45850)
  [Uptime] Fix/issue 48 integration popup closes after refresh (elastic#45759)
  [Logs UI] Support zoom by brushing in the log rate chart (elastic#45879)
  [DOCS] Changes name to host (elastic#45798)
  [ML] Add population job wizard test (elastic#45765)
  [skip-ci][Maps][File upload] Geojson indexing and styling docs (elastic#41394)
  remove setTimeoue for state change (elastic#45853)
  [Graph] Restructure folders and add readme (elastic#45782)
  [ML] Enhance job id error message (elastic#45349)
  [SIEM] Do not update state component when they did unmount (elastic#45847)
  [i18n] sync from 7.4 latest translations (elastic#45823)
  ...
brianseeders added a commit that referenced this pull request Sep 18, 2019
Fix disappearing test results in pipelines
brianseeders added a commit that referenced this pull request Sep 18, 2019
Fix disappearing test results in pipelines
brianseeders added a commit that referenced this pull request Sep 18, 2019
* Use unique junit report filenames again (#45897)

Fix disappearing test results in pipelines

* Fix more junit paths
brianseeders added a commit that referenced this pull request Sep 18, 2019
* Use unique junit report filenames again (#45897)

Fix disappearing test results in pipelines

* Fix line length problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:CI Continuous integration release_note:skip Skip the PR/issue when compiling release notes test-pipelines v6.8.4 v7.3.2 v7.4.0 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Pipeline test results dropping random groups of tests
4 participants