ci: fix delete.bats for GHA#3542
Conversation
|
@thaJeztah PTAL |
This actually helps to ensure that two PRs that both took a long time to merge won't break one another. I've seen a few cases of that in the past, and now we have a mechanism (update with rebase button) which rebases the PR without losing LGTMs. So, I am going to rebase it and, if CI is all nice and green, merge it. |
aebcf18 to
11ee36a
Compare
Overall, this is an inherent issue with GitHub. There's no way to see what happened in between force pushes, so we can't have "leave LGTMs after force-push" enabled. For this and many other reasons, I'd switch to gerrit, but I'm not sure other @opencontainers/runc-maintainers concur. |
11ee36a to
a09a565
Compare
Hmm, either something has changed or I did a mistake a few minutes ago, but this is no longer working the way it's supposed to (meaning, I can rebase the branch without losing LGTMs). Oh my :( |
|
OTOH it just worked for #3635, so maybe if there are some noticeable changes during the rebase, LGTMs are lost, and if not, they are retained. |
a09a565 to
7b3d129
Compare
7b3d129 to
1f89422
Compare
1f89422 to
15829a5
Compare
15829a5 to
71cbfc8
Compare
|
@thaJeztah @AkihiroSuda PTAL |
|
@opencontainers/runc-maintainers this is an easy-to-review CI-only fix which sits here since July. Anything I can do to move this forward? |
A couple of test cases in delete.bats check that a particular cgroup
exists (or doesn't exist) using find. This is now resulting in errors
like these:
find: ‘/sys/fs/cgroup/blkio/azsec’: Permission denied
find: ‘/sys/fs/cgroup/blkio/azsec_clamav’: Permission denied
find: ‘/sys/fs/cgroup/cpu,cpuacct/azsec’: Permission denied
find: ‘/sys/fs/cgroup/cpu,cpuacct/azsec_clamav’: Permission denied
find: ‘/sys/fs/cgroup/memory/azsec’: Permission denied
find: ‘/sys/fs/cgroup/memory/azsec_clamav’: Permission denied
leading to test case failures.
Apparently, GHA runs something else on a test box, so we get this.
To fix, ignore non-zero exit code from find, and redirect its stderr
to /dev/null.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
71cbfc8 to
15677e7
Compare

TL;DR: this is a forward-port of f46c0da (part of #3538) to main branch, fixing a CI flake caused by a GHA CI env peculiarity.
A couple of test cases in delete.bats check that a particular cgroup
exists (or doesn't exist) using find. This is now resulting in errors
like these:
leading to test case failures.
Apparently, GHA runs something else on a test box, so we get this.
To fix, ignore non-zero exit code from find, and redirect its stderr
to /dev/null.