rust-lang / rust-lang/rustup

sporadic CI failures deleting files on windows

Open
#1,900 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug O-windows
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

The Windows CI jobs fail from time to time deleting files during self upgrade; its likely a genuine bug, and the normal first step would be a procmon or WPA trace to identify what process is holding a handle open on the file - so we can see whether we are stepping on our own feet, or whether it is a virus scanner race we need more retries for.

High level we need to:

  • install procmon as part of Windows CI jobs
  • have an s3 bucket somewhere with autodelete of content
  • run procmon around each windows test
  • if that one test fails, upload the procmon PML file to s3 and provide a link in the error output in the console

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by locating the Windows CI job definitions and the test covering self-upgrade file deletion, then review how Procmon capture and S3 upload could surround each Windows test. Done means failed tests produce an accessible PML link in the CI console while normal runs do not upload captures.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ci-cd, devops, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.