This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 642
Migrates from pip to uv and adds dynamic versioning #6156
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
855cfe8
feat: migrate from pip to uv for Python dependency management
mvilanova 2a5aa6b
pyproject toml
mvilanova b458bf0
feat: finalize uv migration with working configuration
mvilanova a8ac00c
bumps py version
mvilanova 5090b1a
fix: update spacy from 3.8.5 to 3.8.7
mvilanova 1a48926
feat: complete migration to uv with full pyproject.toml support
mvilanova 4563848
cleanup: remove obsolete config and requirements files
mvilanova 2915782
removes migration docs
mvilanova 6342dca
improves docker related gh workflows
mvilanova f92520b
removes user from codeowners
mvilanova 656f671
fixes
mvilanova b2afdd0
disable trivy and sbom
mvilanova 991154f
fix
mvilanova 7dab0f7
fix
mvilanova 1c885d5
playwright e2e tests fix
mvilanova 6979fd0
playwright e2e tests fix
mvilanova 3c3a3d7
wait for backend fix
mvilanova 8a4226d
playwright fixes
mvilanova 036bf64
Merge branch 'main' into feature/migrate-pip-to-uv
mvilanova ba592cd
pyproject toml fixes
mvilanova b2ed176
adds netflix dependency group
mvilanova 04cabe9
updates plugins path
mvilanova 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 hidden or 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 hidden or 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,5 +1,4 @@ | ||
| kevgliss | ||
| metroid-samus | ||
| mvilanova | ||
| whitdog47 | ||
| wssheldon |
This file contains hidden or 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 hidden or 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,15 +1,57 @@ | ||
| name: Test image build | ||
|
|
||
| on: pull_request | ||
| "on": | ||
| pull_request: | ||
| paths: | ||
| - "Dockerfile" | ||
| - "docker/Dockerfile" | ||
| - "src/**" | ||
| - "pyproject.toml" | ||
| - ".github/workflows/publish-image-test.yml" | ||
|
|
||
| jobs: | ||
| build_image: | ||
| name: Build Docker image | ||
| name: Build and test Docker image | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out the repo | ||
| uses: actions/checkout@v4 | ||
| - name: Build without push | ||
| uses: docker/build-push-action@v1 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Extract metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: dispatch-test | ||
| tags: | | ||
| type=ref,event=pr,prefix=pr- | ||
| type=sha,prefix=sha- | ||
|
|
||
| - name: Build Docker image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| file: ./Dockerfile | ||
| push: false | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| build-args: | | ||
| SOURCE_COMMIT=${{ github.sha }} | ||
| VITE_DISPATCH_COMMIT_HASH=${{ github.sha }} | ||
|
|
||
| # - name: Run Trivy vulnerability scanner | ||
| # uses: aquasecurity/trivy-action@master | ||
| # with: | ||
| # image-ref: "dispatch-test:${{ github.event.pull_request.head.sha || github.sha }}" | ||
| # format: "sarif" | ||
| # output: "trivy-results.sarif" | ||
|
|
||
| # - name: Upload Trivy scan results to GitHub Security tab | ||
| # uses: github/codeql-action/upload-sarif@v3 | ||
| # if: always() | ||
| # with: | ||
| # sarif_file: "trivy-results.sarif" |
This file contains hidden or 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,19 +1,105 @@ | ||
| name: Publish Docker image | ||
| on: | ||
|
|
||
| "on": | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: "Tag to build and push" | ||
| required: true | ||
| default: "latest" | ||
|
|
||
| env: | ||
| REGISTRY_GITHUB: ghcr.io | ||
| REGISTRY_DOCKERHUB: docker.io | ||
| IMAGE_NAME: netflix/dispatch | ||
|
|
||
| jobs: | ||
| push_to_registry: | ||
| name: Push Docker image to GitHub Packages | ||
| name: Build and push Docker image | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| security-events: write | ||
| steps: | ||
| - name: Check out the repo | ||
| uses: actions/checkout@v4 | ||
| - name: Push to GitHub Packages | ||
| uses: docker/build-push-action@v1 | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ env.REGISTRY_GITHUB }} | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| registry: docker.pkg.github.com | ||
| repository: netflix/dispatch/dispatch-image | ||
| tag_with_ref: true | ||
|
|
||
| - name: Log in to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| continue-on-error: true | ||
| with: | ||
| registry: ${{ env.REGISTRY_DOCKERHUB }} | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Extract metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: | | ||
| ${{ env.REGISTRY_GITHUB }}/${{ env.IMAGE_NAME }} | ||
| ${{ env.REGISTRY_DOCKERHUB }}/${{ env.IMAGE_NAME }} | ||
| tags: | | ||
| type=ref,event=tag | ||
| type=ref,event=branch | ||
| type=semver,pattern={{version}} | ||
| type=semver,pattern={{major}}.{{minor}} | ||
| type=semver,pattern={{major}} | ||
| type=raw,value=latest,enable={{is_default_branch}} | ||
|
|
||
| - name: Build and push Docker image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| file: ./Dockerfile | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| build-args: | | ||
| SOURCE_COMMIT=${{ github.sha }} | ||
| VITE_DISPATCH_COMMIT_HASH=${{ github.sha }} | ||
|
|
||
| # - name: Run Trivy vulnerability scanner | ||
| # uses: aquasecurity/trivy-action@master | ||
| # with: | ||
| # image-ref: ${{ env.REGISTRY_GITHUB }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} | ||
| # format: "sarif" | ||
| # output: "trivy-results.sarif" | ||
|
|
||
| # - name: Upload Trivy scan results to GitHub Security tab | ||
| # uses: github/codeql-action/upload-sarif@v3 | ||
| # if: always() | ||
| # with: | ||
| # sarif_file: "trivy-results.sarif" | ||
|
|
||
| # - name: Generate SBOM | ||
| # uses: anchore/sbom-action@v0 | ||
| # with: | ||
| # image: ${{ env.REGISTRY_GITHUB }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} | ||
| # format: spdx-json | ||
| # output-file: sbom.spdx.json | ||
|
|
||
| # - name: Upload SBOM | ||
| # uses: actions/upload-artifact@v4 | ||
| # with: | ||
| # name: sbom | ||
| # path: sbom.spdx.json |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -133,6 +133,8 @@ ipython_config.py | |
| !data/.env | ||
| .venv | ||
| env/ | ||
| # uv | ||
| uv.lock | ||
| venv/ | ||
| ENV/ | ||
| env.bak/ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.