chore(test): ingestion playwright flakiness (#18051)

This commit is contained in:
Chirag Madlani 2024-10-01 16:06:21 +05:30 committed by GitHub
parent 2260857f10
commit 2a06f602e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 20 additions and 31 deletions

View File

@ -125,14 +125,8 @@ class MysqlIngestionClass extends ServiceBaseClass {
)
.then((res) => res.json());
// Re-deploy before running the ingestion
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
);
await page.getByTestId('re-deploy-button').click();
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
@ -141,6 +135,9 @@ class MysqlIngestionClass extends ServiceBaseClass {
await toastNotification(page, `Pipeline triggered successfully!`);
// need manual wait to make sure we are awaiting on latest run results
await page.waitForTimeout(2000);
await this.handleIngestionRetry('profiler', page);
});

View File

@ -131,14 +131,8 @@ class PostgresIngestionClass extends ServiceBaseClass {
)
.then((res) => res.json());
// Re-deploy before running the ingestion
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
);
await page.getByTestId('re-deploy-button').click();
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
);
@ -147,6 +141,9 @@ class PostgresIngestionClass extends ServiceBaseClass {
await toastNotification(page, `Pipeline triggered successfully!`);
// need manual wait to make sure we are awaiting on latest run results
await page.waitForTimeout(2000);
await this.handleIngestionRetry('usage', page);
});

View File

@ -153,14 +153,8 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass {
)
.then((res) => res.json());
// Re-deploy before running the ingestion
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
);
await page.getByTestId('re-deploy-button').click();
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
await page.click(
`[data-row-key*="${response.data[0].name}"] [data-testid="more-actions"]`
);
@ -168,6 +162,9 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass {
await toastNotification(page, `Pipeline triggered successfully!`);
// need manual wait to make sure we are awaiting on latest run results
await page.waitForTimeout(2000);
await this.handleIngestionRetry('dbt', page);
});

View File

@ -177,18 +177,17 @@ class ServiceBaseClass {
.getByTestId('loader')
.waitFor({ state: 'detached' });
// Re-deploy before running the ingestion
await page.getByTestId('more-actions').first().click();
await page.getByTestId('re-deploy-button').click();
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
await page.getByTestId('more-actions').first().click();
await page.getByTestId('run-button').click();
await toastNotification(page, `Pipeline triggered successfully!`);
// need manual wait to make sure we are awaiting on latest run results
await page.waitForTimeout(2000);
await this.handleIngestionRetry('metadata', page);
}
@ -444,18 +443,17 @@ class ServiceBaseClass {
.getByRole('cell', { name: 'Pause Logs' })
.waitFor({ state: 'visible' });
// Re-deploy before running the ingestion
await page.getByTestId('more-actions').first().click();
await page.getByTestId('re-deploy-button').click();
// need manual wait to settle down the deployed pipeline, before triggering the pipeline
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
await page.getByTestId('more-actions').first().click();
await page.getByTestId('run-button').click();
await toastNotification(page, `Pipeline triggered successfully!`);
// need manual wait to make sure we are awaiting on latest run results
await page.waitForTimeout(2000);
// Wait for success
await this.handleIngestionRetry('metadata', page);