Skip to content

[MAINT] Add chron job for updating OS compiler dependencies - #2408

Open
ndgrigorian wants to merge 1 commit into
masterfrom
chron-job-to-update-os-compiler-dependencies
Open

ndgrigorian wants to merge 1 commit into
masterfrom
chron-job-to-update-os-compiler-dependencies

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

This PR proposes the addition of a chron job for updating the dependencies of the OS compiler workflow

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 74.989%. remained the same — chron-job-to-update-os-compiler-dependencies into master

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A couple of minor nits. In overall, LGTM,

with:
path: |
/home/runner/work/sycl_bundle
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('/home/runner/work/sycl_bundle/bundle_id.txt') }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The cache is saved once and never refreshed. After every pin bump, each run downloads the deps again. Keying on hashFiles('.github/sycl-build-deps.env') would fix it.

Comment on lines +56 to +57
[[ "${LLVM_REF}" =~ ^[A-Za-z0-9._/-]+$ ]] || fail "invalid intel/llvm ref: ${LLVM_REF}"
LLVM_SHA=$(gh api "repos/intel/llvm/commits/${LLVM_REF}" --jq .sha)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The input's pattern allows .., which can point the gh api call at another path. The SHA that comes back isn't checked either. Only people who can run the workflow manually can supply the input.

As an option we can add [[ $LLVM_SHA =~ ^[0-9a-f]{40}$ ]], and optionally reject ...

This branch has not been deployed

No deployments
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