Repository navigation
Open
Labels
Description
Is your feature request related to a problem or challenge?
It would be great to have a local script to run full CI, for all functional and non-functional(e.g. lints) tests, this helps development process for human and AI agents.
./dev/ci.sh # Run full CI locally
Here is a previous work that provides a single script to run some non-functional tests
The remaining work is to
- Continue supporting more non-functional tests
- Create a similar script for all functional tests (rust tests, sqllogictests, extended tests, ...)
(might use xtask instead of scripts, see #23414)
### Tracker for non-functional tests
./dev/rust_lint.sh should fully reproduce non-functional CI locally.
./dev/rust_lint.sh --write --allow-dirty should do best-effort fixing where applicable.
Today the script covers cargo fmt, clippy, Cargo.toml formatting, license headers, typos, markdown prettier, and cargo doc.
Remaining CI checks that could be migrated similarly:
- Semver / breaking API detector:
.github/workflows/breaking_changes_detector.yml,ci/scripts/changed_crates.sh - Markdown link check:
.github/workflows/dev.yml,ci/scripts/markdown_link_check.sh - ASF required status check validation:
.github/workflows/dev.yml,ci/scripts/check_asf_yaml_status_checks.py - Security audit:
.github/workflows/audit.yml, cargo audit - Dependency checks:
.github/workflows/dependencies.yml,dev/depcheck, cargo machete - Large file check:
.github/workflows/large_files.yml - CodeQL for GitHub Actions:
.github/workflows/codeql.yml - Docs HTML build:
.github/workflows/docs_pr.yaml,docs/build.sh - Config/function docs freshness:
.github/workflows/rust.yml,dev/update_config_docs.sh,dev/update_function_docs.sh - Examples README freshness:
.github/workflows/rust.yml,ci/scripts/check_examples_docs.sh
Potential Improvements to rust_lint.sh
- Better naming.
- Support running subsets, so developers and AI agents can run only checks likely affected by local changes.
Reacted by Huaijin, Kumar Ujjawal and Alessandro Solimando
Activity
[-]Add Local Scripts to Reproduce Full CI[/-][+]EPIC: Add Local Scripts to Reproduce Full CI[/+]feat(CI): Introduce `xtask` to keep local test and CI commands in sync (
[-]EPIC: Add Local Scripts to Reproduce Full CI[/-][+]Add Local Scripts to Reproduce Full CI[/+]ci: share extended test commands through xtask (apache#25256)
dev: include Markdown link checks in the local lint suite (apache#25287)
dev: include ASF status checks in the local lint suite (apache#25313)
kumarUjjawal commentedon Sep 16, 2026
Future improvements #25359 (review)
dev: include security auditing in the local lint suite (apache#25359)
dev: include dependency checks in the local lint suite (apache#25399)
akashjainn commentedon Sep 17, 2026
I'd like to take the Large file check item.
Plan, following #25359: move the size check out of the inline
run:block in.github/workflows/large_files.ymlintoci/scripts/check_large_files.sh. The script takes a base ref and defaults to the merge base withorigin/main, so it can run on a local branch; CI passes the PR or merge-queue SHAs it already has. The workflow'srun:line becomes a call to the script so CI and the local suite share one definition, anddev/rust_lint.shgets it as a read-only step.dev: include examples README checks in the local lint suite (apache#2…
dev: include dependency checks in the local lint suite (apache#25399)
5 remaining items
dev: add local CodeQL analysis for GitHub Actions
dev: add local CodeQL analysis for GitHub Actions
ci: share extended test commands through xtask (apache#25256)
dev: include Markdown link checks in the local lint suite (apache#25287)
dev: include ASF status checks in the local lint suite (apache#25313)
dev: include security auditing in the local lint suite (apache#25359)
dev: include dependency checks in the local lint suite (apache#25399)
dev: include examples README checks in the local lint suite (apache#2…
ci: move the large file check into a script shared with rust_lint.sh (a…
dev: include generated config and function docs in the local lint sui…
dev: include the HTML documentation build in the local lint suite (ap…
chore(ci): Register the substrait check job with runs-on, route spark…
pavankumargp6 commentedon Nov 30, 2026
Hi! I'd like to work on this. Adding local scripts to reproduce CI would help contributors test before pushing. I've been looking at the GitHub Actions workflows in .github/workflows/ and the ci/ directory. My plan is to create a ci/local.sh (or similar) that runs the same lint, test, and check steps as CI. Does that sound like the right approach?
kumarUjjawal commentedon Dec 1, 2026
Thank you @pavankumargp6 for your interest. Although most of the work has already been completed in this issue item. The only one I see having any merit is
But please leave your plans here before working on it as I don't think its a top priority at the moment.
pavankumargp6 commentedon Dec 1, 2026
Thanks @kumarUjjawal — agreed. I read through everything that landed here first so this doesn't duplicate work.
Summary of what this issue has produced so far (12 merged): #24083 (
cargo xtask ci step), #25256 (extended tests via xtask), #25195 (substrait/spark via xtask), #25287 (markdown links), #25313 (ASF checks), #25359 (security audit), #25399 (dependency checks), #25440 (large files), #25466 (examples README), #25525 (generated docs), #25586 (HTML docs build). Plus #23414, closed in favor of #24083. #25587 (CodeQL) and #25588 (semver) are still open drafts.So the remaining item with merit is subset selection for
dev/rust_lint.sh. Here's my plan.Goal
./dev/rust_lint.shcan run only the checks likely affected by a local change. Functional-test subsets already exist viacargo xtask ci step test <variant>, so this only touches the non-functional suite.CLI (backward compatible)