ROX-8674: Replace vmWorkflowUtils helper functions to fix timing problems in integration tests#3068
Merged
pedrottimark merged 5 commits intomasterfrom Sep 15, 2022
Conversation
2c2a644 to
6801cde
Compare
|
Images are ready for the commit at 3592391. To use with deploy scripts, first |
3a7af52 to
4ed0a69
Compare
Contributor
Author
Contributor
Author
|
/test gke-ui-e2e-tests |
4ed0a69 to
3592391
Compare
added 5 commits
September 14, 2022 18:54
…lems in integration tests
3592391 to
104914b
Compare
Contributor
Author
|
/test gke-ui-e2e-tests |
vjwilson
approved these changes
Sep 15, 2022
Comment on lines
+84
to
+98
| const keyForEntity = { | ||
| clusters: 'CLUSTER', | ||
| components: 'COMPONENT', | ||
| 'image-components': 'IMAGE_COMPONENT', | ||
| 'node-components': 'NODE_COMPONENT', | ||
| cves: 'CVE', | ||
| 'image-cves': 'IMAGE_CVE', | ||
| 'node-cves': 'NODE_CVE', | ||
| 'cluster-cves': 'CLUSTER_CVE', | ||
| deployments: 'DEPLOYMENT', | ||
| images: 'IMAGE', | ||
| namespaces: 'NAMESPACE', | ||
| nodes: 'NODE', | ||
| policies: 'POLICY', | ||
| }; |
Contributor
There was a problem hiding this comment.
Fine where it is for this PR, but this looks like something that belongs exported from a helper file. It could be used in multiple VM tests files, and even in Config Mgmt tests.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Test failures
cypress/integration/vulnmanagement/componentsListPages.test.js
The trend continues: during past 12 hours on 2022-09-13, 6 more failures for master builds compared to only 3 successes.
Recent test failures are similar to an earlier test failure on 2021-11-30
Analysis
The test files for entities have a big test, for example:
'Clusters list Page and its single entity detail page, and sub list validations'componentsListPages has 2 big tests back-to-back, and the second fails often: double trouble!
Solution
Sadly, the solution is difficult to break down into smaller steps.
Changed files
Edit cypress/constants/apiEndpoints.js
Edit cypress/helpers/vulnmanagement/entities.js
requestConfigForDashboardfor functions which visit dashboard.keyForEntityobject.verifyLinksForSecondaryEntitiesto replaceallChecksForEntitiesandallCVECheckfunction calls.verifyFilteredSecondaryEntitiesLinkto replaceallFixableCheckfunction calls.verifyFixableCVEsLinkAndRiskAcceptanceTabsto replaceallFixableCheckfunction call plus inline assertions for images.Edit 7 test files:
Add 5 test files:
describe.skipsee Residue point 5Residue
hasExpectedHeaderColumnsfrom vmWorkflowUtils.js to entities.js as prerequisite to delete vmWorkflowUtils when we delete'ROX_FRONTEND_VM_UPDATES'feature flag. Decide whether to explicitly include checkbox in expected columns.describe.skipblock in imageCvesListPages is still relevant.Checklist
Testing Performed