MINOR: Update Playwright integration test workflows to use 'playwright' deps (#20558)

This commit is contained in:
Ayush Shah 2025-04-01 23:42:31 +05:30 committed by GitHub
parent bce18b23c1
commit eca3770a93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 23 additions and 5 deletions

View File

@ -84,7 +84,7 @@ jobs:
with:
python-version: "3.9"
args: "-d mysql"
ingestion_dependency: "all"
ingestion_dependency: "playwright"
- name: Run Playwright Integration Tests with browser ${{ matrix.browser-type }}
env:
E2E_REDSHIFT_HOST_PORT: ${{ secrets.E2E_REDSHIFT_HOST_PORT }}

View File

@ -84,7 +84,7 @@ jobs:
with:
python-version: "3.9"
args: "-d postgresql"
ingestion_dependency: "all"
ingestion_dependency: "playwright"
- name: Run Playwright Integration Tests with browser ${{ matrix.browser-type }}
env:
E2E_REDSHIFT_HOST_PORT: ${{ secrets.E2E_REDSHIFT_HOST_PORT }}

View File

@ -96,7 +96,7 @@ jobs:
with:
python-version: '3.9'
args: "-d mysql"
ingestion_dependency: "all"
ingestion_dependency: "playwright"
- name: Install dependencies
working-directory: openmetadata-ui/src/main/resources/ui/

View File

@ -95,7 +95,7 @@ jobs:
with:
python-version: '3.9'
args: "-d postgresql"
ingestion_dependency: "all"
ingestion_dependency: "playwright"
- name: Install dependencies
working-directory: openmetadata-ui/src/main/resources/ui/

View File

@ -437,6 +437,23 @@ e2e_test = {
"pytest-base-url",
}
# Define playwright_dependencies as a set of packages required for Playwright tests
# These packages correspond to the ingestion connectors used in Playwright tests
playwright_dependencies = {
*plugins["mysql"],
*plugins["bigquery"],
*plugins["kafka"],
*plugins["mlflow"],
*plugins["snowflake"],
*plugins["superset"],
*plugins["postgres"],
*plugins["redshift"],
*plugins["airflow"],
*plugins["datalake-s3"],
*e2e_test
# Add other plugins as needed for Playwright tests
}
extended_testing = {
"Faker", # For Sample Data Generation
}
@ -466,6 +483,7 @@ setup(
"data-insight": list(plugins["elasticsearch"]),
**{plugin: list(dependencies) for (plugin, dependencies) in plugins.items()},
"all": filter_requirements({"airflow", "db2", "great-expectations"}),
"playwright": list(playwright_dependencies),
"slim": filter_requirements(
{
"airflow",

View File

@ -70,7 +70,7 @@ class BaseModel(PydanticBaseModel):
raise exc
return values
def model_dump_json( # pylint: disable=too-many-arguments
def model_dump_json( # pylint: disable=too-many-arguments,unused-argument
self,
*,
mask_secrets: Optional[bool] = None,