Skip to content

ci: upgrade deprecated GitHub Actions, harden workflows, and tighten release and docs config #201

Backlog

Description

@Xuanwo

Problem

Several GitHub Actions versions, workflow hardening settings, release concurrency rules, and documentation build settings are outdated or inconsistent across .github/workflows/:

  1. Outdated / deprecated GitHub Actions:
    • actions/checkout@v4 is used in ci.yml, packages.yml, and docs.yml, emitting Node.js 20 is deprecated warnings on every run.
    • ci.yml:102 still uses actions/upload-artifact@v4, while packages.yml and docs.yml were bumped to @v7.
    • packages.yml:261 uses actions/download-artifact@v4, and ci.yml:163 / packages.yml:170 use ilammy/msvc-dev-cmd@v1.
  2. Incomplete workflow hardening:
    • persist-credentials: false is set on package-script, build_windows_native, and packages.yml, but missing on ci.yml (build, build_almalinux, cross_compile) and docs.yml.
    • Only build_windows_native specifies timeout-minutes; all other jobs rely on the 6-hour default.
  3. Release workflow concurrency and trigger overlap (packages.yml):
    • packages.yml triggers on both push.tags: ['v*'] (builds all 5 targets without publishing) and workflow_dispatch (used with publish_release: true to publish), while sharing concurrency: group: packages-${{ github.ref }}, cancel-in-progress: true.
    • Dispatching publish_release=true on a freshly pushed tag cancels the in-flight tag run and rebuilds all 5 targets, and cancel-in-progress: true risks cancelling an in-progress release publish if re-dispatched.
  4. Docs build strictness (Doxyfile, docs/requirements.txt, docs.yml):
    • Doxyfile sets WARNINGS = YES without WARN_AS_ERROR = YES, so broken Doxygen comments in include/lancedb.h do not fail CI.
    • docs/requirements.txt uses unbounded >= specs (sphinx>=5.0, sphinx-rtd-theme>=1.2.0, breathe>=4.35.0), risking sudden breakage from upstream major releases.
    • docs.yml:51 invokes make docs directly instead of cmake --build build --target docs.

Proposed Solution

  • Upgrade actions/checkout (moving off Node 20), align actions/upload-artifact to @v7 in ci.yml, and review/update actions/download-artifact and ilammy/msvc-dev-cmd.
  • Add persist-credentials: false to all read-only actions/checkout steps and set explicit timeout-minutes on every job across ci.yml, packages.yml, and docs.yml.
  • Set cancel-in-progress: false for release/tag publishing in packages.yml and clarify/deduplicate the tag-push vs. workflow_dispatch trigger behavior.
  • Enable WARN_AS_ERROR = YES in Doxyfile (and -W for Sphinx once existing warnings are clean), add upper bounds or pinned versions to docs/requirements.txt, and use cmake --build build --target docs in docs.yml.

Acceptance Criteria

  • No Node.js 20 is deprecated warnings appear in CI runs, and artifact/MSVC action versions are consistent and up to date.
  • All read-only checkouts set persist-credentials: false, and all workflow jobs define timeout-minutes.
  • packages.yml does not cancel in-progress release publish runs (cancel-in-progress: false) and avoids redundant tag-push + dispatch builds.
  • Doxygen warnings fail the docs CI job and docs/requirements.txt pins bounded versions.

Activity

  1. added
    enhancement
    on Nov 25, 2026
  2. Xuanwo commented on Nov 25, 2026

    @Xuanwo
    MemberAuthor

    I will handle release concurrency and workflow updates after the current preview publish completes. Documentation checks can be tightened separately once the existing warnings are fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions