mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-03 06:13:14 +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: [
|
||||
# metadata-ingestion and airflow-plugin each have dedicated build jobs
|
||||
"except_metadata_ingestion",
|
||||
"frontend"
|
||||
"frontend",
|
||||
]
|
||||
timezone: ["UTC", "America/New_York"]
|
||||
runs-on: ubuntu-latest
|
||||
@ -36,9 +36,7 @@ jobs:
|
||||
- uses: szenius/set-timezone@v1.0
|
||||
with:
|
||||
timezoneLinux: ${{ matrix.timezone }}
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
- uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
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"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
- uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
|
4
.github/workflows/code-checks.yml
vendored
4
.github/workflows/code-checks.yml
vendored
@ -31,9 +31,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
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' }}
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Build and push
|
||||
uses: ./.github/actions/docker-custom-build-and-push
|
||||
with:
|
||||
|
4
.github/workflows/docker-postgres-setup.yml
vendored
4
.github/workflows/docker-postgres-setup.yml
vendored
@ -46,9 +46,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Build and push
|
||||
uses: ./.github/actions/docker-custom-build-and-push
|
||||
with:
|
||||
|
52
.github/workflows/docker-unified.yml
vendored
52
.github/workflows/docker-unified.yml
vendored
@ -74,9 +74,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Pre-build artifacts for docker image
|
||||
run: |
|
||||
./gradlew :metadata-service:war:build -x test --parallel
|
||||
@ -132,9 +130,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Pre-build artifacts for docker image
|
||||
run: |
|
||||
./gradlew :metadata-jobs:mae-consumer-job:build -x test --parallel
|
||||
@ -190,9 +186,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Pre-build artifacts for docker image
|
||||
run: |
|
||||
./gradlew :metadata-jobs:mce-consumer-job:build -x test --parallel
|
||||
@ -248,9 +242,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Pre-build artifacts for docker image
|
||||
run: |
|
||||
./gradlew :datahub-upgrade:build -x test --parallel
|
||||
@ -306,9 +298,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Pre-build artifacts for docker image
|
||||
run: |
|
||||
./gradlew :datahub-frontend:dist -x test -x yarnTest -x yarnLint --parallel
|
||||
@ -366,9 +356,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Build and push
|
||||
uses: ./.github/actions/docker-custom-build-and-push
|
||||
with:
|
||||
@ -388,9 +376,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Build and push
|
||||
uses: ./.github/actions/docker-custom-build-and-push
|
||||
with:
|
||||
@ -410,9 +396,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Build and push
|
||||
uses: ./.github/actions/docker-custom-build-and-push
|
||||
with:
|
||||
@ -434,9 +418,7 @@ jobs:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@ -468,9 +450,7 @@ jobs:
|
||||
needs: [setup, datahub_ingestion_base_build]
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@ -510,9 +490,7 @@ jobs:
|
||||
needs: [setup, datahub_ingestion_base_build]
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@ -554,9 +532,7 @@ jobs:
|
||||
needs: [setup, datahub_ingestion_base_slim_build]
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@ -637,9 +613,7 @@ jobs:
|
||||
needs: [setup, datahub_ingestion_base_full_build]
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
uses: hsheth2/sane-checkout-action@v1
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
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"]
|
||||
if: ${{ needs.check-secret.outputs.publish-enabled == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
- uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 800
|
||||
fetch-tags: true
|
||||
- uses: hsheth2/sane-checkout-action@v1
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
|
@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
apply from: "../../gradle/versioning/versioning.gradle"
|
||||
|
||||
dependencies {
|
||||
implementation externalDependency.jacksonDataBind
|
||||
@ -12,4 +13,8 @@ dependencies {
|
||||
compileOnly externalDependency.lombok
|
||||
|
||||
annotationProcessor externalDependency.lombok
|
||||
}
|
||||
}
|
||||
|
||||
processResources.configure {
|
||||
finalizedBy printVersionDetails // always print version details
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ authorization:
|
||||
restApiAuthorization: ${REST_API_AUTHORIZATION_ENABLED:false}
|
||||
|
||||
ingestion:
|
||||
# The value of cliMajorVersion is substituted in by the processResources Gradle task.
|
||||
enabled: ${UI_INGESTION_ENABLED:true}
|
||||
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
|
||||
@ -74,7 +75,7 @@ datahub:
|
||||
plugin:
|
||||
pluginSecurityMode: ${PLUGIN_SECURITY_MODE:RESTRICTED} # Possible value RESTRICTED or LENIENT, default to RESTRICTED
|
||||
entityRegistry:
|
||||
path: ${ENTITY_REGISTRY_PLUGIN_PATH:/etc/datahub/plugins/models}
|
||||
path: ${ENTITY_REGISTRY_PLUGIN_PATH:/etc/datahub/plugins/models}
|
||||
retention:
|
||||
path: ${RETENTION_PLUGIN_PATH:/etc/datahub/plugins/retention}
|
||||
auth:
|
||||
@ -280,14 +281,13 @@ updateIndices:
|
||||
ingestionScheduler:
|
||||
enabled: ${ENABLE_INGESTION_SCHEDULER_HOOK:true} # enable to execute ingestion scheduling
|
||||
|
||||
|
||||
bootstrap:
|
||||
upgradeDefaultBrowsePaths:
|
||||
enabled: ${UPGRADE_DEFAULT_BROWSE_PATHS_ENABLED:false} # enable to run the upgrade to migrate legacy default browse paths to new ones
|
||||
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
|
||||
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:
|
||||
file: ${BOOTSTRAP_POLICIES_FILE:classpath:boot/policies.json}
|
||||
# eg for local file
|
||||
@ -295,7 +295,6 @@ bootstrap:
|
||||
servlets:
|
||||
waitTimeout: ${BOOTSTRAP_SERVLETS_WAITTIMEOUT:60} # Total waiting time in seconds for servlets to initialize
|
||||
|
||||
|
||||
systemUpdate:
|
||||
initialBackOffMs: ${BOOTSTRAP_SYSTEM_UPDATE_INITIAL_BACK_OFF_MILLIS:5000}
|
||||
maxBackOffs: ${BOOTSTRAP_SYSTEM_UPDATE_MAX_BACK_OFFS:50}
|
||||
@ -371,4 +370,4 @@ cache:
|
||||
corpUserCredentials: 20
|
||||
corpUserSettings: 20
|
||||
|
||||
springdoc.api-docs.groups.enabled: true
|
||||
springdoc.api-docs.groups.enabled: true
|
||||
|
@ -1,5 +1,4 @@
|
||||
apply plugin: 'java-library'
|
||||
apply from: "../../gradle/versioning/versioning.gradle"
|
||||
|
||||
dependencies {
|
||||
api project(':metadata-io')
|
||||
@ -65,7 +64,3 @@ configurations.all{
|
||||
exclude group: "commons-io", module:"commons-io"
|
||||
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
|
||||
else:
|
||||
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