Skip to content

Conversation

maciaszczykm
Copy link
Member

Added FBT for replication controller list page. Connected to #350 issue.

Review on Reviewable

@codecov-io
Copy link

Current coverage is 81.62%

Merging #401 into master will not affect coverage as of b4cf7fc

@@            master    #401   diff @@
======================================
  Files           75      75       
  Stmts          615     615       
  Branches         0       0       
  Methods          0       0       
======================================
  Hit            502     502       
  Partial          0       0       
  Missed         113     113       

Review entire Coverage Diff as of b4cf7fc

Powered by Codecov. Updated on successful CI builds.

@cheld
Copy link
Contributor

cheld commented Feb 19, 2016

@cheld I will review


| Factor | 1 | 2 | 3 | 4 | 5 | 6 | Comment |
|--------------------------------------|--------------------------------------------------|-----------------------------------------------|------------------------------------------|-----------------------------------------|-------------------------------------------------------------------|---------------------------------------------------------------------|---------|
| Replication controller count on page | 1 replication controller on wide page | 1 replication controller on narrow page | 3 replication controller on on wide page | 3 replication controller on narrow page | Any other positive number of replication controllers on wide page | Any other positive number of replication controllers on narrow page | |
Copy link
Contributor

Choose a reason for hiding this comment

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

Layout | normal | mobile | narrow | wide | active resizing

RC count | 0 (?) | 1 | odd | even | 20-30

Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to keep layout and rc count separated as two factors. Easy for tester to combine

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point!

@cheld
Copy link
Contributor

cheld commented Feb 19, 2016

I gave some comments to give you some ideas. I would shorten the text - unless it is not understandable.

I am not sure if we always should state normal cases like '1', 'short', 'ok'. Maybe we should remove them. They are obvious anyway. We add them just for completeness. But I am on the fence and undecided.
'Cancel' seems superfluous too, but because they are never tested it happens from time to time that they do not work. So, 'cancel' I would rather leave in the sheet

@cheld
Copy link
Contributor

cheld commented Feb 19, 2016

I am not sure about concurrency. Maybe we should de-normalize and add it as a specific factor. Delete concurrently, scale pods up & down concurrently...

I think we should do that otherwise it is forgotten

@cheld
Copy link
Contributor

cheld commented Feb 19, 2016

BTW: found 3 bugs during review :)

@maciaszczykm
Copy link
Member Author

@cheld Thank you for review, I've applied modifications. PTAL

| Replication controller labels | normal | long text (253 prefix and 63 label) | 1 | odd | even | short and long text mixed | 20-30 | | labels increase height of the card |
| Actions | view details | edit pod count | delete | display logs | | | | | |
| Edit pod count | negative | 0 | 1 | less than 10 | more than 30 | empty | scale down | cancel | |
| Delete replication controller action | normal | with checkbox checked | cancel | | | | | | |
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know the algorithm in details, but maybe a deployment is possible (using kubectl) that will produce something like the following:

  • the wrong service is deleted
  • no service is deleted
  • too much is deleted
  • error
  • nothing happens although the service should be deleted

IMHO, the factor does not encourage deep enough testing. Where should be put this tests? How to describe the factors?

BTW: The checkbox is also shown if no service exits - I would say this is a bug.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but if we don't want to combine factors then there are only two possibilities - checked or not. We must remember, that this factor will be combined with other ones. There is a possibility of adding factor telling if replication controllers have services or not, but it's not visible from this view... It's very problematic from my point of view.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let's postpone it. We can add it later and check if there is a better place.

@cheld
Copy link
Contributor

cheld commented Feb 22, 2016

One last comment. Otherwise, I like it

@cheld
Copy link
Contributor

cheld commented Feb 22, 2016

LGTM

@maciaszczykm
Copy link
Member Author

@bryk PTAL

@bryk
Copy link
Contributor

bryk commented Feb 22, 2016

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 8 unresolved discussions.


docs/test/replication-controller-list.md, line 25 [r2] (raw file):
Typo: "hight"


Comments from the review on Reviewable.io

@maciaszczykm
Copy link
Member Author

@bryk Fixed typos. PTAL

@bryk
Copy link
Contributor

bryk commented Feb 23, 2016

LGTM


Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 8 unresolved discussions.


Comments from the review on Reviewable.io

bryk added a commit that referenced this pull request Feb 23, 2016
Add FBT for replication controller list
@bryk bryk merged commit 28c220f into kubernetes:master Feb 23, 2016
@bryk bryk deleted the rc-list-fbt branch February 23, 2016 07:26
@maciaszczykm maciaszczykm restored the rc-list-fbt branch February 23, 2016 08:10
@maciaszczykm maciaszczykm deleted the rc-list-fbt branch February 23, 2016 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants