Skip to content

Exclude the dependencies newer than 3 days#451

Merged
kacperlukawski merged 2 commits into
mainfrom
restrict-dependencies
May 20, 2026
Merged

Exclude the dependencies newer than 3 days#451
kacperlukawski merged 2 commits into
mainfrom
restrict-dependencies

Conversation

@kacperlukawski
Copy link
Copy Markdown
Member

Fixes: #448

@kacperlukawski kacperlukawski requested a review from a team as a code owner May 19, 2026 08:29
@kacperlukawski kacperlukawski requested review from Copilot and removed request for a team May 19, 2026 08:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

  • Purpose: make CI/tutorial generation and dC sync workflows more reproducible by preventing installs from resolving to very recently published Python packages (intended “newer than 3 days” cutoff; Fixes #448).

Changes:

  • Add uv pip install --exclude-newer P3D ... to multiple workflow install steps.
  • Migrate dc_sync.yml and full_dc_sync.yml from pip to uv + .venv activation for subsequent python runs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/verify_generation.yml Use uv pip install --exclude-newer P3D during dependency install for generation verification.
.github/workflows/run_tutorials.yml Apply --exclude-newer P3D to nbconvert/ipython and notebook-specific dependency installs.
.github/workflows/full_dc_sync.yml Switch to setup-uv, create .venv, install with --exclude-newer P3D, and activate venv for script execution.
.github/workflows/dc_sync.yml Switch to setup-uv, create .venv, install with --exclude-newer P3D, and activate venv before generating upload artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/verify_generation.yml Outdated
Comment on lines +22 to +24
run: |
uv venv
uv pip install -r requirements.txt
uv pip install --exclude-newer P3D -r requirements.txt
Comment thread .github/workflows/run_tutorials.yml Outdated
Comment on lines +93 to +100
uv pip install "haystack-ai==${VERSION#v}"
fi
uv pip install nbconvert ipython
uv pip install --exclude-newer P3D nbconvert ipython
Comment on lines 99 to 106
fi
uv pip install nbconvert ipython
uv pip install --exclude-newer P3D nbconvert ipython
- name: Install tutorial dependencies
if: toJSON(matrix.dependencies) != '[]'
run: |
uv pip install "${{ join(matrix.dependencies, '" "')}}"
uv pip install --exclude-newer P3D "${{ join(matrix.dependencies, '" "')}}"
Comment thread .github/workflows/full_dc_sync.yml Outdated
Comment on lines +18 to +21
- name: Install requirements
run: |
pip install --upgrade pip
pip install -r requirements.txt
uv venv
uv pip install --exclude-newer P3D -r requirements.txt
Comment thread .github/workflows/dc_sync.yml Outdated
Comment on lines +54 to +57
- name: Install requirements
run: |
pip install --upgrade pip
pip install -r requirements.txt
uv venv
uv pip install --exclude-newer P3D -r requirements.txt
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@kacperlukawski kacperlukawski merged commit c260248 into main May 20, 2026
1 check passed
@kacperlukawski kacperlukawski deleted the restrict-dependencies branch May 20, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants