-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens][FTR] Isolate logsDB and TSDB tests into separate suites #200007
Conversation
/ci |
@@ -1563,7 +1563,7 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont | |||
await retry.waitFor('rendering count to stabilize', async () => { | |||
const firstCount = await getRenderingCount(); | |||
|
|||
await common.sleep(1000); | |||
await common.sleep(500); |
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.
Could you run flaky test runner to make sure it doesn't cause flakiness?
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.
Did a broad flaky test runner with 33x run of most of the Lens suites: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7409
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7409[✅] x-pack/test/functional/apps/lens/group2/config.ts: 33/33 tests passed. |
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7503[✅] x-pack/test/functional/apps/lens/group7/config.ts: 100/100 tests passed. |
@@ -23,6 +23,11 @@ export function DataStreamProvider({ getService, getPageObject }: FtrProviderCon | |||
deleteOriginal: false, | |||
}; | |||
|
|||
async function existsDataStream(stream: string) { |
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.
Where is this function used? I don't see a test case that uses it. Also, wouldn't it be better to call it something like getDataStream
?
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.
It is not used anywhere yet, but initially I thought to expose it to handle errors when creating a data stream with the same name of an existing one (i.e. manual stop of a failing FTR and subsequent restart), then I've addressed the issue with a bespoken code here: https://github.com/elastic/kibana/pull/200007/files#diff-460cf76ae380343d7b854f412b3a2daa5ccde74135d55c7b383d5d1321b15661R261-R266
But I've left this method exposed as I thought it may be useful to have a specific utility to check the existence of a datastream. If you want I can remove it, no strong opinion.
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.
I see. I would say let's remove it for now as it's not needed yet. Also, it's technically a single line of code so not sure if we need a helper function for that.
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.
Removed with 6c0cf8e
log.info(`Found resource_already_exists_exception: delete and rety again...`); | ||
await deleteDataStream(streamIndex); | ||
await createDataStream(streamIndex, mappings, mode); | ||
} |
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.
Sorry, I missed to add one suggestion here: if the error is not resource_already_exists_exception
I think we should still throw the error so that we know if the data stream has failed to create.
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.
Done with 768dcfc
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.
Thanks for addressing my comments! Data stream service changes lgtm.
…ibana into fix/speedup-tsdb-logsdb
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]
History
|
Summary
This PR contains few changes to improve the FTR CI speed:
TSDB andLogsDB into a newgroup7
Created a newexistsDataStream
method for thedataStream
serviceChecklist