Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Extending SaltStack

You're reading from   Extending SaltStack Build and write salt modules

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher Packt
ISBN-13 9781785888618
Length 240 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Joseph Hall Joseph Hall
Author Profile Icon Joseph Hall
Joseph Hall
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Extending SaltStack
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Starting with the Basics FREE CHAPTER 2. Writing Execution Modules 3. Extending Salt Configuration 4. Wrapping States Around Execution Modules 5. Rendering Data 6. Handling Return Data 7. Scripting with Runners 8. Adding External File Servers 9. Connecting to the Cloud 10. Monitoring with Beacons 11. Extending the Master Connecting Different Modules Contributing Code Upstream Index

Understanding test errors in pull requests


When you submit a new pull request, GitHub will trigger the test suite to run against it. This will take several minutes, as it needs to create a new virtual machine, and start a lint test using Pylint, as well as tests on popular platforms such as CentOS and Ubuntu:

As the tests are running, you can check progress by clicking the Details button on the right:

Click on one of the tests to see more information. You will see output such as error messages, stacktraces, and standard output and standard error output.

There is a chance that one or more of the test failures that show up in your pull request are not actually your fault. It could be that another pull request was merged, which caused unforeseen issues on the build server. If the errors that show up don't look to be related to your code, leave a comment to ask about it. One of the core developers at SaltStack will see it and help you out.

Lint errors look a little different. When you look at the details for a lint test, you will see a list of files that are affected. Click on one, and you will see each error marked out. Hover over it to find out what went wrong:

If you would like more information about the lint test, you can click on Console Output on the left, to see a full log of the lint test.

Once you have made corrections to the code in your local Git clone, commit them as you normally would, and push them back up to GitHub:

$ git push origin newfeature

A new test run will be scheduled, and any remaining errors will show up as before. Once all of the errors have been resolved, a core developer will be able to merge your code.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images