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

Adds guidance on how to test transform configuration/validation #301

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

jkff
Copy link

@jkff jkff commented Aug 24, 2017

R: @tgroh

@asfgit
Copy link

asfgit commented Aug 24, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/650/

Jenkins built the site at commit id 5eed3c8 with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@kennknowles
Copy link
Member

R: @melap (feel free to decline, just sending things your way if I think they might be in your wheelhouse)

Copy link

@melap melap left a comment

Choose a reason for hiding this comment

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

LGTM, 1 nit below

The code for constructing and validating a transform is usually trivial and mostly boilerplate. However, minor mistakes or typos in it can have serious consequences (e.g. ignoring a property that the user has set), so it needs to be tested as well. Yet, an excessive amount of trivial tests can be hard to maintain and give a false impression that the transform is well-tested.

Do:
* Test non-trivial validation code: where missing/incorrect/uninformative validation may lead to serious problems: data loss, counter-intuitive behavior, value of a property being silently ignored, or other hard-to-debug errors. Create 1 test per non-trivial class of validation error. Some examples of validation that should be tested:
Copy link

Choose a reason for hiding this comment

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

nit - the : after validation code: seems extraneous

@jkff
Copy link
Author

jkff commented Aug 28, 2017

Thomas is OOO so, say, R: @robertwb

@robertwb
Copy link

LGTM, thanks.

@jkff
Copy link
Author

jkff commented Aug 29, 2017

@asfgit merge

asfgit pushed a commit that referenced this pull request Aug 29, 2017
@asfgit asfgit merged commit 09ea01e into apache:asf-site Aug 29, 2017
@jkff jkff deleted the validation-testing branch August 29, 2017 21:15
@asfgit
Copy link

asfgit commented Aug 29, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/661/

Jenkins built the site at commit id 09ea01e with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

robertwb pushed a commit to robertwb/incubator-beam that referenced this pull request Jun 5, 2018
robertwb pushed a commit to robertwb/incubator-beam that referenced this pull request Jun 5, 2018
melap pushed a commit to apache/beam that referenced this pull request Jun 20, 2018
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.

None yet

5 participants