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

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

    <bug>
          <bug_id>37131</bug_id>
          
          <creation_ts>2019-08-21 12:52:19 +0300</creation_ts>
          <short_desc>Использует выполненое задание (DONE) как последнее в командах без аргумента</short_desc>
          <delta_ts>2019-11-02 19:55:58 +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>girar</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>rider</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>183764</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2019-08-21 12:52:19 +0300</bug_when>
    <thetext>Надо или показывать его в списке, или игнорировать для команд без аргумента.

$ ssh git.alt task run
task run: task #236385 is already successfully processed

$ ssh git.alt task ls|head -1
#236350 NEW #3 [test-only] p9 ocaml.git=4.08.1-alt1 kde5-kalzium.git=19.04.3-alt1 ocaml-ocamlbuild.git=0.14.0-alt1 ocaml-opam-file-format.git=2.0.0-alt4 libfftw3-mpi.git=3.3.4-alt1.1 SpamOracle.git=1.4-alt2 ocaml-bdb.git=4.3.21-alt10 facile.git=1.1.3-alt8 getfemxx.git=5.3-alt1 hevea.git=2.32-alt1 enblend.git=4.2-alt3 texvc.git=nmu/texvc-1.14.0-alt4.qa1 ocaml-camlidl.git=1.07-alt1 ocaml-camlp5.git=7.08-alt1 ocaml-camlp4.git=4.08.1-alt1 haxe.git=3.4.7-alt1 ocaml-labltk.git=8.06.6-alt1 ocaml-lablgl.git=1.06-alt1 ocaml-findlib.git=1.8.1-alt1 ocaml-parmap.git=1.0-alt3.rc10 hivex.git=1.3.18-alt1 ocaml-curses.git=1.0.3-alt7 ocaml-ounit.git=2.0.8-alt4 ocaml-num.git=1.2-alt1 cgum.git=1.0.1-alt1 xen.git=4.10.3-alt1 ocaml-zip.git=1.08-alt1 ocaml-libvirt.git=0.6.1.4-alt8 ocaml-omake.git=0.10.3-alt2 ocaml-camlbz2.git=0.6.0-alt1 ocaml-calendar.git=2.04-alt8 swig.git=3.0.12-alt8 ocaml-curl.git=0.8.2-alt3 ocaml-functory.git=0.6-alt3 ocaml-mysql.git=1.2.2-alt5 ocaml-ppx_tools.git=5.3-alt1 ocamlify.git=0.0.2-alt2 libguestfs.git=1.40.2-alt2 ocaml-xml-light.git=2.4-alt7 ocaml-expat.git=1.1.0-alt5 ocaml-fileutils.git=0.5.3-alt4 ocamlmod.git=0.0.9-alt2 ocaml-oasis.git=0.4.11-alt2 ocaml-omd.git=1.3.1-alt2 ocaml-zarith.git=1.8-alt1 ocaml-cryptokit.git=1.13-alt4 sks.git=1.1.6-alt2 ocaml-menhir.git=20190620-alt2 dune.git=1.11.0-alt1 ocaml-result.git=1.4-alt2 ocaml-re.git=1.9.0-alt1 ocaml-lablgtk.git=2.18.8-alt1 ocaml-ocamlgraph.git=1.8.8-alt4 ocaml-ssl.git=0.5.9-alt1 ocaml-easy-format.git=1.3.1-alt4 ocaml-compiler-libs.git=0.12.0-alt1 ocaml-cmdliner.git=1.0.4-alt1 cinaps.git=0.12.0-alt1 ocaml-ocamlfuse.git=2.7.1-alt8 ocaml-sexplib0.git=0.12.0-alt1 ocaml-base.git=0.12.2-alt1 ocaml-stdio.git=0.12.0-alt1 ocaml-configurator.git=0.11.0-alt4 ocaml-gsl.git=1.24.0-alt1 ocaml-pcre.git=7.4.1-alt1 coccinelle.git=1.0.6-alt1 ocaml-parsexp.git=0.12.0-alt1 ocaml-sexplib.git=0.12.0-alt1 ocaml-cppo.git=1.6.6-alt1 ocaml-camomile.git=1.0.1-alt1 ocaml-gettext.git=0.3.8-alt4.gd9509df ocaml-extlib.git=1.7.6-alt2 cudf.git=0.9-alt6 ocaml-dose3.git=5.0.1-alt6.5.2git2c1b8df ocaml-mccs.git=1.1.10-alt1 ocaml-sqlite3.git=4.4.1-alt1 ocaml-postgresql.git=4.5.0-alt1 ocaml-topkg.git=1.0.0-alt3 ocaml-react.git=1.2.1-alt4 ocaml-reactiveData.git=0.2.2-alt1 ocaml-xmlm.git=1.3.0-alt5 ocaml-fmt.git=0.8.7-alt1 ocaml-uuidm.git=0.9.7-alt1 ocaml-astring.git=0.8.3-alt2 ocaml-fpath.git=0.7.2-alt2 ocaml-alcotest.git=0.8.5-alt3 ocaml-qcheck.git=0.10-alt1 ocaml-rresult.git=0.6.0-alt2 ocaml-uutf.git=1.0.1-alt4 ocaml-jsonm.git=1.0.1-alt4 ocaml-stringext.git=1.6.0-alt1 ocaml-ppx_derivers.git=1.2.1-alt1 ocaml-migrate-parsetree.git=1.4.0-alt1 ocaml-ppx_deriving.git=4.4-alt1 ocaml-bisect_ppx.git=1.4.1-alt2 ocaml-ppxfind.git=1.3-alt1 ocaml-ppx_tools_versioned.git=5.2.3-alt1 ocaml-lwt.git=4.2.1-alt1 ocaml-markup.git=0.8.1-alt1 ocaml-tyxml.git=4.3.0-alt2 ocaml-ppxlib.git=0.8.1-alt1 ocaml-uri.git=3.0.0-alt1 ocaml-biniou.git=1.2.1-alt1 ocaml-yojson.git=1.7.0-alt1 js_of_ocaml.git=3.4.0-alt3 ocaml-logs.git=0.6.3-alt1 ocaml-bos.git=0.2.0-alt2 ocaml-ptime.git=0.8.5-alt1 ocaml-syndic.git=1.6.1-alt1 ocaml-csv.git=2.2-alt2 ocaml-odoc.git=1.4.1-alt1 ocaml-qtest.git=2.9-alt1 ocaml-iter.git=1.2.1-alt1 ocaml-gen.git=0.5.2-alt2 unison.git=2.51.2-alt3 ocaml-ocamlnet.git=4.1.6-alt4 ocaml-gapi.git=0.3.13-alt1 google-drive-ocamlfuse.git=0.7.8-alt1 ocaml-ppx_sexp_conv.git=0.12.0-alt1 opam.git=2.0.5-alt1


