Project

General

Profile

Actions

Bug #22401

closed

crunch-run --list (with no additional args) should not read from stdin

Added by Tom Clegg over 1 year ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
-
Release relationship:
Auto

Description

crunch-run --list can be a helpful tool for an admin during troubleshooting. However, that currently hangs waiting to read an instance price list from stdin. crunch-run --list </dev/null works, but an admin should not need to remember that.

Propose changing the default mode to "don't read from stdin" (admin-friendly), and update arvados-dispatch-cloud to pass an additional argument (--stdin=prices?) to enable the price list update behavior.


Subtasks 1 (0 open1 closed)

Task #23396: Review 22401-crunch-run-stdin-argResolvedTom Clegg01/21/2026Actions

Related issues 1 (0 open1 closed)

Related to Arvados - Bug #22400: broken paging logic causes arvados-dispatch-cloud to hang at startup while looking up spot pricesResolvedTom CleggActions
Actions #1

Updated by Brett Smith over 1 year ago

Tom Clegg wrote:

Propose changing the default mode to "don't read from stdin" (admin-friendly), and update arvados-dispatch-cloud to pass an additional argument (--stdin=prices?) to enable the price list update behavior.

Maybe decide based on stdin isatty?

Actions #2

Updated by Tom Clegg over 1 year ago

  • Related to Bug #22400: broken paging logic causes arvados-dispatch-cloud to hang at startup while looking up spot prices added
Actions #3

Updated by Tom Clegg over 1 year ago

Brett Smith wrote in #note-1:

Maybe decide based on stdin isatty?

Hm. That would address the interactive use case without changing the a-d-c end, although it could still leave surprising behavior for scripts to discover later. Although I don't have a specific problem in mind, I'm also a little worried that ssh/pty stuff could cause this to make the wrong choice eventually.

Given the self-deploy version sync situation, I think an explicit command line argument would be more friendly/predictable.

Actions #4

Updated by Tom Clegg 2 months ago

  • Status changed from New to In Progress
Actions #5

Updated by Tom Clegg 2 months ago

  • Target version changed from Future to Development 2026-01-21
Actions #6

Updated by Brett Smith 2 months ago

Tom Clegg wrote in #note-4:

22401-crunch-run-stdin-arg @ 8a16bf45806c0bdf491881b3b29674afb2bed82d -- developer-run-tests: #5007

What's here LGTM. Would it be a reasonable amount of work to get a test for --list without stdin?

Actions #7

Updated by Brett Smith 2 months ago

  • Subtask #23396 added
Actions #8

Updated by Tom Clegg 2 months ago

Actions #9

Updated by Brett Smith 2 months ago

Tom Clegg wrote in #note-8:

22401-crunch-run-stdin-arg @ 93f41fcedd72a811184bd401f46c8e6b39ce39fe -- developer-run-tests: #5011

LGTM, as long as tests pass you're good to merge. Thanks.

Actions #10

Updated by Tom Clegg 2 months ago

  • Status changed from In Progress to Resolved

Applied in changeset arvados-private:commit:arvados|2325cd4ae7b1e9305d5fc9add601c8af3e7ef129.

Actions #11

Updated by Brett Smith about 2 months ago

  • Release set to 84
Actions

Also available in: Atom PDF