Skip to content

Commit 5304459

Browse files
authored
Merge branch 'master' into feature/disable-access-mgmt-tab-when-no-roles
2 parents 72ef2d6 + 4b87156 commit 5304459

File tree

735 files changed

+39888
-12660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

735 files changed

+39888
-12660
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import setuptools
2+
3+
folders = ["./smoke-test/tests"]
4+
5+
for folder in folders:
6+
print(f"Checking folder {folder}")
7+
a = [i for i in setuptools.find_packages(folder) if "cypress" not in i]
8+
b = [i for i in setuptools.find_namespace_packages(folder) if "cypress" not in i]
9+
10+
in_a_not_b = set(a) - set(b)
11+
in_b_not_a = set(b) - set(a)
12+
13+
assert (
14+
len(in_a_not_b) == 0
15+
), f"Found packages in {folder} that are not in namespace packages: {in_a_not_b}"
16+
assert (
17+
len(in_b_not_a) == 0
18+
), f"Found namespace packages in {folder} that are not in packages: {in_b_not_a}"

.github/workflows/airflow-plugin.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ jobs:
8787
token: ${{ secrets.CODECOV_TOKEN }}
8888
directory: .
8989
fail_ci_if_error: false
90-
flags: airflow-${{ matrix.python-version }}-${{ matrix.extraPythonRequirement }}
91-
name: pytest-airflow
90+
flags: airflow,airflow-${{ matrix.extra_pip_extras }}
91+
name: pytest-airflow-${{ matrix.python-version }}-${{ matrix.extra_pip_requirements }}
9292
verbose: true
9393

9494
event-file:

.github/workflows/docker-unified.yml

+21
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,29 @@ env:
3737
DATAHUB_INGESTION_IMAGE: "acryldata/datahub-ingestion"
3838

3939
jobs:
40+
check_lint:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Check out the repo
44+
uses: hsheth2/sane-checkout-action@v1
45+
- uses: actions/setup-python@v4
46+
with:
47+
python-version: "3.10"
48+
cache: "pip"
49+
- name: Set up JDK 17
50+
uses: actions/setup-java@v3
51+
with:
52+
distribution: "zulu"
53+
java-version: 17
54+
- name: Ensure packages are correct
55+
run: |
56+
python ./.github/scripts/check_python_package.py
57+
- name: Run lint on smoke test
58+
run: |
59+
./gradlew :smoke-test:lint
4060
setup:
4161
runs-on: ubuntu-latest
62+
needs: check_lint
4263
outputs:
4364
tag: ${{ steps.tag.outputs.tag }}
4465
slim_tag: ${{ steps.tag.outputs.slim_tag }}

.github/workflows/metadata-ingestion.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# DATAHUB_LOOKML_GIT_TEST_SSH_KEY: ${{ secrets.DATAHUB_LOOKML_GIT_TEST_SSH_KEY }}
3232
strategy:
3333
matrix:
34-
python-version: ["3.7", "3.10"]
34+
python-version: ["3.8", "3.10"]
3535
command:
3636
[
3737
"testQuick",
@@ -40,7 +40,7 @@ jobs:
4040
"testIntegrationBatch2",
4141
]
4242
include:
43-
- python-version: "3.7"
43+
- python-version: "3.8"
4444
- python-version: "3.10"
4545
fail-fast: false
4646
steps:

.github/workflows/spark-smoke-test.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ jobs:
4242
cache: "pip"
4343
- name: Install dependencies
4444
run: ./metadata-ingestion/scripts/install_deps.sh
45+
- name: Disk Check
46+
run: df -h . && docker images
4547
- name: Remove images
4648
run: docker image prune -a -f || true
49+
- name: Disk Check
50+
run: df -h . && docker images
4751
- name: Smoke test
4852
run: |
4953
./gradlew :metadata-integration:java:spark-lineage:integrationTest \
@@ -54,12 +58,24 @@ jobs:
5458
-x :datahub-web-react:yarnBuild \
5559
-x :datahub-web-react:distZip \
5660
-x :datahub-web-react:jar
61+
- name: store logs
62+
if: failure()
63+
run: |
64+
docker ps -a
65+
docker logs datahub-gms >& gms-${{ matrix.test_strategy }}.log || true
66+
docker logs datahub-actions >& actions-${{ matrix.test_strategy }}.log || true
67+
docker logs broker >& broker-${{ matrix.test_strategy }}.log || true
68+
docker logs mysql >& mysql-${{ matrix.test_strategy }}.log || true
69+
docker logs elasticsearch >& elasticsearch-${{ matrix.test_strategy }}.log || true
70+
docker logs datahub-frontend-react >& frontend-${{ matrix.test_strategy }}.log || true
5771
- name: Upload logs
5872
uses: actions/upload-artifact@v3
5973
if: failure()
6074
with:
6175
name: docker logs
62-
path: "docker/build/container-logs/*.log"
76+
path: |
77+
"**/build/container-logs/*.log"
78+
"*.log"
6379
- uses: actions/upload-artifact@v3
6480
if: always()
6581
with:

build.gradle

+9-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ buildscript {
3030

3131
ext.junitJupiterVersion = '5.6.1'
3232
// Releases: https://github.com/linkedin/rest.li/blob/master/CHANGELOG.md
33-
ext.pegasusVersion = '29.48.4'
33+
ext.pegasusVersion = '29.51.0'
3434
ext.mavenVersion = '3.6.3'
3535
ext.springVersion = '6.1.2'
3636
ext.springBootVersion = '3.2.1'
@@ -221,7 +221,7 @@ project.ext.externalDependency = [
221221
'resilience4j': 'io.github.resilience4j:resilience4j-retry:1.7.1',
222222
'rythmEngine': 'org.rythmengine:rythm-engine:1.3.0',
223223
'servletApi': 'jakarta.servlet:jakarta.servlet-api:6.0.0',
224-
'shiroCore': 'org.apache.shiro:shiro-core:1.11.0',
224+
'shiroCore': 'org.apache.shiro:shiro-core:1.13.0',
225225
'snakeYaml': 'org.yaml:snakeyaml:2.0',
226226
'sparkSql' : 'org.apache.spark:spark-sql_2.12:3.0.3',
227227
'sparkHive' : 'org.apache.spark:spark-hive_2.12:3.0.3',
@@ -269,13 +269,14 @@ allprojects {
269269
apply plugin: 'eclipse'
270270
// apply plugin: 'org.gradlex.java-ecosystem-capabilities'
271271

272-
tasks.withType(Test).configureEach {
273-
// https://docs.gradle.org/current/userguide/performance.html
274-
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
272+
tasks.withType(Test).configureEach { task -> if (task.project.name != "metadata-io") {
273+
// https://docs.gradle.org/current/userguide/performance.html
274+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
275275

276-
if (project.configurations.getByName("testImplementation").getDependencies()
277-
.any{ it.getName().contains("testng") }) {
278-
useTestNG()
276+
if (project.configurations.getByName("testImplementation").getDependencies()
277+
.any { it.getName().contains("testng") }) {
278+
useTestNG()
279+
}
279280
}
280281
}
281282

buildSrc/build.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@ dependencies {
2525

2626
compileOnly 'org.projectlombok:lombok:1.18.30'
2727
annotationProcessor 'org.projectlombok:lombok:1.18.30'
28-
29-
// pegasus dependency, overrides for tasks
30-
implementation 'com.linkedin.pegasus:gradle-plugins:29.48.4'
3128
}

0 commit comments

Comments
 (0)