$ ssh git.alt task show 
id=236385 locked=no shared=no fail_early=yes test_only=no repo=p9 owner=rider state=DONE try=3 iter=1 build_time=2019-Aug-21/09:48:16
 100:dir=/gears/o/ocaml-curses.git
 100:tag_name=1.0.3-alt7
 100:tag_id=1f96a5b51ba1844ec2a54d84e17a183b4ed2f404
 100:tag_author=Anton Farygin (Rider) &lt;rider@altlinux.org&gt;
 100:fetched=2019-08-20T20:21:16
 100:userid=rider
 100:approved_by=ldv 
 100:pkgname=ocaml-curses</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183766</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-08-21 12:59:42 +0300</bug_when>
    <thetext>Это известная проблема, возникшая вследствие отложенной архивации.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183767</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2019-08-21 13:06:09 +0300</bug_when>
    <thetext>Я раньше с ней не сталкивался. 
Не очень удобно. 
Вообще, наверное было бы отлично убрать такую фичу, как команда без аргумента-задания для run, add, show, rm и т.д.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183769</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-08-21 13:35:24 +0300</bug_when>
    <thetext>Убрать фичу, конечно, будет проще, чем пофиксить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183770</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2019-08-21 13:38:20 +0300</bug_when>
    <thetext>ну фикс выглядит не очень сложно - тебе надо просто каким-то образом убрать из списка задания в статусе DONE в girar-task-find-current, что конечно немного усложнит его код с одной стороны, но позволит сохранить фичу с другой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185281</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-11-02 19:55:58 +0300</bug_when>
    <thetext>Fixed by commit 3844e1d979535a17146b6ab9194330eabe03c789.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>