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

RunSamples.cmd should signal failure if non-zero RC from sparkclr-submit script #257

Merged
merged 1 commit into from
Jan 15, 2016

Conversation

jthelin
Copy link
Contributor

@jthelin jthelin commented Jan 14, 2016

This tweak to RunSamples.cmd script makes it easier to detect any problems in the build environment, because build agent [eg VSO] will detect non-zero exit code which was previously being masked by extra commands at end of script.

  • RunSamples.cmd should signal runtime failure if non-zero RC from underlying call to sparkclr-submit.cmd script. [The final popd was previously masking this value.]
  • Fix non-standard usage of quotes between RunSamples.cmd and PreCheck.cmd scripts.
  • Print directory location info for strategic pushd's

Should have no affect on the core team's Appveyor build, but my private VSO build was not detecting / marking build failures when it should have been due to some test config issues.

- RunSamples.cmd should signal runtime failure if non-zero RC from underlying call to sparkclr-submit.cmd script.
  [The final `popd` was previously masking this value.]

- Fix non-standard usage of quotes between RunSamples.cmd and PreCheck.cmd scripts.

- Print directory location info for strategic pushd's
@jthelin jthelin force-pushed the RunSamples-Fail-If-Error branch from 834bdad to 7159d91 Compare January 14, 2016 22:52
@jthelin
Copy link
Contributor Author

jthelin commented Jan 14, 2016

Rebased against master HEAD 30ff79d

@skaarthik
Copy link
Contributor

will merge this change after today's release and version upgrade

@skaarthik
Copy link
Contributor

Closing the PR for now as it competes with CI for other changes going in for the release. Will reopen after the release.

@skaarthik skaarthik closed this Jan 14, 2016
@jthelin
Copy link
Contributor Author

jthelin commented Jan 14, 2016

No worries. Not urgent :)

@danielli90
Copy link
Member

restarted AppVeyor build.

@codecov-io
Copy link

Current coverage is 76.46%

Merging #257 into master will not affect coverage as of fb24bae

@@            master    #257   diff @@
======================================
  Files           40      40       
  Stmts         3930    3930       
  Branches       340     340       
  Methods          0               
======================================
  Hit           3005    3005       
  Partial        142     142       
  Missed         783     783       

Review entire Coverage Diff as of fb24bae

Powered by Codecov. Updated on successful CI builds.

@danielli90
Copy link
Member

LGTM

danielli90 added a commit that referenced this pull request Jan 15, 2016
RunSamples.cmd should signal failure if non-zero RC from sparkclr-submit script
@danielli90 danielli90 merged commit ad2220c into microsoft:master Jan 15, 2016
@jthelin jthelin deleted the RunSamples-Fail-If-Error branch January 16, 2016 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants