Skip to contentSkip to conversation

ci: fix stall on git log -1

PATCH In review [email protected] 2 participants 4 messages Aug 11, 2020 SELinux security module

lore
Share & tools
lore
#0 lore raw

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
index 0aaba87c421b..782189630569 100755
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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.

#2 lore raw
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

Staged:
https://github.com/SELinuxProject/selinux/pull/259

#3 lore raw

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

Staged:
https://github.com/SELinuxProject/selinux/pull/259