Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 2.63 KB

AGENTS.md

File metadata and controls

16 lines (15 loc) · 2.63 KB

AGENTS.md - CI Workflows (.github/)

Rules for Changes

These keep zizmor (zizmor.yml, fails on medium or higher findings) and the OpenSSF Scorecard clean.

  • Pin every third-party action to a full commit SHA with a # <release tag> comment.
  • Every workflow declares top-level permissions (read-all, contents: read or {}). Grant more per job, with a comment saying why.
  • Every actions/checkout sets persist-credentials: false.
  • Never inline untrusted contexts (github.event.*, github.head_ref, inputs.*) in run:; pass them through env:. Prefer env: for every value in new code.
  • Every job sets timeout-minutes; for a job that calls a reusable workflow, set it inside the called workflow.
  • actionlint runs in pre-commit.
  • Set up conda with the local .github/actions/setup-miniconda action, which retries a failed setup once, instead of calling conda-incubator/setup-miniconda directly; a job that checks dpnp out into a subdirectory uses it from there (./source/.github/actions/setup-miniconda).
  • workflows/intel-ci.yml is Intel CI: its conda matrix is conda-recipe/conda_build_config.yaml, its wheel matrix the Python classifiers in pyproject.toml, and its upload and cleanup jobs run only for pushes to master and tags in IntelPython/dpnp; see ci/README.md.
  • workflows/array-api-skips.txt lists array-api-tests node IDs skipped by the conformance job; precede each with a comment naming the upstream issue.
  • bump-sycl-deps.yml rewrites the DRIVER_PATH, OCLCPUEXP_FN, TBB_URL, TBB_INSTALL_DIR and TBB_FN pins in .github/sycl-build-deps.env with sed, and os-llvm-sycl-build.yml reads exactly those five; keep one unquoted KEY=VALUE per line, starting at column 0.
  • Every write to gh-pages (build-sphinx.yml, prune-pr-docs.yml) goes through .github/scripts/update_gh_pages.sh, which retries a push rejected by a concurrent writer; don't push to gh-pages any other way. prune-pr-docs.yml squashes the gh-pages history into one commit every week, so nothing may rely on older gh-pages commits.
  • Dependabot (dependabot.yml) bumps actions, environments/ pins (among them intel-ci.yml's conda-build and cibuildwheel) and pre-commit hooks weekly with a 7-day cooldown. After a dpctl release it opens a PR that raises the dpctl floor in environments/ files only; don't merge it. Instead, by hand, move the dev-series pins ([project].dependencies in pyproject.toml, environments/dpctl_pkg.{txt,yml}, environments/dpctl_wheel_build.txt, conda-recipe/meta.yaml) to the next X.Y.0dev0, and the release-only pin ([build-system].requires in pyproject.toml) to the new release.