Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky build failures on Windows: PermissionError: [WinError 5] Access is denied: 'dart-sdk/bin/dartaotruntime.exe' #55422

Closed
alexmarkov opened this issue Apr 10, 2024 · 1 comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@alexmarkov
Copy link
Contributor

On pkg-win-release, pkg-win-release-arm64 bots Dart build sometimes fails with the following errors:

[3634/3829] COPY dart_precompiled_runtime_product.exe dart-sdk/bin/dartaotruntime.exe
FAILED: dart-sdk/bin/dartaotruntime.exe 
C:/b/s/w/ir/cipd_bin_packages/cpython3/bin/python3.exe ../../build/toolchain/win/tool_wrapper.py recursive-mirror dart_precompiled_runtime_product.exe dart-sdk/bin/dartaotruntime.exe
Traceback (most recent call last):
  File "../../build/toolchain/win/tool_wrapper.py", line 259, in <module>
    sys.exit(main(sys.argv[1:]))
  File "../../build/toolchain/win/tool_wrapper.py", line 27, in main
    exit_code = executor.Dispatch(args)
  File "../../build/toolchain/win/tool_wrapper.py", line 69, in Dispatch
    return getattr(self, method)(*args[1:])
  File "../../build/toolchain/win/tool_wrapper.py", line 110, in ExecRecursiveMirror
    os.unlink(dest)
PermissionError: [WinError 5] Access is denied: 'dart-sdk/bin/dartaotruntime.exe'

It looks like dartaotruntime.exe process is hanging from the previous(?) testing.

Note that "kill processes" step doesn't mention dartaotruntime:

***************** Killing dart *****************
  No dart processes found.
***************** Killing gen_snapshot *****************
  No gen_snapshot processes found.
***************** Killing dart_precompiled_runtime *****************
  No dart_precompiled_runtime processes found.
***************** Killing git *****************
  No git processes found.
***************** Killing vctip *****************
  No vctip processes found.
***************** Killing mspdbsrv *****************
  No mspdbsrv processes found.
***************** Killing firefox *****************
  No firefox processes found.
***************** Killing chrome *****************
  No chrome processes found.
***************** Killing iexplore *****************
  No iexplore processes found.

Maybe it should be also killed before running the build.
@athomas @whesse Could you help with that?

@alexmarkov alexmarkov added the area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. label Apr 10, 2024
@alexmarkov
Copy link
Contributor Author

I found tools/task_kill.py which is likely used to kill processes on bots. If that's the case, then https://dart-review.googlesource.com/c/sdk/+/362140 should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

1 participant