forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'datahub-project:master' into upstream-master
- Loading branch information
Showing
6,930 changed files
with
1,272,949 additions
and
254,177 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: "Identify CI Optimizations" | ||
description: "Determine if code changes are specific to certain modules." | ||
|
||
outputs: | ||
frontend-only: | ||
description: "Frontend only change" | ||
value: ${{ steps.filter.outputs.frontend == 'true' && steps.filter.outputs.ingestion == 'false' && steps.filter.outputs.backend == 'false' }} | ||
ingestion-only: | ||
description: "Ingestion only change" | ||
value: ${{ steps.filter.outputs.frontend == 'false' && steps.filter.outputs.ingestion == 'true' && steps.filter.outputs.backend == 'false' }} | ||
backend-only: | ||
description: "Backend only change" | ||
value: ${{ steps.filter.outputs.frontend == 'false' && steps.filter.outputs.ingestion == 'false' && steps.filter.outputs.backend == 'true' }} | ||
backend-change: | ||
description: "Backend code has changed" | ||
value: ${{ steps.filter.outputs.backend == 'true' }} | ||
ingestion-change: | ||
description: "Ingestion code has changed" | ||
value: ${{ steps.filter.outputs.ingestion == 'true' }} | ||
ingestion-base-change: | ||
description: "Ingestion base image docker image has changed" | ||
value: ${{ steps.filter.outputs.ingestion-base == 'true' }} | ||
frontend-change: | ||
description: "Frontend code has changed" | ||
value: ${{ steps.filter.outputs.frontend == 'true' }} | ||
docker-change: | ||
description: "Docker code has changed" | ||
value: ${{ steps.filter.outputs.docker == 'true' }} | ||
kafka-setup-change: | ||
description: "Kafka setup docker change" | ||
value: ${{ steps.filter.outputs.kafka-setup == 'true' }} | ||
mysql-setup-change: | ||
description: "Mysql setup docker change" | ||
value: ${{ steps.filter.outputs.mysql-setup == 'true' }} | ||
postgres-setup-change: | ||
description: "Postgres setup docker change" | ||
value: ${{ steps.filter.outputs.postgres-setup == 'true' }} | ||
elasticsearch-setup-change: | ||
description: "Elasticsearch setup docker change" | ||
value: ${{ steps.filter.outputs.elasticsearch-setup == 'true' }} | ||
smoke-test-change: | ||
description: "Smoke test change" | ||
value: ${{ steps.filter.outputs.smoke-test == 'true' }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
token: "" # Empty token forces it to use raw git commands. | ||
filters: | | ||
frontend: | ||
- "datahub-frontend/**" | ||
- "datahub-web-react/**" | ||
- "docker/datahub-frontend/**" | ||
ingestion: | ||
- "metadata-ingestion-modules/**" | ||
- "metadata-ingestion/**" | ||
- "metadata-models/**" | ||
- "docker/datahub-ingestion-base/**" | ||
- "docker/datahub-ingestion/**" | ||
ingestion-base: | ||
- "docker/datahub-ingestion-base/**" | ||
docker: | ||
- "docker/**" | ||
backend: | ||
- "metadata-models/**" | ||
- "datahub-upgrade/**" | ||
- "entity-registry/**" | ||
- "li-utils/**" | ||
- "metadata-auth/**" | ||
- "metadata-dao-impl/**" | ||
- "metadata-events/**" | ||
- "metadata-io/**" | ||
- "metadata-jobs/**" | ||
- "metadata-service/**" | ||
- "metadata-utils/**" | ||
- "metadata-operation-context/**" | ||
- "datahub-graphql-core/**" | ||
- "docker/**" | ||
kafka-setup: | ||
- "docker/kafka-setup/**" | ||
mysql-setup: | ||
- "docker/mysql-setup/**" | ||
postgres-setup: | ||
- "docker/postgres-setup/**" | ||
elasticsearch-setup: | ||
- "docker/elasticsearch-setup/**" | ||
smoke-test: | ||
- "smoke-test/**" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import setuptools | ||
import os | ||
|
||
folders = ["./smoke-test/tests"] | ||
|
||
for folder in folders: | ||
print(f"Checking folder {folder}") | ||
packages = [i for i in setuptools.find_packages(folder) if "cypress" not in i] | ||
namespace_packages = [ | ||
i for i in setuptools.find_namespace_packages(folder) if "cypress" not in i | ||
] | ||
|
||
print("Packages found:", packages) | ||
print("Namespace packages found:", namespace_packages) | ||
|
||
in_packages_not_namespace = set(packages) - set(namespace_packages) | ||
in_namespace_not_packages = set(namespace_packages) - set(packages) | ||
|
||
if in_packages_not_namespace: | ||
print(f"Packages not in namespace packages: {in_packages_not_namespace}") | ||
if in_namespace_not_packages: | ||
print(f"Namespace packages not in packages: {in_namespace_not_packages}") | ||
for pkg in in_namespace_not_packages: | ||
pkg_path = os.path.join(folder, pkg.replace(".", os.path.sep)) | ||
print(f"Contents of {pkg_path}:") | ||
print(os.listdir(pkg_path)) | ||
|
||
assert ( | ||
len(in_packages_not_namespace) == 0 | ||
), f"Found packages in {folder} that are not in namespace packages: {in_packages_not_namespace}" | ||
assert ( | ||
len(in_namespace_not_packages) == 0 | ||
), f"Found namespace packages in {folder} that are not in packages: {in_namespace_not_packages}" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
TARGET_DIR="${TARGET_DIR:=docker_logs}" | ||
TEST_STRATEGY="${TEST_STRATEGY:=}" | ||
|
||
mkdir -p "$TARGET_DIR" | ||
for name in `docker ps -a --format '{{.Names}}'`; | ||
do | ||
docker logs "$name" >& "${TARGET_DIR}/${name}${TEST_STRATEGY}.log" || true | ||
done |
Oops, something went wrong.