Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

implement maximum priority #114

Merged
merged 2 commits into from
May 29, 2017
Merged

implement maximum priority #114

merged 2 commits into from
May 29, 2017

Conversation

edunham
Copy link

@edunham edunham commented May 8, 2017

If this deploys before servo/saltfs#660 lands, it might break. Tagging blocked on external till saltfs 660 lands.

This is required to do #111 the easy way.


This change is Reviewable

homu/main.py Outdated
except ValueError:
pass

if pvalue > global_cfg['max_priority']:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will break if we write p=foo now:

>>> try:
...     p = int("foo")
... except ValueError:
...     pass
...
>>> print(p)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'p' is not defined

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to continue there instead. I assume that we do not want to save a non-integer value like "foo" in the state object, as it might pop out and break things when it's read elsewhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

This is required to do servo#111 the easy way.
@edunham
Copy link
Author

edunham commented May 15, 2017

@jdm I think we're good to merge if you'd like to r+.

I was reminded in the other PR that I was wrong about landing order -- we'll need to pin the merge commit in the saltfs changeset for the new Homu version to get deployed.

@larsbergstrom
Copy link

@jdm Do you have any other comments? I think we're ready to go with this from my point of view!

@jdm
Copy link
Member

jdm commented May 29, 2017

@bors-servo: r+

@bors-servo
Copy link

📌 Commit 607c5f5 has been approved by jdm

@bors-servo
Copy link

⌛ Testing commit 607c5f5 with merge aa02cf4...

bors-servo pushed a commit that referenced this pull request May 29, 2017
implement maximum priority

If this deploys before servo/saltfs#660 lands, it might break. Tagging blocked on external till saltfs 660 lands.

This is required to do #111 the easy way.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/homu/114)
<!-- Reviewable:end -->
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: jdm
Pushing aa02cf4 to master...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants