Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Github] Use hashed dependencies in docs job #120319

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

boomanaiden154
Copy link
Contributor

This patch forces the docs test build job to use the hashed dpendencies file rather than the normal requirements.txt. This ensures that we get the exact transitive closure specified rather than whatever the dependency solver feels like it should use in the CI job.

This patch forces the docs test build job to use the hashed dpendencies file
rather than the normal requirements.txt. This ensures that we get the exact
transitive closure specified rather than whatever the dependency solver feels
like it should use in the CI job.
@llvmbot
Copy link
Member

llvmbot commented Dec 17, 2024

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

This patch forces the docs test build job to use the hashed dpendencies file rather than the normal requirements.txt. This ensures that we get the exact transitive closure specified rather than whatever the dependency solver feels like it should use in the CI job.


Full diff: https://github.com/llvm/llvm-project/pull/120319.diff

1 Files Affected:

  • (modified) .github/workflows/docs.yml (+2-2)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 8441589bb716e0..b4fa27203236a0 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -106,9 +106,9 @@ jobs:
         with:
           python-version: '3.11'
           cache: 'pip'
-          cache-dependency-path: 'llvm/docs/requirements.txt'
+          cache-dependency-path: 'llvm/docs/requirements-hashed.txt'
       - name: Install python dependencies
-        run: pip install -r llvm/docs/requirements.txt
+        run: pip install -r llvm/docs/requirements-hashed.txt
       - name: Install system dependencies
         run: |
           sudo apt-get update

@nickdesaulniers
Copy link
Member

Seems ok to me, but should I change llvm/llvm-zorg#345 to also use the hashed file?

If anything, I'd defer to @marcauberer for the review of this PR.

Copy link
Member

@marcauberer marcauberer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@boomanaiden154 boomanaiden154 merged commit 8a62104 into llvm:main Dec 17, 2024
9 checks passed
@boomanaiden154 boomanaiden154 deleted the docs-job-hashed-deps branch December 17, 2024 22:46
nickdesaulniers added a commit to llvm/llvm-zorg that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants