Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tidb-engine-ext): Mount the necessary cargo home cache directory #3212

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions prow-jobs/pingcap/tidb-engine-ext/latest-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ presubmits:
command: [bash, -ce]
args:
- |
rm -rf /root/.cargo/.git
rm -rf /root/.cargo/registry
ln -s /cargo-cache/git /root/.cargo/git
ln -s /cargo-cache/registry /root/.cargo/registry
set -euox pipefail
make ci_fmt_check
make ci_test
Expand All @@ -37,7 +33,14 @@ presubmits:
cpu: "12"
volumeMounts:
- name: cargo-cache
mountPath: /cargo-cache
mountPath: /root/.cargo/git/db
subPath: git/db
- name: cargo-cache
mountPath: /root/.cargo/registry/index
subPath: registry/index
- name: cargo-cache
mountPath: /root/.cargo/registry/cache
subPath: registry/cache
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ presubmits:
command: [bash, -ce]
args:
- |
rm -rf /root/.cargo/.git
rm -rf /root/.cargo/registry
ln -s /cargo-cache/git /root/.cargo/git
ln -s /cargo-cache/registry /root/.cargo/registry
set -euox pipefail
make ci_fmt_check
make ci_test
Expand All @@ -34,7 +30,14 @@ presubmits:
cpu: "12"
volumeMounts:
- name: cargo-cache
mountPath: /cargo-cache
mountPath: /root/.cargo/git/db
subPath: git/db
- name: cargo-cache
mountPath: /root/.cargo/registry/index
subPath: registry/index
- name: cargo-cache
mountPath: /root/.cargo/registry/cache
subPath: registry/cache
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down