selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ci: fix stall on git log -1
@ 2020-08-11 19:10 bill.c.roberts
  2020-08-11 19:16 ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: bill.c.roberts @ 2020-08-11 19:10 UTC (permalink / raw)
  To: selinux; +Cc: omosnace, plautrba, William Roberts

From: William Roberts <william.c.roberts@intel.com>

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 <sds@tycho.nsa.gov>
Signed-off-by: William Roberts <william.c.roberts@intel.com>
---

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(-)

diff --git a/scripts/ci/fedora-test-runner.sh b/scripts/ci/fedora-test-runner.sh
index 0aaba87c421b..782189630569 100755
--- a/scripts/ci/fedora-test-runner.sh
+++ b/scripts/ci/fedora-test-runner.sh
@@ -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
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ci: fix stall on git log -1
  2020-08-11 19:10 [PATCH] ci: fix stall on git log -1 bill.c.roberts
@ 2020-08-11 19:16 ` Stephen Smalley
  2020-08-11 19:51   ` William Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2020-08-11 19:16 UTC (permalink / raw)
  To: William Roberts
  Cc: SElinux list, Ondrej Mosnacek, Petr Lautrbach, William Roberts

On Tue, Aug 11, 2020 at 3:11 PM <bill.c.roberts@gmail.com> wrote:
>
> From: William Roberts <william.c.roberts@intel.com>
>
> 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 <sds@tycho.nsa.gov>
> Signed-off-by: William Roberts <william.c.roberts@intel.com>

Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ci: fix stall on git log -1
  2020-08-11 19:16 ` Stephen Smalley
@ 2020-08-11 19:51   ` William Roberts
  2020-08-11 22:01     ` William Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: William Roberts @ 2020-08-11 19:51 UTC (permalink / raw)
  To: Stephen Smalley
  Cc: SElinux list, Ondrej Mosnacek, Petr Lautrbach, William Roberts

On Tue, Aug 11, 2020 at 2:16 PM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
>
> On Tue, Aug 11, 2020 at 3:11 PM <bill.c.roberts@gmail.com> wrote:
> >
> > From: William Roberts <william.c.roberts@intel.com>
> >
> > 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 <sds@tycho.nsa.gov>
> > Signed-off-by: William Roberts <william.c.roberts@intel.com>
>
> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ci: fix stall on git log -1
  2020-08-11 19:51   ` William Roberts
@ 2020-08-11 22:01     ` William Roberts
  0 siblings, 0 replies; 4+ messages in thread
From: William Roberts @ 2020-08-11 22:01 UTC (permalink / raw)
  To: Stephen Smalley
  Cc: SElinux list, Ondrej Mosnacek, Petr Lautrbach, William Roberts

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

On Tue, Aug 11, 2020 at 2:51 PM William Roberts
<bill.c.roberts@gmail.com> wrote:
>
> On Tue, Aug 11, 2020 at 2:16 PM Stephen Smalley
> <stephen.smalley.work@gmail.com> wrote:
> >
> > On Tue, Aug 11, 2020 at 3:11 PM <bill.c.roberts@gmail.com> wrote:
> > >
> > > From: William Roberts <william.c.roberts@intel.com>
> > >
> > > 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 <sds@tycho.nsa.gov>
> > > Signed-off-by: William Roberts <william.c.roberts@intel.com>
> >
> > Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
>
> Staged:
> https://github.com/SELinuxProject/selinux/pull/259

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-11 22:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 19:10 [PATCH] ci: fix stall on git log -1 bill.c.roberts
2020-08-11 19:16 ` Stephen Smalley
2020-08-11 19:51   ` William Roberts
2020-08-11 22:01     ` William Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).