Project

General

Profile

Actions

Bug #21413

closed

OOM retry is confusing

Added by Peter Amstutz 10 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Story points:
-
Release:
Release relationship:
Auto

Description

The CWL OOM retry feature is confusing for a couple of reasons:

  • It shows up as a warning, suggesting something is wrong, when nothing is wrong fixed in #19982
  • You have both a failed step and a successful step, but people see the failed step and think there's a problem.

It should:

  • Use the "arv:failed_container_resubmitted" to render an orange badge (for warning) instead of red (for failed) to give a little bit better indication that something happened.

Subtasks 1 (0 open1 closed)

Task #22048: Review 21413-retried-badgeResolvedPeter Amstutz08/22/2024Actions

Related issues

Related to Arvados - Feature #19982: Ability to know when a container died because of spot instance reclamation and option to resubmitResolvedPeter AmstutzActions
Actions #1

Updated by Peter Amstutz 10 months ago

  • Category changed from Workbench2 to CWL
  • Description updated (diff)
  • Subject changed from OOM retry is confusing in workbench to OOM retry is confusing
Actions #2

Updated by Peter Amstutz 10 months ago

  • Target version changed from Development 2024-02-14 sprint to Development 2024-02-28 sprint
Actions #3

Updated by Peter Amstutz 9 months ago

  • Target version changed from Development 2024-02-28 sprint to Development 2024-03-13 sprint
Actions #4

Updated by Peter Amstutz 9 months ago

  • Target version changed from Development 2024-03-13 sprint to Development 2024-03-27 sprint
Actions #5

Updated by Peter Amstutz 9 months ago

  • Target version changed from Development 2024-03-27 sprint to To be scheduled
Actions #6

Updated by Peter Amstutz 9 months ago

  • Target version changed from To be scheduled to Development 2024-04-24 sprint
Actions #7

Updated by Peter Amstutz 8 months ago

  • Target version changed from Development 2024-04-24 sprint to Development 2024-05-08 sprint
Actions #8

Updated by Peter Amstutz 8 months ago

  • Target version changed from Development 2024-05-08 sprint to Development 2024-06-05 sprint
Actions #9

Updated by Peter Amstutz 6 months ago

  • Target version changed from Development 2024-06-05 sprint to 439
Actions #10

Updated by Peter Amstutz 6 months ago

  • Target version changed from 439 to Development 2024-07-03 sprint
Actions #11

Updated by Peter Amstutz 5 months ago

  • Target version changed from Development 2024-07-03 sprint to Development 2024-07-24 sprint
Actions #12

Updated by Peter Amstutz 5 months ago

  • Target version changed from Development 2024-07-24 sprint to Development 2024-08-07 sprint
Actions #13

Updated by Peter Amstutz 5 months ago

  • Target version changed from Development 2024-08-07 sprint to Development 2024-08-28 sprint
Actions #14

Updated by Peter Amstutz 4 months ago

  • Target version changed from Development 2024-08-28 sprint to Development 2024-09-25 sprint
Actions #15

Updated by Peter Amstutz 4 months ago

  • Related to Feature #19982: Ability to know when a container died because of spot instance reclamation and option to resubmit added
Actions #16

Updated by Peter Amstutz 4 months ago

  • Target version changed from Development 2024-09-25 sprint to Development 2024-08-07 sprint
Actions #17

Updated by Peter Amstutz 4 months ago

  • Assigned To set to Peter Amstutz
Actions #18

Updated by Peter Amstutz 4 months ago

  • Status changed from New to In Progress
Actions #19

Updated by Peter Amstutz 3 months ago

  • Target version changed from Development 2024-08-07 sprint to Development 2024-08-28 sprint
Actions #20

Updated by Peter Amstutz 3 months ago

  • Category changed from CWL to Workbench2
  • Description updated (diff)
Actions #22

Updated by Peter Amstutz 3 months ago

21413-retried-badge @ ef508246d95c9fe90579adfa8bd22e6cc1eaafc4

developer-run-tests: #4400

  • All agreed upon points are implemented / addressed.
    • Now gives better feedback that a workflow step was resubmitted automatically
  • Anything not implemented (discovered or discussed during work) has a follow-up story.
    • n/a
  • Code is tested and passing, both automated and manual, what manual testing was done is described
    • passes existing tests, I did not add any new tests.
  • Documentation has been updated.
    • n/a
  • Behaves appropriately at the intended scale (describe intended scale).
    • no changes to scale
  • Considered backwards and forwards compatibility issues between client and server.
    • Only has an effect when an newer arvados-cwl-runner that sets "arv:failed_container_resubmitted" property is used
  • Follows our coding standards and GUI style guidelines.
    • yes
Actions #23

Updated by Lucas Di Pentima 3 months ago

  • I think your editor is misconfigured and using TABs for identation instead of spaces: there's some weird indentation at least in process.ts
  • File services/workbench2/src/views/process-panel/process-details-attributes.tsx
    • Line 115: Instead of using the literal string, we could use the enum like in line 118 for consistency.
    • Weird mix of tab and space indentation going on here too.
  • I believe you should be able to easily add a test case for this new badge in services/workbench2/src/views-components/data-explorer/renderers.test.tsx
Actions #24

Updated by Peter Amstutz 3 months ago

Lucas Di Pentima wrote in #note-23:

  • I think your editor is misconfigured and using TABs for identation instead of spaces: there's some weird indentation at least in process.ts

Yea, I had a hook to automatically fix tabs-to-spaces but it wasn't hooked to the right mode. Fixed.

  • File services/workbench2/src/views/process-panel/process-details-attributes.tsx
    • Line 115: Instead of using the literal string, we could use the enum like in line 118 for consistency.

Fixed.

  • Weird mix of tab and space indentation going on here too.

Fixed.

  • I believe you should be able to easily add a test case for this new badge in services/workbench2/src/views-components/data-explorer/renderers.test.tsx

I was actually avoiding adding unit tests on purpose to avoid having merge conflicts with #21720

We can keep the ticket open and add tests when the big wb2 branch lands.

Actions #25

Updated by Lucas Di Pentima 3 months ago

Some missing comments from the previous review pass:

  • At services/workbench2/src/views/process-panel/process-details-attributes.tsx line 118, it seems that if getResourceUrl() fails, we build an empty link. I think it would be better to not render the link in that case, instead.
  • Our workbench color guidelines suggest that colors should have some minimal contrast between each other. Not sure if this orange color complies with the suggestion, but wanted to point it out just in case.

Apart from the above observations, it LGTM.

Actions #26

Updated by Peter Amstutz 3 months ago

Lucas Di Pentima wrote in #note-25:

Some missing comments from the previous review pass:

  • At services/workbench2/src/views/process-panel/process-details-attributes.tsx line 118, it seems that if getResourceUrl() fails, we build an empty link. I think it would be better to not render the link in that case, instead.

Now won't render the notice if getResourceUrl returns undefined.

  • Our workbench color guidelines suggest that colors should have some minimal contrast between each other. Not sure if this orange color complies with the suggestion, but wanted to point it out just in case.

Now uses a "dark orange" which has a 4.5 contrast ratio with white text.

Apart from the above observations, it LGTM.

21413-retried-badge @ abdc66377cccd1e87617ca333d0cd1d2883f1591

developer-run-tests: #4404

Actions #27

Updated by Lucas Di Pentima 3 months ago

LGTM, thanks!

Actions #28

Updated by Peter Amstutz 3 months ago

  • Status changed from In Progress to Resolved
Actions #29

Updated by Peter Amstutz about 2 months ago

  • Release set to 70
Actions

Also available in: Atom PDF