Skip to content

perf: xtask sccache#788

Merged
farazdagi merged 3 commits into
mainfrom
perf/xtask-build-isolation
May 29, 2026
Merged

perf: xtask sccache#788
farazdagi merged 3 commits into
mainfrom
perf/xtask-build-isolation

Conversation

@farazdagi

@farazdagi farazdagi commented May 29, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • cargo x command gets its own target directory, so that normal cargo cmd doesn't invalidate compiled deps (and xtask doesn't have to rebuild when source code changes, unless it is xtask's code itself)
  • Add ability to either prepend with ETL_SCCACHE=1 or --sccache for command to rely on sccache (provided it is intalled). Helps a lot with those libduckdb.sys recompilations, local builds are faster now.

Deliberately made the sccache an opt-in feature, use source .env (created from .env.example) should you want to have a quick way to enable it for all cargo x commands.

@farazdagi farazdagi self-assigned this May 29, 2026
@farazdagi
farazdagi force-pushed the perf/xtask-build-isolation branch from 651071c to d0083a6 Compare May 29, 2026 12:13
@farazdagi
farazdagi force-pushed the perf/xtask-build-isolation branch from dd477e8 to e85299a Compare May 29, 2026 12:22
@farazdagi
farazdagi marked this pull request as ready for review May 29, 2026 12:24
@farazdagi
farazdagi requested a review from a team as a code owner May 29, 2026 12:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e85299a9f3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/xtask/src/commands/shared.rs Outdated
@farazdagi
farazdagi enabled auto-merge (squash) May 29, 2026 12:38
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 72.577% (-0.05%) from 72.627% — perf/xtask-build-isolation into main

@farazdagi
farazdagi merged commit 014bd88 into main May 29, 2026
18 checks passed
@farazdagi
farazdagi deleted the perf/xtask-build-isolation branch May 29, 2026 13:00
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.

4 participants