Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create factor table for deploy from settings #400

Merged
merged 2 commits into from
Feb 24, 2016

Conversation

f-higashi
Copy link
Contributor

I created test factors for 'deploy from settings'.
Now I don't write specific conditions;ex. app name: most 63 characters, matching regex a-z0-9?).
Should I need to write them for all fields?

@cheld

Review on Reviewable

@codecov-io
Copy link

Current coverage is 81.52%

Merging #400 into master will decrease coverage by -0.10% as of 454ad6d

@@            master    #400   diff @@
======================================
  Files           75      76     +1
  Stmts          615     617     +2
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit            502     503     +1
  Partial          0       0       
- Missed         113     114     +1

Review entire Coverage Diff as of 454ad6d

Powered by Codecov. Updated on successful CI builds.

@cheld
Copy link
Contributor

cheld commented Feb 19, 2016

I will review it


|Factor |1 |2 |3 |4 |5 |6 |7 |Comment|
|----------------------------|------------------|----------------------------------|----------------|----------------|-------------------------|---------------------|----------------|-------|
|App name |Empty |Correct value |Max-length |Validation error|Same name app exists | | | |
Copy link
Contributor

Choose a reason for hiding this comment

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

App name has more complexity:

  1. The field is used to create a pod, RC, SVC and label. The pod has an auto-generated suffix, but SVC and RC get the name of this field. Existence should also check that part e.g. service exists, but RC not.. Think about if there are more factors
  2. The app name is used as a label (think about if this could create some factors)
  3. used in the help text which does have some impact on layouting - I would add this as a comment

@cheld
Copy link
Contributor

cheld commented Feb 21, 2016

@f-higashi I think we should adapt our style of FBT to OpenSource. I think, the FBT sheet should be less systematic and more interesting to read. Currently, the sheet is somewhat boring to read. So, I would suggest to simplify the sheet. Reduce validation factors and add more business logic factors. We can think about dropping "normal input" and focus about unusual input and situations. This way the tables would get smaller.

PTAL

|Key(Environment variables) |Empty |Correct value |Max-length |Validation error|Existing key | | | |
|Value(Environment variables)|Empty |Correct value |Max-length |Validation error| | | | |
|Action |Deploy |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 think we should add concurrency explicitly.

@f-higashi
Copy link
Contributor Author

@cheld
I reduced systematic factors.
I don't finish research for some topic( Run command, Run as privileged).

But please check other topics and give me your opinion.

|Number of pods |Floating point number |Not a number |Max-values | | | |
|Port |Border cases(1, 65535) |Out of range(<0, >65535) |Floating point number |Not a number |Same port is mapped to different target ports| |
|Protocol |TCP |UDP | | | | |
|Exporse service externally|lcoal |vagrant or OpenStack |GCE | | | |
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I forgot...better this way

local | without load-balancer (vagrant) | with load-balancer (GCE)

@cheld
Copy link
Contributor

cheld commented Feb 24, 2016

I think it is a good starting point. One small issue. Otherwise LGTM

@f-higashi f-higashi force-pushed the fb-for-deploy-from-settings branch from f1b3d7b to b1520e7 Compare February 24, 2016 13:22
@f-higashi
Copy link
Contributor Author

Thanks for your review.
I fixed the small issue.

@bryk
Copy link
Contributor

bryk commented Feb 24, 2016

:lgtm:


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


Comments from the review on Reviewable.io

@bryk
Copy link
Contributor

bryk commented Feb 24, 2016

Merging.

bryk added a commit that referenced this pull request Feb 24, 2016
Create factor table for deploy from settings
@bryk bryk merged commit 218c633 into kubernetes:master Feb 24, 2016
@f-higashi f-higashi deleted the fb-for-deploy-from-settings branch March 3, 2016 05:23
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