-
Notifications
You must be signed in to change notification settings - Fork 41
Support running tests in full VM's #1740
Conversation
This gives us full vm's to run our e2e tests in. Supports both Linux amd64/arm64, and will support Windows. Signed-off-by: Adam Stokes <[email protected]>
|
This pull request does not have a backport label. Could you fix it @adam-stokes? 🙏
|
.ci/Jenkinsfile
Outdated
| def checkTestSuite(Map parallelTasks = [:], Map item = [:]) { | ||
| def suite = item.suite | ||
| def platforms = item.platforms | ||
| def sshexec(connection, cmd){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
candidate to be a step in the library :D
.ci/Jenkinsfile
Outdated
| sh "ssh -tt -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ${env.WORKSPACE}/${env.BASE_DIR}/e2essh ${connection} -- '${cmd}'" | ||
| } | ||
|
|
||
| def scpr(connection, remote_src, local_dst){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
candidate to be a step in the library :D
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
|
/test |
1 similar comment
|
/test |
.ci/Jenkinsfile
Outdated
| /* | ||
| * Runs python in venv | ||
| */ | ||
| def pyrun(args){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another candidate for the library?
Signed-off-by: Adam Stokes <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
Co-authored-by: Manuel de la Peña <[email protected]>
Signed-off-by: Adam Stokes <[email protected]>
Signed-off-by: Adam Stokes <[email protected]>
Signed-off-by: Adam Stokes <[email protected]>
Signed-off-by: Adam Stokes <[email protected]>
Signed-off-by: Adam Stokes <[email protected]>
The expression in the e2e-tests already handles both skip_tests and force_skip_git_checks. We make use of the skip_tests env here to skip those test suites if no files are changed Signed-off-by: Adam Stokes <[email protected]>
|
/test |
Signed-off-by: Adam Stokes <[email protected]>
* Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/Jenkinsfile
* Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/Jenkinsfile # .gitignore
* Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/.e2e-tests.yaml # .ci/Jenkinsfile # .gitignore # e2e/_suites/fleet/features/fleet_mode_agent.feature # e2e/_suites/fleet/features/preconfigured_policies.feature # e2e/_suites/fleet/fleet.go # go.sum
* Support running tests in full VM's (#1740) * Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/Jenkinsfile * Fix conflict Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Adam Stokes <[email protected]>
* Support running tests in full VM's (#1740) * Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/Jenkinsfile # .gitignore * Fix conflicts Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Adam Stokes <[email protected]>
* Support running tests in full VM's (#1740) * Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/.e2e-tests.yaml # .ci/Jenkinsfile # .gitignore # e2e/_suites/fleet/features/fleet_mode_agent.feature # e2e/_suites/fleet/features/preconfigured_policies.feature # e2e/_suites/fleet/fleet.go # go.sum * Fix conflicts Signed-off-by: Adam Stokes <[email protected]> * fix: remove not implemented function call The backport added a reference to code implemented in: Test preconfigured agent policies and output (#1680) But this PR was not backported to 7.15 because there is no support to preconfigured policies. Co-authored-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
otherwise it fails in the ephemeral workers relative path was added in elastic#1740
Signed-off-by: Adam Stokes [email protected]
Checklist
make unit-test), and they are passing locallymake noticein the proper directory)How to test this PR locally
Please see
.ci/README.mdRelated issues