Skip to content

Commit ebff0ac

Browse files
committed
test(ci): trace early Windows status publication
1 parent efe2e02 commit ebff0ac

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎src/build/schedule/detach_codegen.cppm‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,16 @@ std::optional<int> read_rc(const std::filesystem::path& slot) {
313313
// Temp file + rename, so a reader never observes half a number. The same
314314
// guarantee, for the same reason, that makes watching the BMI path sound.
315315
bool write_rc(const std::filesystem::path& slot, int rc,std::string* diagnostic=nullptr) {
316-
return transactions::replace_record(suffixed(slot,".rc"),std::to_string(rc)+"\n",diagnostic);
316+
std::string localDiagnostic;
317+
auto* detail=diagnostic?diagnostic:&localDiagnostic;
318+
const bool written=transactions::replace_record(suffixed(slot,".rc"),std::to_string(rc)+"\n",detail);
319+
#if defined(_WIN32)
320+
// CI-only: early supervisor failures have no caller-owned diagnostic.
321+
// Report their status-publication failure without printing private paths.
322+
if(!written&&!diagnostic&&std::getenv("MCPP_TEST_NATIVE_RENAME")!=nullptr)
323+
std::println(std::cerr,"mcpp: CI early status publication: {}",localDiagnostic);
324+
#endif
325+
return written;
317326
}
318327

319328
// Stable kernel lock slots, shared by ordinary and detached compilers. The

0 commit comments

Comments
 (0)