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

Validate chronos #134

Merged
merged 7 commits into from
Jan 7, 2016
Merged

Validate chronos #134

merged 7 commits into from
Jan 7, 2016

Conversation

nhandler
Copy link
Contributor

Add some chronos validation to the paasta validate command. This fixes #127

@nhandler nhandler self-assigned this Dec 15, 2015
for cluster in list_clusters(service, soa_dir, instance_type):
for instance in list_all_instances_for_service(service, instance_type, soa_dir):
cjc = load_chronos_job_config(service, instance, cluster, False, soa_dir)
(checks_passed, check_msgs) = cjc.validate()
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to wrap these in brackets.

@nhandler
Copy link
Contributor Author

nhandler commented Jan 6, 2016

@solarkennedy Added the clusters argument back to list_all_instances_for_service. I think that addresses the last outstanding issue needing fixing.

def path_to_soa_dir_service(service_path):
soa_dir = os.path.dirname(service_path)
service = os.path.basename(service_path)

Copy link
Contributor

Choose a reason for hiding this comment

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

remove this whitespace

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gone

@nhandler
Copy link
Contributor Author

nhandler commented Jan 7, 2016

Got a verbal ship-it, so I'm going to merge this.

nhandler added a commit that referenced this pull request Jan 7, 2016
@nhandler nhandler merged commit 2e0a893 into master Jan 7, 2016
@nhandler nhandler deleted the paasta-validate-chronos branch January 7, 2016 20:36
@nhandler nhandler removed the in review label Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants