summaryrefslogtreecommitdiff
path: root/tcwg-cleanup-stale-workspaces.sh
AgeCommit message (Collapse)Author
2020-04-30Shellcheck fixes round 4David Spickett
Fixes for: https://github.com/koalaman/shellcheck/wiki/SC2207 Are using the bash 4.x 'mapfile' syntax where the input to the array is seperated by newlines. If it's separated by spaces we use 'read' instead. Support for selecting libc in MakeRelease.job was removed in 3fa23da28ad73d0fe4b512c4aab269b5280a6650. So remove references to "libc" which were expanding to nothing anyway. In tcwg-llvm-common.sh PROJECTS->BRANCHED_PROJECTS is not strictly needed. However shellcheck can't tell that the local PROJECTS in this file is different from the PROJECTS in tcwg-llvm-build.sh. Change-Id: Ie55968e3bf185d0bd5795fe48014636cda1009bc
2019-03-22docker-run.sh, tcwg-cleanup-stale-workspaces.sh: Use flockChristophe Lyon
In order to be able to remove old workspaces, this patch uses flock to make sure the renaming for $dir to $dir.bak does not happen while a build is in progress. To achieve that, both the renaming and the command executed by docker-run.sh use this exclusive lock. Unfortunately, this does not prevent race conditions with builds not relying on docker-run.sh, so such builds should either use flock or switch to using docker-run.sh. Change-Id: Ib8a7cbf33819d81f858c25f62a091b0b94c48d21
2018-06-01tcwg-cleanup-stale-workspaces.sh: Make a bit more robust to racesMaxim Kuvyrkov
... with other builds. Change-Id: I2f606839dfbbe4b15c5cb1bec1a4ad7f1747de77
2017-08-11tcwg-cleanup-stale-workspaces: Robustify against disappearing directories.Maxim Kuvyrkov
Handle rare cases when directories are removed by another job and "ld -ld" fails to find a directory. Change-Id: I138c5e941bd482df0e64c53a861a1a85553a64dc
2017-05-04tcwg-cleanup-stale-workspaces: Remove obsolete parameter.Maxim Kuvyrkov
Change-Id: I644d774535877e559d66beb59733756e67cf0add
2017-05-04tcwg-cleanup-stale-workspaces.sh: Use better heuristic to find workspacesMaxim Kuvyrkov
Workspaces are detected as first directory (depth-wise) which has regular files. Change-Id: Ic6a735b22965565f599d2f07ce5d1ef17c8174dd
2017-05-02tcwg-cleanup-stale-workspaces.sh: Robustify against non-exec directoriesMaxim Kuvyrkov
... which glibc testsuite can create. Change-Id: I14c5fea97eb9a11572fd6c31b8a3b328757fec4b
2017-04-28tcwg-cleanup-stale-workspaces: New script, move from .yaml file.Maxim Kuvyrkov
Change-Id: I64040596242119d4d9ecfd02c07a1892cba07b4e