-
Notifications
You must be signed in to change notification settings - Fork 176
[CI] Integration tests regrouping #6349
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
Conversation
if os.Getenv("BUILDKITE_PULL_REQUEST") != "" { | ||
return 50 | ||
} |
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.
This deserves a comment in my opinion.
@@ -40,8 +40,11 @@ steps: | |||
matrix: | |||
- default | |||
- fleet | |||
- fleet-endpoint-security |
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.
The ordering in these matrix lists looks arbitrary. Is there a reason for the ordering, or should we have them sorted alphabetically?
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.
Honestly, there are no ordering rules. Just placed fleet groups together
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.
Are you going to sort them? If the order doesn't matter, I think it'd be a better user experience when engineers are scrolling through the results of a BK job to have them alphabetical. Plus it would make these lists more easily maintainable (until we figure out making the groups/matrix dynamic).
This seems to be better and no longer getting the weird enrollment race conditions that used to be present. The change I made was just an improvement to an error message in hopes to track this down. That error is no longer occurring on many tests like it was before. Does seem to have one test related to windows still failing, giving this another clean run to see if I can track that one down. |
|
This is looking like it is now passing, I think this is ready to be merged. I recently did some changes to enrollment in Fleet Server that might relate to this being less likely to cause issues with enrollment. Whatever the case was it is no longer an issue with this PR. Needs an approval from @elastic/ingest-eng-prod to allow merge. |
@pkoutsovasilis heads up, this is going to be merged. |
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) # Conflicts: # pkg/testing/tools/fleettools/fleet.go # testing/integration/install_test.go
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f)
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) # Conflicts: # pkg/testing/tools/fleettools/fleet.go # testing/integration/install_test.go
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f)
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f)
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
* [CI] Integration tests regrouping (#6349) * TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) # Conflicts: # pkg/testing/tools/fleettools/fleet.go # testing/integration/install_test.go * Resolved Conflicts --------- Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
* [CI] Integration tests regrouping (#6349) * TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) # Conflicts: # pkg/testing/tools/fleettools/fleet.go # testing/integration/install_test.go * Resolved install_test.go * Resolved conflicts --------- Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co> Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
* TestRepeatedInstallUninstall optimisation * cleanup * cleanup * cleanup * cleanup * TestInstallDefendWithMTLSandEncCertKey to fleet-install-defend group * Extracted standalone-upgrade group * Commented iterations for TestRepeatedInstallUninstall * Reordered groups in pipeline matrix * Fix error message to only include agents on the same policy. --------- Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit 37be67f) Co-authored-by: Pavel Zorin <pavel.zorin@elastic.co>
What does this PR do?
Extracts 3 new test groups that are executed separately:
Now the longest running group is
fleet-endpoint-security
(42 minutes)The
TestRepeatedInstallUninstall
on PRs will have 50 iterations instead of 100. For the main and release branches the iterations number will stay 100.Why is it important?
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
Questions to ask yourself