-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(build): remove base-requirements.txt #11238
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
30b59c7
feat(build): remove base-requirements.txt
hsheth2 e3f196e
tweak from command
hsheth2 5db0271
bump docker image revisions - test image builds
david-leifker c81d7cd
use uv cache
hsheth2 2b8cbd8
more aggressive caching w/ gha mode=max
hsheth2 e7e9e43
tweak gha cache
hsheth2 d8eda0e
Merge branch 'master' into remove-base-requirements
hsheth2 b3727c0
test out depot.dev
hsheth2 febba8b
fix
hsheth2 c9833e6
improve cache loading
hsheth2 d00c8dd
fix shellchell
hsheth2 16f834e
make depot-based builds opt-in
hsheth2 15e9172
fix bug
hsheth2 9ce39c4
tweak paths
hsheth2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -33,6 +33,10 @@ env: | |
DATAHUB_INGESTION_BASE_IMAGE: "acryldata/datahub-ingestion-base" | ||
DATAHUB_INGESTION_IMAGE: "acryldata/datahub-ingestion" | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
|
@@ -68,23 +72,23 @@ jobs: | |
id: tag | ||
run: | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [actionlint] reported by reviewdog 🐶 |
||
source .github/scripts/docker_helpers.sh | ||
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT | ||
echo "tag=$(get_tag)" >> $GITHUB_OUTPUT | ||
echo "slim_tag=$(get_tag_slim)" >> $GITHUB_OUTPUT | ||
echo "full_tag=$(get_tag_full)" >> $GITHUB_OUTPUT | ||
echo "unique_tag=$(get_unique_tag)" >> $GITHUB_OUTPUT | ||
echo "unique_slim_tag=$(get_unique_tag_slim)" >> $GITHUB_OUTPUT | ||
echo "unique_full_tag=$(get_unique_tag_full)" >> $GITHUB_OUTPUT | ||
echo "python_release_version=$(get_python_docker_release_v)" >> $GITHUB_OUTPUT | ||
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
echo "repository_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT | ||
echo "short_sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT" | ||
echo "tag=$(get_tag)" >> "$GITHUB_OUTPUT" | ||
echo "slim_tag=$(get_tag_slim)" >> "$GITHUB_OUTPUT" | ||
echo "full_tag=$(get_tag_full)" >> "$GITHUB_OUTPUT" | ||
echo "unique_tag=$(get_unique_tag)" >> "$GITHUB_OUTPUT" | ||
echo "unique_slim_tag=$(get_unique_tag_slim)" >> "$GITHUB_OUTPUT" | ||
echo "unique_full_tag=$(get_unique_tag_full)" >> "$GITHUB_OUTPUT" | ||
echo "python_release_version=$(get_python_docker_release_v)" >> "$GITHUB_OUTPUT" | ||
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT" | ||
echo "repository_name=${GITHUB_REPOSITORY#*/}" >> "$GITHUB_OUTPUT" | ||
- name: Check whether docker login is possible | ||
id: docker-login | ||
env: | ||
ENABLE_DOCKER_LOGIN: ${{ secrets.ACRYL_DOCKER_PASSWORD != '' }} | ||
run: | | ||
echo "Enable Docker Login: ${{ env.ENABLE_DOCKER_LOGIN }}" | ||
echo "docker-login=${{ env.ENABLE_DOCKER_LOGIN }}" >> $GITHUB_OUTPUT | ||
echo "docker-login=${{ env.ENABLE_DOCKER_LOGIN }}" >> "$GITHUB_OUTPUT" | ||
- name: Check whether publishing enabled | ||
id: publish | ||
env: | ||
|
@@ -95,7 +99,7 @@ jobs: | |
}} | ||
run: | | ||
echo "Enable publish: ${{ env.ENABLE_PUBLISH }}" | ||
echo "publish=${{ env.ENABLE_PUBLISH }}" >> $GITHUB_OUTPUT | ||
echo "publish=${{ env.ENABLE_PUBLISH }}" >> "$GITHUB_OUTPUT" | ||
- name: Check whether PR publishing enabled | ||
id: pr-publish | ||
env: | ||
|
@@ -106,7 +110,7 @@ jobs: | |
}} | ||
run: | | ||
echo "Enable PR publish: ${{ env.ENABLE_PUBLISH }}" | ||
echo "publish=${{ env.ENABLE_PUBLISH }}" >> $GITHUB_OUTPUT | ||
echo "publish=${{ env.ENABLE_PUBLISH }}" >> "$GITHUB_OUTPUT" | ||
- uses: ./.github/actions/ci-optimization | ||
id: ci-optimize | ||
- uses: actions/setup-python@v5 | ||
|
@@ -543,9 +547,10 @@ jobs: | |
context: . | ||
file: ./docker/datahub-ingestion-base/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
depot-project: ${{ vars.DEPOT_PROJECT_ID }} | ||
- name: Compute DataHub Ingestion (Base) Tag | ||
id: tag | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_tag || 'head' }}" >> $GITHUB_OUTPUT | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_tag || 'head' }}" >> "$GITHUB_OUTPUT" | ||
datahub_ingestion_base_slim_build: | ||
name: Build and Push DataHub Ingestion (Base-Slim) Docker Image | ||
runs-on: ubuntu-latest | ||
|
@@ -585,9 +590,10 @@ jobs: | |
context: . | ||
file: ./docker/datahub-ingestion-base/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
depot-project: ${{ vars.DEPOT_PROJECT_ID }} | ||
- name: Compute DataHub Ingestion (Base-Slim) Tag | ||
id: tag | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_slim_tag || 'head-slim' }}" >> $GITHUB_OUTPUT | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_slim_tag || 'head-slim' }}" >> "$GITHUB_OUTPUT" | ||
datahub_ingestion_base_full_build: | ||
name: Build and Push DataHub Ingestion (Base-Full) Docker Image | ||
runs-on: ubuntu-latest | ||
|
@@ -628,7 +634,7 @@ jobs: | |
platforms: linux/amd64,linux/arm64/v8 | ||
- name: Compute DataHub Ingestion (Base-Full) Tag | ||
id: tag | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_full_tag || 'head' }}" >> $GITHUB_OUTPUT | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_base_change == 'true' && needs.setup.outputs.unique_full_tag || 'head' }}" >> "$GITHUB_OUTPUT" | ||
|
||
datahub_ingestion_slim_build: | ||
name: Build and Push DataHub Ingestion Docker Images | ||
|
@@ -681,9 +687,10 @@ jobs: | |
context: . | ||
file: ./docker/datahub-ingestion/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
depot-project: ${{ vars.DEPOT_PROJECT_ID }} | ||
- name: Compute Tag | ||
id: tag | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_change == 'true' && needs.setup.outputs.unique_slim_tag || 'head-slim' }}" >> $GITHUB_OUTPUT | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_change == 'true' && needs.setup.outputs.unique_slim_tag || 'head-slim' }}" >> "$GITHUB_OUTPUT" | ||
datahub_ingestion_slim_scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
|
@@ -713,6 +720,7 @@ jobs: | |
severity: "CRITICAL,HIGH" | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
timeout: 15m | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
|
@@ -767,9 +775,10 @@ jobs: | |
context: . | ||
file: ./docker/datahub-ingestion/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
depot-project: ${{ vars.DEPOT_PROJECT_ID }} | ||
- name: Compute Tag (Full) | ||
id: tag | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_change == 'true' && needs.setup.outputs.unique_tag || 'head' }}" >> $GITHUB_OUTPUT | ||
run: echo "tag=${{ needs.setup.outputs.ingestion_change == 'true' && needs.setup.outputs.unique_tag || 'head' }}" >> "$GITHUB_OUTPUT" | ||
datahub_ingestion_full_scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
|
@@ -799,6 +808,7 @@ jobs: | |
severity: "CRITICAL,HIGH" | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
timeout: 15m | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
|
@@ -813,13 +823,13 @@ jobs: | |
- id: set-matrix | ||
run: | | ||
if [ '${{ needs.setup.outputs.frontend_only }}' == 'true' ]; then | ||
echo 'matrix=["cypress_suite1","cypress_rest"]' >> $GITHUB_OUTPUT | ||
echo 'matrix=["cypress_suite1","cypress_rest"]' >> "$GITHUB_OUTPUT" | ||
elif [ '${{ needs.setup.outputs.ingestion_only }}' == 'true' ]; then | ||
echo 'matrix=["no_cypress_suite0","no_cypress_suite1"]' >> $GITHUB_OUTPUT | ||
echo 'matrix=["no_cypress_suite0","no_cypress_suite1"]' >> "$GITHUB_OUTPUT" | ||
elif [[ '${{ needs.setup.outputs.backend_change }}' == 'true' || '${{ needs.setup.outputs.smoke_test_change }}' == 'true' ]]; then | ||
echo 'matrix=["no_cypress_suite0","no_cypress_suite1","cypress_suite1","cypress_rest"]' >> $GITHUB_OUTPUT | ||
echo 'matrix=["no_cypress_suite0","no_cypress_suite1","cypress_suite1","cypress_rest"]' >> "$GITHUB_OUTPUT" | ||
else | ||
echo 'matrix=[]' >> $GITHUB_OUTPUT | ||
echo 'matrix=[]' >> "$GITHUB_OUTPUT" | ||
fi | ||
|
||
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[actionlint] reported by reviewdog 🐶
property "short_sha" is not defined in object type {backend_change: string; backend_only: string; branch_name: string; docker-login: string; elasticsearch_setup_change: string; frontend_change: string; frontend_only: string; full_tag: string; ingestion_base_change: string; ingestion_change: string; ingestion_only: string; kafka_setup_change: string; mysql_setup_change: string; postgres_setup_change: string; pr-publish: string; publish: string; python_release_version: string; repository_name: string; slim_tag: string; smoke_test_change: string; tag: string; unique_full_tag: string; unique_slim_tag: string; unique_tag: string} [expression]
datahub/.github/workflows/docker-unified.yml
Line 1071 in 16f834e