This repository was archived by the owner on Jun 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
dev: Migrate from pip-compile to uv #1177
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0f952fd
init test
ajay-sentry 64c9cc3
remove these
ajay-sentry 0e082d0
removed ddtrace and got image to build, among other dep things
ajay-sentry 0d41ce8
add django cursor paginator for gql to work
ajay-sentry bc045f0
Merge branch 'main' into Ajay/uv-test
ajay-sentry f90fbaf
install ruff to dev deps
ajay-sentry 3572c6e
try this out for now
ajay-sentry 66a5552
add dep versions from requirements.txt, remove req files, add cache_f…
ajay-sentry 30ad1ec
update workflows, remove req files
ajay-sentry 37d352e
remove git from apps image
ajay-sentry 6c3a176
try update like worker does
ajay-sentry 88351f9
Merge branch 'main' into Ajay/uv-test
ajay-sentry ae0f208
try nonsplit
ajay-sentry b79e0cd
try non split, commit yml
ajay-sentry eec0a30
Merge branch 'main' into Ajay/uv-test
ajay-sentry 926d6ec
rebase
ajay-sentry 952e41b
fix shared dep, move back to split
ajay-sentry 33ca827
bump VCR to fix test
ajay-sentry 5c0b8ac
change this back to pip
ajay-sentry 343cfe7
use lint local
ajay-sentry f9f2257
add uv.lock cache_file to a few more spots, unpin some dev deps
ajay-sentry 953adbc
Merge branch 'main' into Ajay/uv-test
ajay-sentry 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,25 +21,26 @@ permissions: | |
| jobs: | ||
| lint: | ||
| name: Run Lint | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].26 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
|
|
||
| build: | ||
| name: Build API | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].26 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} | ||
| cache_file: "uv.lock" | ||
|
|
||
| codecovstartup: | ||
| name: Codecov Startup | ||
| needs: build | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].26 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
|
|
||
| test: | ||
| name: Test | ||
| needs: [build] | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].30 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| run_integration: false | ||
|
|
@@ -48,16 +49,17 @@ jobs: | |
| build-self-hosted: | ||
| name: Build Self Hosted API | ||
| needs: [build, test] | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].27 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} | ||
| cache_file: "uv.lock" | ||
|
|
||
| staging: | ||
| name: Push Staging Image | ||
| needs: [build, test] | ||
| if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/staging' && github.repository_owner == 'codecov' }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].27 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| environment: staging | ||
|
|
@@ -67,7 +69,7 @@ jobs: | |
| name: Push Production Image | ||
| needs: [build, test] | ||
| if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].27 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| environment: production | ||
|
|
@@ -78,7 +80,8 @@ jobs: | |
| needs: [build-self-hosted, test] | ||
| secrets: inherit | ||
| if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].27 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| with: | ||
| push_rolling: true | ||
| repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} | ||
|
Contributor
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. We also might need a
Contributor
Author
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. Updated in f9f2257 |
||
| cache_file: "uv.lock" | ||
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 |
|---|---|---|
|
|
@@ -11,4 +11,4 @@ on: | |
| jobs: | ||
| patch-typing-check: | ||
| name: Run Patch Type Check | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].21 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
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 |
|---|---|---|
|
|
@@ -10,5 +10,5 @@ on: | |
| jobs: | ||
| create-release-pr: | ||
| name: Create PR for Release ${{ github.event.inputs.versionName }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].21 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
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 |
|---|---|---|
|
|
@@ -14,16 +14,17 @@ jobs: | |
| create-release: | ||
| name: Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub | ||
| if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].21 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| with: | ||
| tag_to_prepend: self-hosted- | ||
| secrets: inherit | ||
|
|
||
| push-image: | ||
| needs: [create-release] | ||
| if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].21 | ||
| uses: codecov/gha-workflows/.github/workflows/[email protected].33 | ||
| secrets: inherit | ||
| with: | ||
| push_release: true | ||
| repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }} | ||
| cache_file: "uv.lock" | ||
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,16 +1,16 @@ | ||
| repos: | ||
| - repo: local | ||
| hooks: | ||
| - id: lint | ||
| name: lint | ||
| description: "Lint and sort" | ||
| entry: make lint.run | ||
| pass_filenames: false | ||
| require_serial: true | ||
| language: system | ||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||
| rev: 'v1.10.0' | ||
| hooks: | ||
| - id: mypy | ||
| verbose: true | ||
| entry: bash -c 'mypy "$@" || true' -- | ||
| - repo: local | ||
| hooks: | ||
| - id: lint | ||
| name: lint | ||
| description: "Lint and sort" | ||
| entry: make lint.local | ||
| pass_filenames: false | ||
| require_serial: true | ||
| language: system | ||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||
| rev: "v1.10.0" | ||
| hooks: | ||
| - id: mypy | ||
| verbose: true | ||
| entry: bash -c 'mypy "$@" || true' -- |
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.