coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

Android CI: workaround: run builds with retry

Open cre4ture opened this issue 1 year ago • 2 comments

tries to address #5992

cre4ture avatar Feb 20 '24 17:02 cre4ture

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

github-actions[bot] avatar Feb 24 '24 14:02 github-actions[bot]

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

github-actions[bot] avatar Feb 25 '24 18:02 github-actions[bot]

I finally reproduced the issue once on this branch. See attached logs below. This proves that the issue is really some race-condition like temporary issue, where a retry helps to finish building process successfully.

There I recommend to bring this workaround to main branch.

2024-02-25T18:23:00.8438134Z [2024-02-25 18:23:00] address sizes	: 40 bits physical, 48 bits virtual
2024-02-25T18:23:00.8451464Z [2024-02-25 18:23:00] power management:
2024-02-25T18:23:00.8464611Z [2024-02-25 18:23:00] 
2024-02-25T18:23:00.8482502Z Try #1 of 3: run run_command_via_ssh export CARGO_TERM_COLOR=always;
2024-02-25T18:23:00.8483576Z              export CARGO_INCREMENTAL=0;              cd ~/coreutils && cargo build --features feat_os_unix_android
2024-02-25T18:23:01.1457255Z [2024-02-25 18:23:01] [1m[32m    Updating[0m crates.io index
2024-02-25T18:23:02.0445025Z [2024-02-25 18:23:02] [1m[32m Downloading[0m crates ...
2024-02-25T18:23:02.5256421Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m keccak v0.1.4
2024-02-25T18:23:02.5449584Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m libm v0.2.7
2024-02-25T18:23:02.5684589Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m onig v6.4.0
2024-02-25T18:23:02.5883226Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m siphasher v0.3.10
2024-02-25T18:23:02.6035124Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m getrandom v0.2.9
2024-02-25T18:23:02.6213993Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m rustix v0.37.26
2024-02-25T18:23:02.6632596Z [2024-02-25 18:23:02] [1m[32m  Downloaded[0m quick-error v2.

....


2024-02-25T18:23:38.6913188Z [2024-02-25 18:23:38] [1m[32m   Compiling[0m smallvec v1.13.1
2024-02-25T18:23:39.0193541Z [2024-02-25 18:23:39] [1m[32m   Compiling[0m pkg-config v0.3.26
2024-02-25T18:23:39.5033086Z [2024-02-25 18:23:39] [1m[32m   Compiling[0m portable-atomic v0.3.15
2024-02-25T18:23:39.5874492Z [2024-02-25 18:23:39] [1m[32m   Compiling[0m parking_lot_core v0.9.9
2024-02-25T18:23:40.1572933Z [2024-02-25 18:23:40] [1m[31merror[0m[1m:[0m failed to run custom build command for `portable-atomic v0.3.15`
2024-02-25T18:23:40.1593065Z [2024-02-25 18:23:40] 
2024-02-25T18:23:40.1614762Z [2024-02-25 18:23:40] Caused by:
2024-02-25T18:23:40.1636787Z [2024-02-25 18:23:40]   could not execute process `/data/data/com.termux/files/home/coreutils/target/debug/build/portable-atomic-10228312d9d1b245/build-script-build` (never executed)
2024-02-25T18:23:40.1658723Z [2024-02-25 18:23:40] 
2024-02-25T18:23:40.1679356Z [2024-02-25 18:23:40] Caused by:
2024-02-25T18:23:40.1701175Z [2024-02-25 18:23:40]   Text file busy (os error 26)
2024-02-25T18:23:40.1719787Z [2024-02-25 18:23:40] [1m[33mwarning[0m[1m:[0m build failed, waiting for other jobs to finish...
2024-02-25T18:23:43.3223197Z Try #2 of 3: run run_command_via_ssh export CARGO_TERM_COLOR=always;
2024-02-25T18:23:43.3225069Z              export CARGO_INCREMENTAL=0;              cd ~/coreutils && cargo build --features feat_os_unix_android
2024-02-25T18:23:43.9077434Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m parking_lot_core v0.9.9
2024-02-25T18:23:43.9095840Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m hostname v0.3.1
2024-02-25T18:23:43.9113535Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m portable-atomic v0.3.15
2024-02-25T18:23:43.9129043Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m onig_sys v69.8.1
2024-02-25T18:23:43.9229406Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m signal-hook v0.3.17
2024-02-25T18:23:43.9828666Z [2024-02-25 18:23:43] [1m[32m   Compiling[0m num-bigint v0.4


......


2024-02-25T18:24:19.8553173Z [2024-02-25 18:24:19] [1m[32m   Compiling[0m uu_chown v0.0.24 (/data/data/com.termux/files/home/coreutils/src/uu/chown)
2024-02-25T18:24:20.2022202Z [2024-02-25 18:24:20] [1m[32m   Compiling[0m uu_fold v0.0.24 (/data/data/com.termux/files/home/coreutils/src/uu/fold)
2024-02-25T18:24:20.3630108Z [2024-02-25 18:24:20] [1m[32m   Compiling[0m uu_dirname v0.0.24 (/data/data/com.termux/files/home/coreutils/src/uu/dirname)
2024-02-25T18:24:20.4919110Z [2024-02-25 18:24:20] [1m[32m   Compiling[0m uu_groups v0.0.24 (/data/data/com.termux/files/home/coreutils/src/uu/groups)
2024-02-25T18:24:20.5394735Z [2024-02-25 18:24:20] [1m[32m   Compiling[0m uu_unexpand v0.0.24 (/data/data/com.termux/files/home/coreutils/src/uu/unexpand)
2024-02-25T18:24:20.6688802Z [2024-02-25 18:24:20] [1m[32m   Compiling[0m clap_complete v4.4.0
2024-02-25T18:24:31.0318417Z [2024-02-25 18:24:31] [1m[32m    Finished[0m dev [unoptimized + debuginfo] target(s) in 47.48s
2024-02-25T18:24:31.0457006Z Done in try#2
2024-02-25T18:24:31.0457803Z Finished build
2024-02-25T18:24:31.0590495Z [command]/usr/bin/sh -c util/android-commands.sh tests
2024-02-25T18:24:31.1094281Z next round robin repo_url: 1
2024-02-25T18:24:31.1095263Z ====== runner information ======

Logs are from here: https://github.com/cre4ture/coreutils/actions/runs/8039856982/job/21957302175

cre4ture avatar Feb 26 '24 21:02 cre4ture

@cakebaker, @tertsdiepraam, @sylvestre - please review

cre4ture avatar Feb 26 '24 21:02 cre4ture

excellent, thanks :)

sylvestre avatar Feb 28 '24 08:02 sylvestre