build_status blocks case rebuild

Đang mở
#4,239 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

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

@ekluzek đang làm issue này rồi.

Từ ngày 7/10/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
build-system

Hướng nghiên cứu

Start by reproducing the failed build and retrying ./case.build after correcting the error; inspect how env_build sets BUILD_STATUS and how ./case.build checks it. Use ./xmlchange BUILD_STATUS=0 only as a comparison. Done means a corrected build can proceed without requiring ./case.build --clean-all.

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

Mô tả

b4b usability
Brief summary of bug

Using ctsm5.4.060, when a build fails (e.g. due to a syntax error), build_status is set to 1 in env_build. Trying to rebuild after correcting build error is then blocked with the following message:

BUILD_STATUS' has changed from 0 to 1
ERROR: For your changes to take effect, run:
./case.build --clean-all
./case.build

This is undesirable because it forces a complete clean and rebuild, instead of just rebuilding necessary files. A work-around is to manually set build_status to 0 with ./xmlchange BUILD_STATUS=0; then ./case.build can proceed.

General bug information

CTSM version you are using: ctsm5.4.060

Does this bug cause significantly incorrect results in the model's science? No

Configurations affected: anytime the build fails and you have to rerun, because there was a problem in one of the Fortran source files

Details of bug

In the chat discussion, Erik suggests that likely it's the changes that came in with cime6.5.4 that was brought in with ctsm5.4.054. Erik, replicated this in the latest dev version. It only happens when the build fails. But, that's the time that you want it to just rebuild the few files that failed.

Erik will open a corresponding CIME issue.

Ngôn ngữ chính
Fortran
Star
362
Fork
372
Merge trung bình
1 ngày 11 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 ESCOMP/CTSM

Tất cả issue của ESCOMP/CTSM

Issue tương tự

Thêm issue về Build System

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.