Skip to content

Commit 351cd1b

Browse files
committed
Fix resolver issues on python deps upgrades
2 parents d0c0de9 + e578abd commit 351cd1b

16 files changed

Lines changed: 2776 additions & 2482 deletions

‎.github/dependabot.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ updates:
1818
- "*"
1919

2020
- package-ecosystem: "npm"
21-
directory: "/frontend"
21+
# pnpm lockfile lives at repository root for this workspace.
22+
directory: "/"
2223
schedule:
2324
interval: "weekly"
2425
open-pull-requests-limit: 5

‎.github/workflows/build-release.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@v6
29+
uses: actions/checkout@v7
3030

3131
- name: Set up Helm
32-
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
32+
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
3333

3434
- name: Lint chart
3535
run: helm lint deploy/helm/digest-engine
@@ -50,10 +50,10 @@ jobs:
5050

5151
steps:
5252
- name: Checkout repository
53-
uses: actions/checkout@v6
53+
uses: actions/checkout@v7
5454

5555
- name: Set up pnpm
56-
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
56+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
5757
with:
5858
version: 11.1.2
5959

@@ -86,7 +86,7 @@ jobs:
8686

8787
steps:
8888
- name: Checkout repository
89-
uses: actions/checkout@v6
89+
uses: actions/checkout@v7
9090

9191
- name: Build backend image
9292
env:
@@ -116,7 +116,7 @@ jobs:
116116

117117
- name: Log in to GHCR
118118
if: github.event_name == 'push'
119-
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
119+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
120120
with:
121121
registry: ghcr.io
122122
username: ${{ github.actor }}

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@v6
29+
uses: actions/checkout@v7
3030

3131
- name: Initialize CodeQL
3232
uses: github/codeql-action/init@v4
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Dependabot Lockfile Refresh
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
types:
8+
- opened
9+
- synchronize
10+
- reopened
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
refresh-lockfiles:
22+
name: Refresh lockfiles for Dependabot PRs
23+
if: github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout PR branch
28+
uses: actions/checkout@v7
29+
with:
30+
repository: ${{ github.event.pull_request.head.repo.full_name }}
31+
ref: ${{ github.event.pull_request.head.ref }}
32+
token: ${{ github.token }}
33+
34+
- name: Set up uv
35+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
36+
with:
37+
version: "0.8.17"
38+
enable-cache: true
39+
40+
- name: Install Python 3.13
41+
run: uv python install 3.13
42+
43+
- name: Initialize Pants
44+
uses: pantsbuild/actions/init-pants@0aaef864bd133c4055feb6adad0bfdce0de1c2e4 # v11
45+
with:
46+
gha-cache-key: cache0-py313
47+
named-caches-hash: ${{ hashFiles('3rdparty/python/default.lock', 'pants.toml') }}
48+
pants-ci-config: ""
49+
50+
- name: Set up pnpm
51+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
52+
with:
53+
version: 11.1.2
54+
55+
- name: Set up Node.js
56+
uses: actions/setup-node@v6
57+
with:
58+
node-version: "22"
59+
cache: pnpm
60+
cache-dependency-path: pnpm-lock.yaml
61+
62+
- name: Refresh lockfiles
63+
run: |
64+
corepack enable
65+
corepack prepare pnpm@11.1.2 --activate
66+
uv lock
67+
pants generate-lockfiles --resolve=python-default
68+
pnpm install --lockfile-only
69+
70+
- name: Commit lockfile updates
71+
env:
72+
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
73+
run: |
74+
set -euo pipefail
75+
76+
git config user.name "github-actions[bot]"
77+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
78+
79+
# Reject unexpected ref values before using them in git commands.
80+
if [[ ! "$PR_HEAD_REF" =~ ^[A-Za-z0-9._/-]+$ ]] || [[ "$PR_HEAD_REF" == -* ]] || [[ "$PR_HEAD_REF" == *..* ]]; then
81+
echo "Invalid pull request head ref: $PR_HEAD_REF"
82+
exit 1
83+
fi
84+
85+
if git diff --quiet -- uv.lock 3rdparty/python/default.lock pnpm-lock.yaml; then
86+
echo "No lockfile updates needed"
87+
exit 0
88+
fi
89+
90+
git add uv.lock 3rdparty/python/default.lock pnpm-lock.yaml
91+
git commit -m "chore: refresh lockfiles for dependabot"
92+
git push origin "HEAD:$PR_HEAD_REF"

‎.github/workflows/lint.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v6
22+
uses: actions/checkout@v7
2323

2424
- name: Set up uv
25-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
25+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
2626
with:
2727
version: "0.8.17"
2828
enable-cache: true
@@ -38,7 +38,7 @@ jobs:
3838
pants-ci-config: ""
3939

4040
- name: Set up pnpm
41-
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
41+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
4242
with:
4343
version: 11.1.2
4444

@@ -56,7 +56,7 @@ jobs:
5656
github-token: ${{ github.token }}
5757

5858
- name: Set up Helm
59-
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
59+
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
6060

6161
- name: Bootstrap dependencies
6262
run: just install

‎.github/workflows/test.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v6
22+
uses: actions/checkout@v7
2323

2424
- name: Set up uv
25-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
25+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
2626
with:
2727
version: "0.8.17"
2828
enable-cache: true
@@ -38,7 +38,7 @@ jobs:
3838
pants-ci-config: ""
3939

4040
- name: Set up pnpm
41-
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
41+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
4242
with:
4343
version: 11.1.2
4444

0 commit comments

Comments
 (0)