-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,256 changed files
with
247,469 additions
and
21,244 deletions.
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
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 |
---|---|---|
@@ -1,18 +1,33 @@ | ||
import setuptools | ||
import os | ||
|
||
folders = ["./smoke-test/tests"] | ||
|
||
for folder in folders: | ||
print(f"Checking folder {folder}") | ||
a = [i for i in setuptools.find_packages(folder) if "cypress" not in i] | ||
b = [i for i in setuptools.find_namespace_packages(folder) if "cypress" not in i] | ||
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 | ||
] | ||
|
||
in_a_not_b = set(a) - set(b) | ||
in_b_not_a = set(b) - set(a) | ||
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_a_not_b) == 0 | ||
), f"Found packages in {folder} that are not in namespace packages: {in_a_not_b}" | ||
len(in_packages_not_namespace) == 0 | ||
), f"Found packages in {folder} that are not in namespace packages: {in_packages_not_namespace}" | ||
assert ( | ||
len(in_b_not_a) == 0 | ||
), f"Found namespace packages in {folder} that are not in packages: {in_b_not_a}" | ||
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 |
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 |
---|---|---|
|
@@ -57,18 +57,23 @@ jobs: | |
timeout-minutes: 60 | ||
needs: setup | ||
steps: | ||
- name: Free up disk space | ||
run: | | ||
sudo apt-get remove 'dotnet-*' azure-cli || true | ||
sudo rm -rf /usr/local/lib/android/ || true | ||
sudo docker image prune -a -f || true | ||
- uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: ${{ matrix.timezone }} | ||
- name: Check out the repo | ||
uses: acryldata/sane-checkout-action@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "zulu" | ||
java-version: 17 | ||
- uses: gradle/actions/setup-gradle@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
if: ${{ needs.setup.outputs.ingestion_change == 'true' }} | ||
with: | ||
python-version: "3.10" | ||
|
@@ -86,6 +91,10 @@ jobs: | |
-x :metadata-ingestion-modules:airflow-plugin:check \ | ||
-x :metadata-ingestion-modules:dagster-plugin:build \ | ||
-x :metadata-ingestion-modules:dagster-plugin:check \ | ||
-x :metadata-ingestion-modules:prefect-plugin:build \ | ||
-x :metadata-ingestion-modules:prefect-plugin:check \ | ||
-x :metadata-ingestion-modules:gx-plugin:build \ | ||
-x :metadata-ingestion-modules:gx-plugin:check \ | ||
-x :datahub-frontend:build \ | ||
-x :datahub-web-react:build \ | ||
--parallel | ||
|
@@ -118,7 +127,7 @@ jobs: | |
steps: | ||
- name: Check out the repo | ||
uses: acryldata/sane-checkout-action@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Quickstart Compose Validation | ||
|
@@ -131,4 +140,4 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} | ||
path: ${{ github.event_path }} |
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
Oops, something went wrong.