Skip to content

Commit 23af8f7

Browse files
julian-rischclaude
andcommitted
fix: upgrade pip before using --uploaded-prior-to=P1D
P1D relative duration requires pip>=26.1 (latest as of this commit). CI runners ship with older pip, so each install step now upgrades pip first to ensure the flag is recognised. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 908c009 commit 23af8f7

13 files changed

Lines changed: 54 additions & 10 deletions

.github/workflows/check_api_ref.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ jobs:
6565
6666
- name: Install Hatch
6767
if: steps.changed.outputs.needs_check == 'true'
68-
run: pip install hatch --uploaded-prior-to=P1D
68+
run: |
69+
python -m pip install --upgrade pip
70+
pip install hatch --uploaded-prior-to=P1D
6971
7072
- name: Generate API references
7173
if: steps.changed.outputs.needs_check == 'true'

.github/workflows/docs-website-test-docs-snippets.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
python-version: '3.11'
3939

4040
- name: Install Hatch
41-
run: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
4244
4345
- name: Generate API reference for Docusaurus
4446
run: hatch run docs

.github/workflows/docs_search_sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
- name: Install script dependencies
3939
# sniffio is needed because of https://github.com/deepset-ai/deepset-cloud-sdk/issues/286
4040
# we pin pyrate-limiter due to https://github.com/deepset-ai/deepset-cloud-sdk/issues/295
41-
run: pip install deepset-cloud-sdk sniffio requests "pyrate-limiter<4" --uploaded-prior-to=P1D
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install deepset-cloud-sdk sniffio requests "pyrate-limiter<4" --uploaded-prior-to=P1D
4244
4345
- name: Update new docs to Search pipeline and remove outdated docs
4446
env:

.github/workflows/docusaurus_sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
python-version: "${{ env.PYTHON_VERSION }}"
3131

3232
- name: Install Hatch
33-
run: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
3436
3537
- name: Generate API reference for Docusaurus
3638
run: hatch run docs

.github/workflows/e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
python-version: "${{ env.PYTHON_VERSION }}"
3535

3636
- name: Install Hatch
37-
run: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
3840
3941
- name: Run tests
4042
run: hatch run e2e:test

.github/workflows/license_compliance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929

3030
- name: Get direct dependencies
3131
run: |
32+
python -m pip install --upgrade pip
3233
pip install toml --uploaded-prior-to=P1D
3334
python .github/utils/pyproject_to_requirements.py pyproject.toml > ${{ env.REQUIREMENTS_FILE }}
3435

.github/workflows/nightly_testpypi_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
echo "Building haystack-ai version: ${NIGHTLY_VERSION}"
3737
3838
- name: Install Hatch
39-
run: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
4042
4143
- name: Build Haystack
4244
run: hatch build

.github/workflows/project.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,24 @@ on:
44
issues:
55
types:
66
- opened
7+
- labeled
78

89
jobs:
10+
add-bug-label:
11+
name: Add bug label on Bug type issues
12+
runs-on: ubuntu-slim
13+
if: >
14+
github.event.issue.type.name == 'Bug' &&
15+
(
16+
github.event.action == 'opened' ||
17+
contains(fromJSON('["P0", "P1", "P2", "P3"]'), github.event.label.name)
18+
)
19+
steps:
20+
- name: Add bug label
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: gh issue edit ${{ github.event.issue.html_url }} --add-label "bug"
24+
925
add-to-project:
1026
name: Add new issues to project for triage
1127
runs-on: ubuntu-slim

.github/workflows/pypi_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323

2424
- name: Install Hatch
25-
run: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
2628
2729
- name: Build Haystack
2830
run: hatch build

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ jobs:
175175
python-version: "3.13"
176176

177177
- name: Install tomlkit
178-
run: pip install tomlkit --uploaded-prior-to=P1D
178+
run: |
179+
python -m pip install --upgrade pip
180+
pip install tomlkit --uploaded-prior-to=P1D
179181
180182
- name: Update haystack-ai in uv.lock
181183
run: python haystack/.github/utils/update_haystack_dc_custom_nodes.py "${{ env.VERSION }}" deepset-cloud-custom-nodes/uv.lock

0 commit comments

Comments
 (0)