You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2021/02/05 10:20:59 UTC

[GitHub] [buildstream] BuildStream-Migration-Bot opened a new issue #1394: Build failure message is not printed before user prompt in interactive mode

BuildStream-Migration-Bot opened a new issue #1394:
URL: https://github.com/apache/buildstream/issues/1394


   [See original issue on GitLab](https://gitlab.com/BuildStream/buildstream/-/issues/1394)
   In GitLab by [[Gitlab user @tristanvb]](https://gitlab.com/tristanvb) on Sep 20, 2020, 08:02
   
   Today while testing fdsdk ports against BuildStream master, I encountered the following in the UI:
   
   
   ```
   [--:--:--][14a1ca15][   build:bootstrap/glibc.bst           ] START   freedesktop-sdk/bootstrap-glibc/14a1ca15-build.4192016.log
   [--:--:--][14a1ca15][   build:bootstrap/linux-headers.bst   ] STATUS  Staging bootstrap/linux-headers.bst/47a8467e
   
   Build failure on element: bootstrap/glibc.bst
   
   Choose one of the following options:
     (c)ontinue  - Continue queueing jobs as much as possible
     (q)uit      - Exit after all ongoing jobs complete
     (t)erminate - Terminate any ongoing jobs and exit
     (r)etry     - Retry this job
     (l)og       - View the full log file
   
   Pressing ^C will terminate jobs and exit
   
   
   Choice: [continue]: 
   
   Continuing with other non failing elements
   ```
   
   After dismissing the prompt, I got the following:
   
   ```
   [--:--:--][14a1ca15][   build:bootstrap/gnu-config.bst      ] STATUS  Staging bootstrap/gnu-config.bst/41de65c5
   [--:--:--][14a1ca15][   build:bootstrap/build/dwz-build.bst ] STATUS  Staging bootstrap/build/dwz-build.bst/54b3b542
   [--:--:--][14a1ca15][   build:bootstrap/build/tools-lib-path.bst] STATUS  Staging bootstrap/build/tools-lib-path.bst/06cd15ad
   [--:--:--][14a1ca15][   build:bootstrap/build/elfutils-build.bst] STATUS  Staging bootstrap/build/elfutils-build.bst/3ba8bb0e
   [--:--:--][14a1ca15][   build:bootstrap/build/file-stage1.bst] STATUS  Staging bootstrap/build/file-stage1.bst/81d9ec9f
   [--:--:--][14a1ca15][   build:bootstrap/build/debugedit-build.bst] STATUS  Staging bootstrap/build/debugedit-build.bst/d28b84db
   [--:--:--][14a1ca15][   build:bootstrap/build/stripper.bst  ] STATUS  Staging bootstrap/build/stripper.bst/39725ba1
   [--:--:--][14a1ca15][   build:bootstrap/build/debug-utils.bst] STATUS  Staging bootstrap/build/debug-utils.bst/9c869295
   [--:--:--][14a1ca15][   build:bootstrap/build/base-sdk/filtered.bst] STATUS  Staging bootstrap/build/base-sdk/filtered.bst/5747e62f
   [--:--:--][14a1ca15][   build:bootstrap/build/base-sdk/symlinks.bst] STATUS  Staging bootstrap/build/base-sdk/symlinks.bst/b4e168e0
   [--:--:--][14a1ca15][   build:bootstrap/build/base-sdk.bst  ] STATUS  Staging bootstrap/build/base-sdk.bst/36b8498b
   [--:--:--][14a1ca15][   build:bootstrap/build/binutils-stage1.bst] STATUS  Staging bootstrap/build/binutils-stage1.bst/8f278972
   [--:--:--][14a1ca15][   build:bootstrap/build/gcc-stage1.bst] STATUS  Staging bootstrap/build/gcc-stage1.bst/f7ebac9b
   [00:00:00][14a1ca15][   build:bootstrap/glibc.bst           ] FAILURE [overlaps]: Non-whitelisted overlaps detected
   Staged files overwrite existing files in staging area: /
   /usr/bin/dwz: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
   /usr/share/man/man1/dwz.1: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
   
   
       Printing the last 20 lines from log file:
       /home/tristan/.cache/buildstream/logs/freedesktop-sdk/bootstrap-glibc/14a1ca15-build.4192016.log
       ======================================================================
           V: '1'
       [--:--:--] STATUS  bootstrap/linux-headers.bst: Staging bootstrap/linux-headers.bst/47a8467e
       [--:--:--] STATUS  bootstrap/gnu-config.bst: Staging bootstrap/gnu-config.bst/41de65c5
       [--:--:--] STATUS  bootstrap/build/dwz-build.bst: Staging bootstrap/build/dwz-build.bst/54b3b542
       [--:--:--] STATUS  bootstrap/build/tools-lib-path.bst: Staging bootstrap/build/tools-lib-path.bst/06cd15ad
       [--:--:--] STATUS  bootstrap/build/elfutils-build.bst: Staging bootstrap/build/elfutils-build.bst/3ba8bb0e
       [--:--:--] STATUS  bootstrap/build/file-stage1.bst: Staging bootstrap/build/file-stage1.bst/81d9ec9f
       [--:--:--] STATUS  bootstrap/build/debugedit-build.bst: Staging bootstrap/build/debugedit-build.bst/d28b84db
       [--:--:--] STATUS  bootstrap/build/stripper.bst: Staging bootstrap/build/stripper.bst/39725ba1
       [--:--:--] STATUS  bootstrap/build/debug-utils.bst: Staging bootstrap/build/debug-utils.bst/9c869295
       [--:--:--] STATUS  bootstrap/build/base-sdk/filtered.bst: Staging bootstrap/build/base-sdk/filtered.bst/5747e62f
       [--:--:--] STATUS  bootstrap/build/base-sdk/symlinks.bst: Staging bootstrap/build/base-sdk/symlinks.bst/b4e168e0
       [--:--:--] STATUS  bootstrap/build/base-sdk.bst: Staging bootstrap/build/base-sdk.bst/36b8498b
       [--:--:--] STATUS  bootstrap/build/binutils-stage1.bst: Staging bootstrap/build/binutils-stage1.bst/8f278972
       [--:--:--] STATUS  bootstrap/build/gcc-stage1.bst: Staging bootstrap/build/gcc-stage1.bst/f7ebac9b
       [00:00:00] FAILURE bootstrap/glibc.bst: [overlaps]: Non-whitelisted overlaps detected
       Staged files overwrite existing files in staging area: /
       /usr/bin/dwz: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
       /usr/share/man/man1/dwz.1: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst
       ======================================================================
   
   [00:21:14][        ][    main:core activity                 ] FAILURE Build
   
   
   Failure Summary
       bootstrap/glibc.bst:
       [00:00:00][14a1ca15][   build:bootstrap/glibc.bst           ] FAILURE [overlaps]: Non-whitelisted overlaps detected
       Staged files overwrite existing files in staging area: /
       /usr/bin/dwz: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
       /usr/share/man/man1/dwz.1: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
   
   
           Printing the last 20 lines from log file:
           /home/tristan/.cache/buildstream/logs/freedesktop-sdk/bootstrap-glibc/14a1ca15-build.4192016.log
           ======================================================================
               V: '1'
           [--:--:--] STATUS  bootstrap/linux-headers.bst: Staging bootstrap/linux-headers.bst/47a8467e
           [--:--:--] STATUS  bootstrap/gnu-config.bst: Staging bootstrap/gnu-config.bst/41de65c5
           [--:--:--] STATUS  bootstrap/build/dwz-build.bst: Staging bootstrap/build/dwz-build.bst/54b3b542
           [--:--:--] STATUS  bootstrap/build/tools-lib-path.bst: Staging bootstrap/build/tools-lib-path.bst/06cd15ad
           [--:--:--] STATUS  bootstrap/build/elfutils-build.bst: Staging bootstrap/build/elfutils-build.bst/3ba8bb0e
           [--:--:--] STATUS  bootstrap/build/file-stage1.bst: Staging bootstrap/build/file-stage1.bst/81d9ec9f
           [--:--:--] STATUS  bootstrap/build/debugedit-build.bst: Staging bootstrap/build/debugedit-build.bst/d28b84db
           [--:--:--] STATUS  bootstrap/build/stripper.bst: Staging bootstrap/build/stripper.bst/39725ba1
           [--:--:--] STATUS  bootstrap/build/debug-utils.bst: Staging bootstrap/build/debug-utils.bst/9c869295
           [--:--:--] STATUS  bootstrap/build/base-sdk/filtered.bst: Staging bootstrap/build/base-sdk/filtered.bst/5747e62f
           [--:--:--] STATUS  bootstrap/build/base-sdk/symlinks.bst: Staging bootstrap/build/base-sdk/symlinks.bst/b4e168e0
           [--:--:--] STATUS  bootstrap/build/base-sdk.bst: Staging bootstrap/build/base-sdk.bst/36b8498b
           [--:--:--] STATUS  bootstrap/build/binutils-stage1.bst: Staging bootstrap/build/binutils-stage1.bst/8f278972
           [--:--:--] STATUS  bootstrap/build/gcc-stage1.bst: Staging bootstrap/build/gcc-stage1.bst/f7ebac9b
           [00:00:00] FAILURE bootstrap/glibc.bst: [overlaps]: Non-whitelisted overlaps detected
           Staged files overwrite existing files in staging area: /
           /usr/bin/dwz: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst 
           /usr/share/man/man1/dwz.1: bootstrap/build/base-sdk/filtered.bst is not permitted to overlap other elements, order bootstrap/build/base-sdk/filtered.bst above bootstrap/build/dwz-build.bst
           ======================================================================
   
   Pipeline Summary
       Total:       17
       Session:     3
       Fetch Queue: processed 1, skipped 2, failed 0 
       Build Queue: processed 2, skipped 0, failed 1 
   
   
   [--:--:--][        ][    main:core activity                 ] START   Terminating buildbox-casd
   [00:00:02][        ][    main:core activity                 ] SUCCESS Terminating buildbox-casd
   
   ```
   
   The `FAILURE` message is somehow pushed back to the end of the message queue, instead of being printed directly before the user prompt.
   
   It did not work like this before, I expect to see the `FAILURE` message *before* the interactive prompt, giving me some context about what failed immediately before asking me what I want to do about it.
   
   At the end of the session, of course the collection of `FAILURE` messages are summarized again, in the above case, they same message is printed twice at the end; first the message which should have come before the prompt is printed, and then it is printed again as a part of the failure summary a couple of lines further down.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org