upstream-source
Skill172 starsChanged 9 days agoApache-2.0View on GitHub
Build this workspace against local checkouts of apache/datafusion and apache/arrow-rs (arrow-*, parquet) at exactly the revision published on crates.io. Use when profiling, debugging or a regression points into an upstream crate, or when preparing a fix to send upstream.
- Deletes or force-pushes
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- iceberg/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- benchmarkSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Every upstream fix or performance claim must be reproducible in the upstream repo alone.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Linking upstream DataFusion and arrow-rs source
- Clones live next to the main datafusion-distributed checkout:
$UPSTREAM/datafusionand$UPSTREAM/arrow-rs, whereUPSTREAM=$(cd "$(git rev-parse --path-format=absolute --git-common-dir)/../.." && pwd). The user may have work in progress in them, so link a detached worktree named after the version instead ($UPSTREAM/arrow-rs-<version>), e.g.git -C "$UPSTREAM/arrow-rs" worktree add --detach "$UPSTREAM/arrow-rs-<version>" '<version>^{commit}'. - The versions in use are in
Cargo.lock. These crates are published from the voted release tarball, so they ship no.cargo_vcs_info.json. The release tag (<version>, novprefix) is the last RC's commit, which is the published source. Check a crate withdiff -r ~/.cargo/registry/src/*/<crate>-<version> <worktree crate dir>. - Patch releases come from maintenance branches (
branch-55,59_maintenance), so fetch the tag explicitly:git fetch <apache remote> tag <version>. - Link with
[patch.crates-io]entries in an untracked.cargo/config.toml, using absolute paths. Every crate of the family that appears inCargo.lockmust be patched. Patching onlyarrow-ipcbuilds a secondarrow-arrayfrom the worktree, and its types don't unify with the crates.io copy.cargo metadata --no-deps --format-version 1in the worktree maps crate names to their directories. - A patch applies only to the locked version. When the lock pins another compatible version
(e.g. linking arrow 59.3.0 into a DataFusion checkout locked to 59.2.0), cargo silently keeps
crates.io until you run
cargo update -p <crate>for each patched crate. Always confirm withcargo tree -i <crate> --depth 0before measuring. - Linking rewrites
Cargo.lock. Never commit it or.cargo/(some IDEs stage new files automatically). Unlink withrm -rf .cargo && git checkout Cargo.lock. Linking and unlinking each trigger a full rebuild. - Worktree edits apply on the next build. To keep a fix,
git switch -cin the worktree. Upstream PRs targetmain, so port the change there. Upstream's own tests needgit submodule update --init. - Every upstream fix or performance claim must be reproducible in the upstream repo alone.
Upstream reviewers won't run datafusion-distributed, so its results only motivate the change.
Demonstrate it with an upstream test, or with the upstream benchmarks: criterion benches in
each crate (
cargo bench -p <crate> --bench <name> -- --save-baseline before, then--baseline before) and DataFusion'sbenchmarks/bench.sh. - Existing upstream benches may not exercise the conditions where the problem shows up here, such as many concurrent tasks or larger batches. Single-threaded benches miss allocator contention, for example. Extend them until the effect reproduces, and report any cases that regress.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

