Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flakiness - rework the validate-purgelogs flow
This change attempt to avoid such issue: ``` 2023-11-28 14:52:52.779734 | TASK [health-check/validate-purgelogs : Changing Logs modified time] 2023-11-28 09:52:53.432837 | controller | touch: cannot touch '/home/data/rsync/a8/a8dab0a4be04839ac4801e8dc4da995a50c250b0/post/config-update/e486495/zuul-info': No such file or directory 2023-11-28 09:52:53.434637 | controller | find: '/home/data/rsync/a8/a8dab0a4be04839ac4801e8dc4da995a50c250b0/post/config-update/e486495/zuul-info': No such file or directory 2023-11-28 09:52:53.436455 | controller | touch: cannot touch '/home/data/rsync/a8/a8dab0a4be04839ac4801e8dc4da995a50c250b0/post/config-update/e486495/zuul-manifest.json': No such file or directory 2023-11-28 09:52:53.436477 | controller | touch: cannot touch '/home/data/rsync/a8/a8dab0a4be04839ac4801e8dc4da995a50c250b0/post/config-update/e486495/job-output.txt.gz': No such file or directory 2023-11-28 09:52:53.438198 | controller | touch: cannot touch '/home/data/rsync/a8/a8dab0a4be04839ac4801e8dc4da995a50c250b0/post/config-update/e486495/job-output.json.gz': No such file or directory 2023-11-28 09:52:53.606151 | controller | command terminated with exit code 1 2023-11-28 14:52:53.821139 | controller | ERROR 2023-11-28 14:52:53.821494 | controller | { 2023-11-28 14:52:53.821568 | controller | "delta": "0:00:00.524195", 2023-11-28 14:52:53.821620 | controller | "end": "2023-11-28 09:52:53.620098", 2023-11-28 14:52:53.821668 | controller | "msg": "non-zero return code", 2023-11-28 14:52:53.821716 | controller | "rc": 1, 2023-11-28 14:52:53.821761 | controller | "start": "2023-11-28 09:52:53.095903" 2023-11-28 14:52:53.821804 | controller | } ``` I don't know the internal of `find` but I guess when walking the dir to build entries to act on to perform the 'touch', then purgelogs passed and purge ?!? The idea here is to move `find exec` before we restart purgelogs with the new loop delay. Change-Id: I8c0cbec2bb30c72345969d50df4cb0b7b55851e9
- Loading branch information