mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-04 23:00:25 +00:00
fix(build): set @cliMajorVersion@
correctly (#9228)
This commit is contained in:
parent
bb7300251f
commit
0e3efabd2c
6
.github/workflows/build-and-test.yml
vendored
6
.github/workflows/build-and-test.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
command: [
|
command: [
|
||||||
# metadata-ingestion and airflow-plugin each have dedicated build jobs
|
# metadata-ingestion and airflow-plugin each have dedicated build jobs
|
||||||
"except_metadata_ingestion",
|
"except_metadata_ingestion",
|
||||||
"frontend"
|
"frontend",
|
||||||
]
|
]
|
||||||
timezone: ["UTC", "America/New_York"]
|
timezone: ["UTC", "America/New_York"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -36,9 +36,7 @@ jobs:
|
|||||||
- uses: szenius/set-timezone@v1.0
|
- uses: szenius/set-timezone@v1.0
|
||||||
with:
|
with:
|
||||||
timezoneLinux: ${{ matrix.timezone }}
|
timezoneLinux: ${{ matrix.timezone }}
|
||||||
- uses: actions/checkout@v3
|
- uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/check-datahub-jars.yml
vendored
4
.github/workflows/check-datahub-jars.yml
vendored
@ -27,9 +27,7 @@ jobs:
|
|||||||
command: ["datahub-client", "datahub-protobuf", "spark-lineage"]
|
command: ["datahub-client", "datahub-protobuf", "spark-lineage"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/code-checks.yml
vendored
4
.github/workflows/code-checks.yml
vendored
@ -31,9 +31,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
4
.github/workflows/docker-ingestion-smoke.yml
vendored
4
.github/workflows/docker-ingestion-smoke.yml
vendored
@ -50,9 +50,7 @@ jobs:
|
|||||||
if: ${{ needs.setup.outputs.publish == 'true' }}
|
if: ${{ needs.setup.outputs.publish == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: ./.github/actions/docker-custom-build-and-push
|
uses: ./.github/actions/docker-custom-build-and-push
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/docker-postgres-setup.yml
vendored
4
.github/workflows/docker-postgres-setup.yml
vendored
@ -46,9 +46,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: ./.github/actions/docker-custom-build-and-push
|
uses: ./.github/actions/docker-custom-build-and-push
|
||||||
with:
|
with:
|
||||||
|
52
.github/workflows/docker-unified.yml
vendored
52
.github/workflows/docker-unified.yml
vendored
@ -74,9 +74,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Pre-build artifacts for docker image
|
- name: Pre-build artifacts for docker image
|
||||||
run: |
|
run: |
|
||||||
./gradlew :metadata-service:war:build -x test --parallel
|
./gradlew :metadata-service:war:build -x test --parallel
|
||||||
@ -132,9 +130,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Pre-build artifacts for docker image
|
- name: Pre-build artifacts for docker image
|
||||||
run: |
|
run: |
|
||||||
./gradlew :metadata-jobs:mae-consumer-job:build -x test --parallel
|
./gradlew :metadata-jobs:mae-consumer-job:build -x test --parallel
|
||||||
@ -190,9 +186,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Pre-build artifacts for docker image
|
- name: Pre-build artifacts for docker image
|
||||||
run: |
|
run: |
|
||||||
./gradlew :metadata-jobs:mce-consumer-job:build -x test --parallel
|
./gradlew :metadata-jobs:mce-consumer-job:build -x test --parallel
|
||||||
@ -248,9 +242,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Pre-build artifacts for docker image
|
- name: Pre-build artifacts for docker image
|
||||||
run: |
|
run: |
|
||||||
./gradlew :datahub-upgrade:build -x test --parallel
|
./gradlew :datahub-upgrade:build -x test --parallel
|
||||||
@ -306,9 +298,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Pre-build artifacts for docker image
|
- name: Pre-build artifacts for docker image
|
||||||
run: |
|
run: |
|
||||||
./gradlew :datahub-frontend:dist -x test -x yarnTest -x yarnLint --parallel
|
./gradlew :datahub-frontend:dist -x test -x yarnTest -x yarnLint --parallel
|
||||||
@ -366,9 +356,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: ./.github/actions/docker-custom-build-and-push
|
uses: ./.github/actions/docker-custom-build-and-push
|
||||||
with:
|
with:
|
||||||
@ -388,9 +376,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: ./.github/actions/docker-custom-build-and-push
|
uses: ./.github/actions/docker-custom-build-and-push
|
||||||
with:
|
with:
|
||||||
@ -410,9 +396,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: ./.github/actions/docker-custom-build-and-push
|
uses: ./.github/actions/docker-custom-build-and-push
|
||||||
with:
|
with:
|
||||||
@ -434,9 +418,7 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
@ -468,9 +450,7 @@ jobs:
|
|||||||
needs: [setup, datahub_ingestion_base_build]
|
needs: [setup, datahub_ingestion_base_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
@ -510,9 +490,7 @@ jobs:
|
|||||||
needs: [setup, datahub_ingestion_base_build]
|
needs: [setup, datahub_ingestion_base_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
@ -554,9 +532,7 @@ jobs:
|
|||||||
needs: [setup, datahub_ingestion_base_slim_build]
|
needs: [setup, datahub_ingestion_base_slim_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
@ -637,9 +613,7 @@ jobs:
|
|||||||
needs: [setup, datahub_ingestion_base_full_build]
|
needs: [setup, datahub_ingestion_base_full_build]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- uses: dorny/paths-filter@v2
|
- uses: dorny/paths-filter@v2
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/publish-datahub-jars.yml
vendored
4
.github/workflows/publish-datahub-jars.yml
vendored
@ -48,9 +48,7 @@ jobs:
|
|||||||
needs: ["check-secret", "setup"]
|
needs: ["check-secret", "setup"]
|
||||||
if: ${{ needs.check-secret.outputs.publish-enabled == 'true' }}
|
if: ${{ needs.check-secret.outputs.publish-enabled == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/spark-smoke-test.yml
vendored
5
.github/workflows/spark-smoke-test.yml
vendored
@ -29,10 +29,7 @@ jobs:
|
|||||||
spark-smoke-test:
|
spark-smoke-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: hsheth2/sane-checkout-action@v1
|
||||||
with:
|
|
||||||
fetch-depth: 800
|
|
||||||
fetch-tags: true
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
}
|
}
|
||||||
|
apply from: "../../gradle/versioning/versioning.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation externalDependency.jacksonDataBind
|
implementation externalDependency.jacksonDataBind
|
||||||
@ -13,3 +14,7 @@ dependencies {
|
|||||||
|
|
||||||
annotationProcessor externalDependency.lombok
|
annotationProcessor externalDependency.lombok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processResources.configure {
|
||||||
|
finalizedBy printVersionDetails // always print version details
|
||||||
|
}
|
||||||
|
@ -44,6 +44,7 @@ authorization:
|
|||||||
restApiAuthorization: ${REST_API_AUTHORIZATION_ENABLED:false}
|
restApiAuthorization: ${REST_API_AUTHORIZATION_ENABLED:false}
|
||||||
|
|
||||||
ingestion:
|
ingestion:
|
||||||
|
# The value of cliMajorVersion is substituted in by the processResources Gradle task.
|
||||||
enabled: ${UI_INGESTION_ENABLED:true}
|
enabled: ${UI_INGESTION_ENABLED:true}
|
||||||
defaultCliVersion: "${UI_INGESTION_DEFAULT_CLI_VERSION:@cliMajorVersion@}"
|
defaultCliVersion: "${UI_INGESTION_DEFAULT_CLI_VERSION:@cliMajorVersion@}"
|
||||||
maxSerializedStringLength: "${INGESTION_MAX_SERIALIZED_STRING_LENGTH:16000000}" # Indicates the maximum allowed JSON String length Jackson will handle, impacts the maximum size of ingested aspects
|
maxSerializedStringLength: "${INGESTION_MAX_SERIALIZED_STRING_LENGTH:16000000}" # Indicates the maximum allowed JSON String length Jackson will handle, impacts the maximum size of ingested aspects
|
||||||
@ -74,7 +75,7 @@ datahub:
|
|||||||
plugin:
|
plugin:
|
||||||
pluginSecurityMode: ${PLUGIN_SECURITY_MODE:RESTRICTED} # Possible value RESTRICTED or LENIENT, default to RESTRICTED
|
pluginSecurityMode: ${PLUGIN_SECURITY_MODE:RESTRICTED} # Possible value RESTRICTED or LENIENT, default to RESTRICTED
|
||||||
entityRegistry:
|
entityRegistry:
|
||||||
path: ${ENTITY_REGISTRY_PLUGIN_PATH:/etc/datahub/plugins/models}
|
path: ${ENTITY_REGISTRY_PLUGIN_PATH:/etc/datahub/plugins/models}
|
||||||
retention:
|
retention:
|
||||||
path: ${RETENTION_PLUGIN_PATH:/etc/datahub/plugins/retention}
|
path: ${RETENTION_PLUGIN_PATH:/etc/datahub/plugins/retention}
|
||||||
auth:
|
auth:
|
||||||
@ -280,14 +281,13 @@ updateIndices:
|
|||||||
ingestionScheduler:
|
ingestionScheduler:
|
||||||
enabled: ${ENABLE_INGESTION_SCHEDULER_HOOK:true} # enable to execute ingestion scheduling
|
enabled: ${ENABLE_INGESTION_SCHEDULER_HOOK:true} # enable to execute ingestion scheduling
|
||||||
|
|
||||||
|
|
||||||
bootstrap:
|
bootstrap:
|
||||||
upgradeDefaultBrowsePaths:
|
upgradeDefaultBrowsePaths:
|
||||||
enabled: ${UPGRADE_DEFAULT_BROWSE_PATHS_ENABLED:false} # enable to run the upgrade to migrate legacy default browse paths to new ones
|
enabled: ${UPGRADE_DEFAULT_BROWSE_PATHS_ENABLED:false} # enable to run the upgrade to migrate legacy default browse paths to new ones
|
||||||
backfillBrowsePathsV2:
|
backfillBrowsePathsV2:
|
||||||
enabled: ${BACKFILL_BROWSE_PATHS_V2:false} # Enables running the backfill of browsePathsV2 upgrade step. There are concerns about the load of this step so hiding it behind a flag. Deprecating in favor of running through SystemUpdate
|
enabled: ${BACKFILL_BROWSE_PATHS_V2:false} # Enables running the backfill of browsePathsV2 upgrade step. There are concerns about the load of this step so hiding it behind a flag. Deprecating in favor of running through SystemUpdate
|
||||||
reprocessDefaultBrowsePathsV2:
|
reprocessDefaultBrowsePathsV2:
|
||||||
enabled: ${REPROCESS_DEFAULT_BROWSE_PATHS_V2:false} # reprocess V2 browse paths which were set to the default: {"path":[{"id":"Default"}]}
|
enabled: ${REPROCESS_DEFAULT_BROWSE_PATHS_V2:false} # reprocess V2 browse paths which were set to the default: {"path":[{"id":"Default"}]}
|
||||||
policies:
|
policies:
|
||||||
file: ${BOOTSTRAP_POLICIES_FILE:classpath:boot/policies.json}
|
file: ${BOOTSTRAP_POLICIES_FILE:classpath:boot/policies.json}
|
||||||
# eg for local file
|
# eg for local file
|
||||||
@ -295,7 +295,6 @@ bootstrap:
|
|||||||
servlets:
|
servlets:
|
||||||
waitTimeout: ${BOOTSTRAP_SERVLETS_WAITTIMEOUT:60} # Total waiting time in seconds for servlets to initialize
|
waitTimeout: ${BOOTSTRAP_SERVLETS_WAITTIMEOUT:60} # Total waiting time in seconds for servlets to initialize
|
||||||
|
|
||||||
|
|
||||||
systemUpdate:
|
systemUpdate:
|
||||||
initialBackOffMs: ${BOOTSTRAP_SYSTEM_UPDATE_INITIAL_BACK_OFF_MILLIS:5000}
|
initialBackOffMs: ${BOOTSTRAP_SYSTEM_UPDATE_INITIAL_BACK_OFF_MILLIS:5000}
|
||||||
maxBackOffs: ${BOOTSTRAP_SYSTEM_UPDATE_MAX_BACK_OFFS:50}
|
maxBackOffs: ${BOOTSTRAP_SYSTEM_UPDATE_MAX_BACK_OFFS:50}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply from: "../../gradle/versioning/versioning.gradle"
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api project(':metadata-io')
|
api project(':metadata-io')
|
||||||
@ -65,7 +64,3 @@ configurations.all{
|
|||||||
exclude group: "commons-io", module:"commons-io"
|
exclude group: "commons-io", module:"commons-io"
|
||||||
exclude group: "jline", module:"jline"
|
exclude group: "jline", module:"jline"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources.configure {
|
|
||||||
finalizedBy printVersionDetails // always print version details
|
|
||||||
}
|
|
||||||
|
@ -23,3 +23,11 @@ def test_gms_config_accessible():
|
|||||||
assert gms_config["versions"]["linkedin/datahub"]["version"] == DATAHUB_VERSION
|
assert gms_config["versions"]["linkedin/datahub"]["version"] == DATAHUB_VERSION
|
||||||
else:
|
else:
|
||||||
print("[WARN] TEST_DATAHUB_VERSION is not set")
|
print("[WARN] TEST_DATAHUB_VERSION is not set")
|
||||||
|
|
||||||
|
# Make sure that the default CLI version gets generated properly.
|
||||||
|
# While we don't want to hardcode the actual value, we can make
|
||||||
|
# sure it mostly looks like a version string.
|
||||||
|
default_cli_version: str = gms_config["managedIngestion"]["defaultCliVersion"]
|
||||||
|
print(f"Default CLI version: {default_cli_version}")
|
||||||
|
assert not default_cli_version.startswith("@")
|
||||||
|
assert "." in default_cli_version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user