Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

test-infra: beats-ci improvements #534

Merged
merged 7 commits into from
May 14, 2020

Conversation

v1v
Copy link
Member

@v1v v1v commented May 14, 2020

What does this PR do?

  • Fix testDocker
  • Add some test-infra tests
  • Add more verbose output for the node where it's running the stage

Why is it important?

Make the test-infra our way to check for healthy workers

Related issues

Closes #ISSUE

@v1v v1v self-assigned this May 14, 2020
@v1v v1v added the automation label May 14, 2020
@botelastic botelastic bot added the ci label May 14, 2020
@apmmachine
Copy link
Contributor

apmmachine commented May 14, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 515
Skipped 18
Total 533

@@ -60,7 +60,7 @@ pipeline {
axes {
axis {
name 'PLATFORM'
values 'ubuntu && immutable', 'worker-c07l34n6dwym', 'worker-c07y20b6jyvy', 'worker-c07ll940dwyl', 'worker-c07y20b9jyvy', 'worker-c07y20b4jyvy', 'worker-c07y20bcjyvy', 'worker-395930', 'worker-0a434dec4bdcd060f', 'windows-immutable && windows-2019', 'windows-immutable && windows-2016', 'windows-immutable && windows-2012', 'windows-immutable && windows-7', 'windows-immutable && windows-7-32-bit', 'windows-immutable && windows-2008', 'windows-immutable && windows-2008-r2', 'windows-immutable && windows-10'
values 'ubuntu && immutable', 'worker-c07l34n6dwym', 'worker-c07y20b6jyvy', 'worker-c07ll940dwyl', 'worker-c07y20b9jyvy', 'worker-c07y20b4jyvy', 'worker-c07y20bcjyvy', 'worker-395930', 'worker-0a434dec4bdcd060f', 'windows-immutable && windows-2019', 'windows-immutable && windows-2016', 'windows-immutable && windows-2012', 'windows-immutable && windows-10', 'windows-immutable && windows-8', 'windows-immutable && windows-2008-r2', 'windows-immutable && windows-7', 'windows-immutable && windows-7-32-bit'
Copy link
Member Author

Choose a reason for hiding this comment

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

There was typo 'windows-immutable && windows-2008', rather than 'windows-immutable && windows-8',

Then I sorted based on the windows numbering

Comment on lines -131 to -139
def testDockerInside(){
docker.image('node:12').inside(){
dir("${BASE_DIR}"){
withEnv(["HOME=${env.WORKSPACE}"]){
sh(script: './resources/scripts/jenkins/build.sh')
}
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

got a bug when running in two nested BASE_DIR folders, so to avoid issues I moved the body where the call happens.

Comment on lines +13 to +14
cmd = host.run("tar --version")
assert cmd.rc == 0, "it is required for the stashV2 and unstashV2 steps"
Copy link
Member Author

Choose a reason for hiding this comment

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

Required since elastic/beats#18473 will be merged sooner than later

v1v added 2 commits May 14, 2020 15:30
….com:v1v/apm-pipeline-library into feature/beats-ci-add-dependencies-test-infra

* 'feature/beats-ci-add-dependencies-test-infra' of github.com:v1v/apm-pipeline-library:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v1.1.97
@@ -116,24 +124,20 @@ def runTest(){
if (uname.startsWith("Darwin")) {
sh(returnStatus: true, script: './resources/scripts/jenkins/beats-ci/test-mac.sh')
} else {
// worker-0a434dec4bdcd060f does not have any reference repos
def runPackerCacheTests = PLATFORM.equals('worker-0a434dec4bdcd060f') ? 'false' : 'true'
Copy link
Member Author

Choose a reason for hiding this comment

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

To avoid running the testsuite for the git reference repos

image

@v1v v1v added test and removed ci labels May 14, 2020
@v1v v1v requested a review from a team May 14, 2020 14:38
@v1v v1v marked this pull request as ready for review May 14, 2020 14:38
@botelastic botelastic bot added the ci label May 14, 2020
@v1v v1v merged commit 25cd2ed into elastic:master May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants