<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33383</bug_id>
          
          <creation_ts>2017-04-17 15:50:32 +0300</creation_ts>
          <short_desc>[PATCH] task approve might result in non-zero exit code for no good reason</short_desc>
          <delta_ts>2017-04-17 18:50:14 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure</product>
          <component>git.altlinux.org</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.altlinux.org/people/mike/packages/?p=girar.git;a=commitdiff;h=bc9730be5bd6d3e50d5c4d3102f388bf88b623d5</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>glebfm</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163272</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-04-17 15:50:32 +0300</bug_when>
    <thetext>Looks like this commit involuntarily broke exit semantics by stuffing another command before the call: http://git.altlinux.org/people/mike/packages/?p=girar.git;a=commitdiff;h=74440ef665bf5f39c7cb69186d87f4c7ffc111f4

Hit that by attempting this:

  ssh git.alt task approve 181832 400 &amp;&amp; ssh git.alt task approve 181832 500

The first command returned errorlevel 1 despite the {,sub}task existing with no other reasonable obstacles in sight.

The attached patch should fix that by restoring the previous semantics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163275</commentid>
    <comment_count>1</comment_count>
      <attachid>7060</attachid>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-04-17 16:00:06 +0300</bug_when>
    <thetext>Created attachment 7060
fix exit code semantics

Duplicating patch reference from URL just in case:
http://git.altlinux.org/people/mike/packages/?p=girar.git;a=commitdiff;h=bc9730be5bd6d3e50d5c4d3102f388bf88b623d5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163277</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-04-17 16:16:43 +0300</bug_when>
    <thetext>Applied a simplified edition of your patch, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163295</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-04-17 18:50:14 +0300</bug_when>
    <thetext>VERIFIED THANKS
:)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7060</attachid>
            <date>2017-04-17 16:00:06 +0300</date>
            <delta_ts>2017-04-17 16:00:06 +0300</delta_ts>
            <desc>fix exit code semantics</desc>
            <filename>0001-girar-task-approve-fixed-errorlevel-returned.patch</filename>
            <type>text/plain</type>
            <size>927</size>
            <attacher name="Michael Shigorin">mike</attacher>
            
              <data encoding="base64">RnJvbSBiYzk3MzBiZTViZDZkM2U1MGQ1YzRkMzEwMmYzODhiZjg4YjYyM2Q1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFNoaWdvcmluIDxtaWtlQGFsdGxpbnV4Lm9yZz4K
RGF0ZTogTW9uLCAxNyBBcHIgMjAxNyAxNTozNToyMCArMDMwMApTdWJqZWN0OiBbUEFUQ0hdIGdp
cmFyLXRhc2stYXBwcm92ZTogZml4ZWQgZXJyb3JsZXZlbCByZXR1cm5lZAoKQSAndGFzayBhcHBy
b3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