* [devel] Q: extending task ls output @ 2020-10-22 17:08 Dmitry V. Levin 2020-10-22 19:27 ` Alexey V. Vissarionov 0 siblings, 1 reply; 9+ messages in thread From: Dmitry V. Levin @ 2020-10-22 17:08 UTC (permalink / raw) To: ALT Devel discussion list Hi, В https://bugzilla.altlinux.org/38957 предлагают добавить в вывод task ls информацию, которую сейчас task ls не показывает, но показывает task show --brief. Само по себе изменение тривиальное, но возникает вопрос, это никому не сломает никаких действующих скриптов? Тогда можно будет поменять вывод по-умолчанию и не заводить новый параметр --print-subtask-id. -- ldv ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-22 17:08 [devel] Q: extending task ls output Dmitry V. Levin @ 2020-10-22 19:27 ` Alexey V. Vissarionov 2020-10-23 6:00 ` Anton Farygin 0 siblings, 1 reply; 9+ messages in thread From: Alexey V. Vissarionov @ 2020-10-22 19:27 UTC (permalink / raw) To: ALT Linux Team development discussions On 2020-10-22 20:08:19 +0300, Dmitry V. Levin wrote: > В https://bugzilla.altlinux.org/38957 предлагают добавить в > вывод task ls информацию, которую сейчас task ls не показывает, > но показывает task show --brief. > Само по себе изменение тривиальное, но возникает вопрос, это > никому не сломает никаких действующих скриптов? > Тогда можно будет поменять вывод по-умолчанию и не заводить > новый параметр --print-subtask-id. Там предложен вариант >> #258286 BUILDING #1 [locked] sisyphus 100:ocaml-time_now.git=0.14.0-alt3 Мне он не нравится тем, что нужна дополнительная обработка поля с именем пакета. Лучше сделать немного по-другому: #258286 BUILDING #1 [locked] sisyphus:100 ocaml-time_now.git=0.14.0-alt3 -- Alexey V. Vissarionov gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-22 19:27 ` Alexey V. Vissarionov @ 2020-10-23 6:00 ` Anton Farygin 2020-10-23 7:03 ` Andrey Savchenko 0 siblings, 1 reply; 9+ messages in thread From: Anton Farygin @ 2020-10-23 6:00 UTC (permalink / raw) To: devel On 22.10.2020 22:27, Alexey V. Vissarionov wrote: > On 2020-10-22 20:08:19 +0300, Dmitry V. Levin wrote: > > > В https://bugzilla.altlinux.org/38957 предлагают добавить в > > вывод task ls информацию, которую сейчас task ls не показывает, > > но показывает task show --brief. > > Само по себе изменение тривиальное, но возникает вопрос, это > > никому не сломает никаких действующих скриптов? > > Тогда можно будет поменять вывод по-умолчанию и не заводить > > новый параметр --print-subtask-id. > > Там предложен вариант > > >> #258286 BUILDING #1 [locked] sisyphus 100:ocaml-time_now.git=0.14.0-alt3 > > Мне он не нравится тем, что нужна дополнительная обработка поля с > именем пакета. Лучше сделать немного по-другому: > > #258286 BUILDING #1 [locked] sisyphus:100 ocaml-time_now.git=0.14.0-alt3 > > Так, к сожалению, не получится: #258811 FAILED #3 [test-only] sisyphus ocaml-compiler-libs.git=0.12.3-alt1 ocaml-ppxlib.git=0.15.0-alt1 ocaml-ppx_here.git=0.14.0-alt2 ocaml-ppx_cold.git=0.14.0-alt1 ocaml-ppx_let.git=0.14.0-alt2 ocaml-time_now.git=0.14.0-alt4 ocaml-ppx_inline_test.git=0.14.1-alt2 ocaml-ppx_sexp_conv.git=0.14.1-alt1 ocaml-yaml.git=2.1.0-alt1 ocaml-ppx_custom_printf.git=0.14.0-alt1 ocaml-ppx_sexp_value.git=0.14.0-alt1 ocaml-ppx_sexp_message.git=0.14.0-alt1 ocaml-ppx_pipebang.git=0.14.0-alt1 ocaml-ppx_compare.git=0.14.0-alt2 ocaml-ppx_hash.git=0.14.0-alt2 ocaml-ppx_assert.git=0.14.0-alt2 ocaml-jst-config.git=0.14.0-alt2 ocaml-ppx_optional.git=0.14.0-alt1 ocaml-ppx_js_style.git=0.14.0-alt2 ocaml-ppx_fields_conv.git=0.14.1-alt1 ocaml-ppx_optcomp.git=0.14.0-alt2 ocaml-ppx_variants_conv.git=0.14.1-alt1 ocaml-ppx_typerep_conv.git=0.14.1-alt1 ocaml-ppx_enumerate.git=0.14.0-alt1 ocaml-ppx_base.git=0.14.0-alt2 ocaml-ppx_string.git=0.14.1-alt1 ocaml-ppx_module_timer.git=0.14.0-alt2 ocaml-ppx_expect.git=0.14.0-alt2 js_of_ocaml.git=3.7.0-alt2 ocaml-ppx_fixed_literal.git=0.14.0-alt2 Ещё как вариант - сделать вывод в однострочный JSON, что бы было удобно и парсерам (jq, например) и людям. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 6:00 ` Anton Farygin @ 2020-10-23 7:03 ` Andrey Savchenko 2020-10-23 7:36 ` Anton Farygin 0 siblings, 1 reply; 9+ messages in thread From: Andrey Savchenko @ 2020-10-23 7:03 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 2962 bytes --] On Fri, 23 Oct 2020 09:00:29 +0300 Anton Farygin wrote: > On 22.10.2020 22:27, Alexey V. Vissarionov wrote: > > On 2020-10-22 20:08:19 +0300, Dmitry V. Levin wrote: > > > > > В https://bugzilla.altlinux.org/38957 предлагают добавить в > > > вывод task ls информацию, которую сейчас task ls не показывает, > > > но показывает task show --brief. > > > Само по себе изменение тривиальное, но возникает вопрос, это > > > никому не сломает никаких действующих скриптов? > > > Тогда можно будет поменять вывод по-умолчанию и не заводить > > > новый параметр --print-subtask-id. > > > > Там предложен вариант > > > > >> #258286 BUILDING #1 [locked] sisyphus 100:ocaml-time_now.git=0.14.0-alt3 > > > > Мне он не нравится тем, что нужна дополнительная обработка поля с > > именем пакета. Лучше сделать немного по-другому: > > > > #258286 BUILDING #1 [locked] sisyphus:100 ocaml-time_now.git=0.14.0-alt3 > > > > > Так, к сожалению, не получится: > > #258811 FAILED #3 [test-only] sisyphus > ocaml-compiler-libs.git=0.12.3-alt1 ocaml-ppxlib.git=0.15.0-alt1 > ocaml-ppx_here.git=0.14.0-alt2 ocaml-ppx_cold.git=0.14.0-alt1 > ocaml-ppx_let.git=0.14.0-alt2 ocaml-time_now.git=0.14.0-alt4 > ocaml-ppx_inline_test.git=0.14.1-alt2 > ocaml-ppx_sexp_conv.git=0.14.1-alt1 ocaml-yaml.git=2.1.0-alt1 > ocaml-ppx_custom_printf.git=0.14.0-alt1 > ocaml-ppx_sexp_value.git=0.14.0-alt1 > ocaml-ppx_sexp_message.git=0.14.0-alt1 > ocaml-ppx_pipebang.git=0.14.0-alt1 ocaml-ppx_compare.git=0.14.0-alt2 > ocaml-ppx_hash.git=0.14.0-alt2 ocaml-ppx_assert.git=0.14.0-alt2 > ocaml-jst-config.git=0.14.0-alt2 ocaml-ppx_optional.git=0.14.0-alt1 > ocaml-ppx_js_style.git=0.14.0-alt2 ocaml-ppx_fields_conv.git=0.14.1-alt1 > ocaml-ppx_optcomp.git=0.14.0-alt2 > ocaml-ppx_variants_conv.git=0.14.1-alt1 > ocaml-ppx_typerep_conv.git=0.14.1-alt1 > ocaml-ppx_enumerate.git=0.14.0-alt1 ocaml-ppx_base.git=0.14.0-alt2 > ocaml-ppx_string.git=0.14.1-alt1 ocaml-ppx_module_timer.git=0.14.0-alt2 > ocaml-ppx_expect.git=0.14.0-alt2 js_of_ocaml.git=3.7.0-alt2 > ocaml-ppx_fixed_literal.git=0.14.0-alt2 > > Ещё как вариант - сделать вывод в однострочный JSON, что бы было удобно > и парсерам (jq, например) и людям. Я не знаю людей, которым однострочники json читать удобно. Возможно, такие существуют, но я к ним не отношусь и думаю, что не только я. Best regards, Andrew Savchenko [-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 7:03 ` Andrey Savchenko @ 2020-10-23 7:36 ` Anton Farygin 2020-10-23 7:39 ` Vladislav Zavjalov 0 siblings, 1 reply; 9+ messages in thread From: Anton Farygin @ 2020-10-23 7:36 UTC (permalink / raw) To: devel On 23.10.2020 10:03, Andrey Savchenko wrote: > On Fri, 23 Oct 2020 09:00:29 +0300 Anton Farygin wrote: >> On 22.10.2020 22:27, Alexey V. Vissarionov wrote: >>> On 2020-10-22 20:08:19 +0300, Dmitry V. Levin wrote: >>> >>> > Вhttps://bugzilla.altlinux.org/38957 предлагают добавить в >>> > вывод task ls информацию, которую сейчас task ls не показывает, >>> > но показывает task show --brief. >>> > Само по себе изменение тривиальное, но возникает вопрос, это >>> > никому не сломает никаких действующих скриптов? >>> > Тогда можно будет поменять вывод по-умолчанию и не заводить >>> > новый параметр --print-subtask-id. >>> >>> Там предложен вариант >>> >>> >> #258286 BUILDING #1 [locked] sisyphus 100:ocaml-time_now.git=0.14.0-alt3 >>> >>> Мне он не нравится тем, что нужна дополнительная обработка поля с >>> именем пакета. Лучше сделать немного по-другому: >>> >>> #258286 BUILDING #1 [locked] sisyphus:100 ocaml-time_now.git=0.14.0-alt3 >>> >>> >> Так, к сожалению, не получится: >> >> #258811 FAILED #3 [test-only] sisyphus >> ocaml-compiler-libs.git=0.12.3-alt1 ocaml-ppxlib.git=0.15.0-alt1 >> ocaml-ppx_here.git=0.14.0-alt2 ocaml-ppx_cold.git=0.14.0-alt1 >> ocaml-ppx_let.git=0.14.0-alt2 ocaml-time_now.git=0.14.0-alt4 >> ocaml-ppx_inline_test.git=0.14.1-alt2 >> ocaml-ppx_sexp_conv.git=0.14.1-alt1 ocaml-yaml.git=2.1.0-alt1 >> ocaml-ppx_custom_printf.git=0.14.0-alt1 >> ocaml-ppx_sexp_value.git=0.14.0-alt1 >> ocaml-ppx_sexp_message.git=0.14.0-alt1 >> ocaml-ppx_pipebang.git=0.14.0-alt1 ocaml-ppx_compare.git=0.14.0-alt2 >> ocaml-ppx_hash.git=0.14.0-alt2 ocaml-ppx_assert.git=0.14.0-alt2 >> ocaml-jst-config.git=0.14.0-alt2 ocaml-ppx_optional.git=0.14.0-alt1 >> ocaml-ppx_js_style.git=0.14.0-alt2 ocaml-ppx_fields_conv.git=0.14.1-alt1 >> ocaml-ppx_optcomp.git=0.14.0-alt2 >> ocaml-ppx_variants_conv.git=0.14.1-alt1 >> ocaml-ppx_typerep_conv.git=0.14.1-alt1 >> ocaml-ppx_enumerate.git=0.14.0-alt1 ocaml-ppx_base.git=0.14.0-alt2 >> ocaml-ppx_string.git=0.14.1-alt1 ocaml-ppx_module_timer.git=0.14.0-alt2 >> ocaml-ppx_expect.git=0.14.0-alt2 js_of_ocaml.git=3.7.0-alt2 >> ocaml-ppx_fixed_literal.git=0.14.0-alt2 >> >> Ещё как вариант - сделать вывод в однострочный JSON, что бы было удобно >> и парсерам (jq, например) и людям. > Я не знаю людей, которым однострочники json читать удобно. > Возможно, такие существуют, но я к ним не отношусь и думаю, что не > только я. Да, наверное с однострочниками json я погорячился и это интерфейс скорее для машины, а не человека. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 7:36 ` Anton Farygin @ 2020-10-23 7:39 ` Vladislav Zavjalov 2020-10-23 8:16 ` Anton Farygin 0 siblings, 1 reply; 9+ messages in thread From: Vladislav Zavjalov @ 2020-10-23 7:39 UTC (permalink / raw) To: ALT Linux Team development discussions On Fri, Oct 23, 2020 at 10:36:44AM +0300, Anton Farygin wrote: > Да, наверное с однострочниками json я погорячился и это интерфейс скорее > для машины, а не человека. Но, может, это и неплохая идея, с отдельным параметром task show --json ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 7:39 ` Vladislav Zavjalov @ 2020-10-23 8:16 ` Anton Farygin 2020-10-23 9:02 ` Andrey Savchenko 0 siblings, 1 reply; 9+ messages in thread From: Anton Farygin @ 2020-10-23 8:16 UTC (permalink / raw) To: devel On 23.10.2020 10:39, Vladislav Zavjalov wrote: > On Fri, Oct 23, 2020 at 10:36:44AM +0300, Anton Farygin wrote: >> Да, наверное с однострочниками json я погорячился и это интерфейс скорее >> для машины, а не человека. > Но, может, это и неплохая идея, с отдельным параметром > task show --json Изначально мне нужен был такой вывод не в show, а в ls. task ls --output=json ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 8:16 ` Anton Farygin @ 2020-10-23 9:02 ` Andrey Savchenko 2020-10-23 10:19 ` Anton Farygin 0 siblings, 1 reply; 9+ messages in thread From: Andrey Savchenko @ 2020-10-23 9:02 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 1204 bytes --] On Fri, 23 Oct 2020 11:16:09 +0300 Anton Farygin wrote: > On 23.10.2020 10:39, Vladislav Zavjalov wrote: > > On Fri, Oct 23, 2020 at 10:36:44AM +0300, Anton Farygin wrote: > >> Да, наверное с однострочниками json я погорячился и это интерфейс скорее > >> для машины, а не человека. > > Но, может, это и неплохая идея, с отдельным параметром > > task show --json > > Изначально мне нужен был такой вывод не в show, а в ls. > > task ls --output=json А ведь сборочница уже хранит информацию о тасках в json: $ cat /tasks/260240/info.json { "taskid": 260240, "shared": false, "test_only": true, "aborted_by": "awaiter", "repo": "sisyphus", "state": "FAILED", "try": 1, "iter": 1, "owner": "cas", "subtasks": { "100": { "srpm": "LibreOffice-still-6.4.7.2-alt1.src.rpm", "type": "srpm", "userid": "cas" } } } Нужна просто опция, чтоб её отгружать через ssh-интерфейс. Best regards, Andrew Savchenko [-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Q: extending task ls output 2020-10-23 9:02 ` Andrey Savchenko @ 2020-10-23 10:19 ` Anton Farygin 0 siblings, 0 replies; 9+ messages in thread From: Anton Farygin @ 2020-10-23 10:19 UTC (permalink / raw) To: devel On 23.10.2020 12:02, Andrey Savchenko wrote: > On Fri, 23 Oct 2020 11:16:09 +0300 Anton Farygin wrote: >> On 23.10.2020 10:39, Vladislav Zavjalov wrote: >>> On Fri, Oct 23, 2020 at 10:36:44AM +0300, Anton Farygin wrote: >>>> Да, наверное с однострочниками json я погорячился и это интерфейс скорее >>>> для машины, а не человека. >>> Но, может, это и неплохая идея, с отдельным параметром >>> task show --json >> Изначально мне нужен был такой вывод не в show, а в ls. >> >> task ls --output=json > А ведь сборочница уже хранит информацию о тасках в json: > > $ cat /tasks/260240/info.js > "taskid": 260240, > "shared": false, > "test_only": true, > "aborted_by": "awaiter", > "repo": "sisyphus", > "state": "FAILED", > "try": 1, > "iter": 1, > "owner": "cas", > "subtasks": { > "100": { > "srpm": "LibreOffice-still-6.4.7.2-alt1.src.rpm", > "type": "srpm", > "userid": "cas" > } > } > } > > Нужна просто опция, чтоб её отгружать через ssh-интерфейс. Она обновляется в этом месте только тогда, когда изменяется статус у задания. Т.е. - если просто добавить подзадание, то этот json не изменится. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-10-23 10:19 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-10-22 17:08 [devel] Q: extending task ls output Dmitry V. Levin 2020-10-22 19:27 ` Alexey V. Vissarionov 2020-10-23 6:00 ` Anton Farygin 2020-10-23 7:03 ` Andrey Savchenko 2020-10-23 7:36 ` Anton Farygin 2020-10-23 7:39 ` Vladislav Zavjalov 2020-10-23 8:16 ` Anton Farygin 2020-10-23 9:02 ` Andrey Savchenko 2020-10-23 10:19 ` Anton Farygin
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git