New issue
Advanced search Search tips

Issue 880537 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'

Project Member Reported by no...@chromium.org, Sep 4

Issue description

/internal/taskqueue/machine-provider-manage
fails with HTTP 500 on chromium-swarm with error

  unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'

in
https://chromium.googlesource.com/infra/luci/luci-py/+/353c65d6f9db06199c6a50253f7a9f366649c52d/appengine/swarming/server/lease_management.py#1138

probably because of the introduction of infinite leases
 
Will push 3764-b2a8243, which includes several fixes.
... but looks like not this one.
Cc: -maruel@google.com s...@google.com
Owner: mar...@chromium.org
Will write a fix, it's relatively easy.
Cc: -s...@google.com mar...@chromium.org
Owner: s...@google.com
I wrote https://chromium-review.googlesource.com/1205315 but didn't have time to write a unit test, which I think would be a good idea. Passing back to smut@
Status: Started (was: Assigned)
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 5

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/luci/luci-py.git/+/667810e4e92b2572492d659bf88835d68a9346b1

commit 667810e4e92b2572492d659bf88835d68a9346b1
Author: smut <smut@google.com>
Date: Wed Sep 05 12:58:30 2018

[Swarming] Don't check early release time for indefinite leases

Bug:  880537 
Change-Id: Icb688990e082d69db7970bd0c1515300ebb09b3a
Reviewed-on: https://chromium-review.googlesource.com/1206071
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>

[modify] https://crrev.com/667810e4e92b2572492d659bf88835d68a9346b1/appengine/swarming/server/lease_management.py
[modify] https://crrev.com/667810e4e92b2572492d659bf88835d68a9346b1/appengine/swarming/server/lease_management_test.py

Status: Fixed (was: Started)

Sign in to add a comment