zig icon indicating copy to clipboard operation
zig copied to clipboard

"options: error: AccessDenied" race on Windows with build options post #14647

Open scheibo opened this issue 1 year ago • 4 comments

Zig Version

0.11.0-dev.2247+38ee46dda

Steps to Reproduce and Observed Behavior

I'm assuming Windows needs something similar to the solution for macOS from #15006

$ git clone https://github.com/pkmn/engine.git
$ zig -Dshowdown=false tools -p build

Note: this doesn't seem to fail consistently - it has failed on the GitHub CI on 1/4 windows runs the last two times ive pushed and then when the job is retried it succeeds. https://github.com/pkmn/engine/actions/runs/4506104662/jobs/7932535027

options: error: unable to rename options from 'D:\a\engine\engine\zig-cache\tmp\67ec2197bc57191a\options.zig' to 'D:\a\engine\engine\zig-cache\c\fb49e8bc5ba2181c23673c24abe88e66\options.zig': AccessDenied
Build Summary: 9/[14](https://github.com/pkmn/engine/actions/runs/4506104662/jobs/7932535027#step:13:15) steps succeeded; 1 failed (disable with -fno-summary)
tools transitive failure
+- Install tools transitive failure
   +- install benchmark transitive failure
   |  +- zig build-exe benchmark ReleaseFast native transitive failure
   |     +- options failure
   +- install fuzz success
   |  +- zig build-exe fuzz Debug native success 2s
   |     +- options success
   +- install serde success
   |  +- zig build-exe serde Debug native success 2s
   |     +- options cached
   +- install protocol success
      +- zig build-exe protocol Debug native success 3s
         +- options cached

Expected Behavior

No error :)

scheibo avatar Mar 24 '23 00:03 scheibo

https://github.com/ziglang/zig/issues/8362 possibly related?

scheibo avatar Mar 24 '23 06:03 scheibo

This is possibly fixed - I haven't seen it repro after 0.11.0-dev.3132 (possible #15641 fixed this?). If i see this crop up again I will reopen/try to get a more usable reproduction.

scheibo avatar May 18 '23 18:05 scheibo

OK so this still repros (though less frequently?) https://github.com/pkmn/engine/actions/runs/5052518703/jobs/9065449621

Don't really have a nice friendly minimal set up for this beyond the initial description. nor do i know if the fact that is seems to be consistently failing on the build options package is relevant

scheibo avatar May 23 '23 21:05 scheibo

Windows-specific issue is probably related to #14978

motiejus avatar Jun 20 '23 07:06 motiejus