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

Android CI fails sporadically during build #5992

Closed
cre4ture opened this issue Feb 20, 2024 · 5 comments
Closed

Android CI fails sporadically during build #5992

cre4ture opened this issue Feb 20, 2024 · 5 comments

Comments

@cre4ture
Copy link
Contributor

cre4ture commented Feb 20, 2024

Android CI is still unstable due to random errors of Text file busy.
Example attachted.
The crate beeing affected seems to be rather random each time.
As I think this is an issue with the build system itself, I don't know how to easily fix this.
From my experience "Text file busy" means that an other process is blocking the file such that it can't be accessed.
Maybe this is a race-condition that happens when the creation of the file is not yet fully finished and its already accessed for execution?

Anyway I suggest to implement a workaround that just retries the build 3 times before stopping.
I can implement this.

[2024-02-20 17:00:18]    Compiling libc v0.2.153
[2024-02-20 17:00:18]    Compiling cfg-if v1.0.0
[2024-02-20 17:00:18]    Compiling typenum v1.15.0
[2024-02-20 17:00:18]    Compiling version_check v0.9.4
[2024-02-20 17:00:18]    Compiling bitflags v1.3.2
[2024-02-20 17:00:18]    Compiling io-lifetimes v1.0.11
[2024-02-20 17:00:18]    Compiling proc-macro2 v1.0.63
[2024-02-20 17:00:18] error: failed to run custom build command for `libc v0.2.153`
[2024-02-20 17:00:18] 
[2024-02-20 17:00:18] Caused by:
[2024-02-20 17:00:18]   could not execute process `/data/data/com.termux/files/home/coreutils/target/debug/build/libc-db86c7903a93619b/build-script-build` (never executed)
[2024-02-20 17:00:18] 
[2024-02-20 17:00:18] Caused by:
[2024-02-20 17:00:18]   Text file busy (os error 26)
[2024-02-20 17:00:18] warning: build failed, waiting for other jobs to finish...
@cre4ture
Copy link
Contributor Author

I have the feeling that this doesn happen anymore currently.
So the PR stays in draft, because its propably not needed.

@BenWiederhake
Copy link
Collaborator

It just happened again: #6015 (comment)

@cre4ture
Copy link
Contributor Author

@BenWiederhake thanks for reporting. Before merge, I wanted to see a case where my workaround was actually needed and working. Currently, on this branch I had only cases where the build worked the first time.

@cre4ture
Copy link
Contributor Author

Update: it works. I found now a case where it was happing on this branch, and the automatic retry was helping to make build successful.

@cre4ture
Copy link
Contributor Author

closing as workaround was merged to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants