Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ci-build.yml: Cargo cache key references a step id that does not exist, so it never invalidates on a toolchain bump

Đang mở Phù hợp với người mới
#243 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github-actions, rust
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Vấn đề nằm ở bước Cache Cargo trong ci-build.yml, khoảng dòng 46, bước này tạo khóa cache từ steps.rust-toolchain.outputs.cachekey. Hãy kiểm tra bước dtolnay/rust-toolchain ngay phía trên để xem nó có id mà biểu thức khóa đang tham chiếu hay không. Hoàn thành khi khóa cache bao gồm một thành phần toolchain thực sự và workflow vẫn chạy trên các mục của matrix, bao gồm hai dòng ubuntu-latest chỉ khác nhau ở target.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Also found while modelling ddx's wheel CI on this workflow.

ci-build.yml L46 keys the Cargo cache on the toolchain:

      - uses: dtolnay/rust-toolchain@stable

      - name: Cache Cargo
        uses: actions/cache@v4
        with:
          key: cargo-cache-${{ steps.rust-toolchain.outputs.cachekey }}-${{ matrix.platform.runner }}-...

but no step carries id: rust-toolchain, so steps.rust-toolchain.outputs.cachekey resolves to the empty string and the key collapses to cargo-cache--<runner>-<target>-<Cargo.lock hash>.

The cache still works, so nothing fails — but it no longer invalidates when the toolchain moves. @stable rolls forward roughly every six weeks, and on that day the job restores artifacts built by the previous compiler under a key that claims to describe the new one. Usually harmless, occasionally a confusing rebuild or a stale-artifact error that does not reproduce locally.

One-line fix:

      - uses: dtolnay/rust-toolchain@stable
        id: rust-toolchain

Worth noting the same key is used across five matrix entries that differ in platform.target but share a runner for the two Ubuntu rows (aarch64 and x86_64 both on ubuntu-latest) — those are distinguished by target, so that part is fine.

Happy to send a PR alongside #242 if useful.

Ngôn ngữ chính
Python
Star
142
Fork
19
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của xqlsystems/xarray-sql

Tất cả issue của xqlsystems/xarray-sql

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.