ci: fix stall on git log -1
PATCH 1/1 ci: fix stall on git log -1
From: William Roberts <[email protected]>
git log -1 may use a pager to output long messages, and when the pager is invoked, leads to stalls on the ci system waiting for user input. Use --oneline to print the short part of the commit message and the digest. This information is for debug/informational purposes only, so truncating the output is sufficient.
---
Thanks Ondrej for pointing out that the culprit was the pager, many thanks for triaging this.
scripts/ci/fedora-test-runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/ci/fedora-test-runner.sh +1 -1
@@ -67,7 +67,7 @@ dnf install -y \ cd "$SELINUX_DIR" # Show HEAD commit for sanity checking -git log -1 +git log --oneline -1 # # Build and replace userspace components
Signature · 1 line
2.17.1
Quoted 11 lines · On Tue, Aug 11, 2020 at 3:11 PM <[email protected]> wrote:
From: William Roberts <[email protected]>
git log -1 may use a pager to output long messages, and when the pager is invoked, leads to stalls on the ci system waiting for user input. Use --oneline to print the short part of the commit message and the digest. This information is for debug/informational purposes only, so truncating the output is sufficient.
Reported-by Stephen Smalley <[email protected]>Signed-off-by William Roberts <[email protected]>
Quoted 11 lines · Stephen Smalley
Quoted 9 lines · On Tue, Aug 11, 2020 at 3:11 PM <[email protected]> wrote:
From: William Roberts <[email protected]>
git log -1 may use a pager to output long messages, and when the pager is invoked, leads to stalls on the ci system waiting for user input. Use --oneline to print the short part of the commit message and the digest. This information is for debug/informational purposes only, so truncating the output is sufficient.
Quoted 4 lines
Quoted 2 lines
Reported-by Stephen Smalley <[email protected]>Signed-off-by William Roberts <[email protected]>Acked-by Stephen Smalley <[email protected]>
merged:
https://github.com/SELinuxProject/selinux/pull/259
Quoted 21 lines · William Roberts
Quoted 11 lines · Stephen Smalley
Quoted 9 lines · On Tue, Aug 11, 2020 at 3:11 PM <[email protected]> wrote:
From: William Roberts <[email protected]>
git log -1 may use a pager to output long messages, and when the pager is invoked, leads to stalls on the ci system waiting for user input. Use --oneline to print the short part of the commit message and the digest. This information is for debug/informational purposes only, so truncating the output is sufficient.
Quoted 4 lines
Quoted 2 lines
Reported-by Stephen Smalley <[email protected]>Signed-off-by William Roberts <[email protected]>Acked-by Stephen Smalley <[email protected]>