Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Made UTC timezone explicit in common/init.sls. - #439

Closed
ghost wants to merge 3 commits into
masterfrom
unknown repository
Closed

ghost wants to merge 3 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jul 15, 2016 •

Copy link
Copy Markdown

Relevant to #303.


This change is Reviewable

Comment thread common/init.sls Outdated
- shell: /bin/bash
- home: {{ common.servo_home }}

Etc/UTC:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can just be UTC.

@aneeshusa

Copy link
Copy Markdown
Contributor

Please also add a test for this. I think running the date command and ensuring UTC is in the output will work.

Add a new directory tests/sls/common and put the test in a new file tests/sls/common/timezone.py. Also, please make an empty tests/sls/common/__init__.py file, and update the .travis/dispatch.sh code to run the test on all nodes.

@ghost

ghost commented Jul 15, 2016

Copy link
Copy Markdown
Author

I've added the test and simplified to just UTC.

Comment thread .travis/dispatch.sh
# TODO: don't hard-code this
if [[ "${SALT_NODE_ID}" == "servo-master1" ]]; then
./test.py sls.buildbot.master sls.homu sls.nginx
./test.py sls.buildbot.master sls.common.timezone sls.homu sls.nginx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two things:

  • this can be just sls.common, all of the test files in that dir will get run automatically.
  • we want to run the common tests on all nodes, not just servo-master1, so that should happen outside the conditional.

@KiChjang

KiChjang commented Aug 1, 2016

Copy link
Copy Markdown
Contributor

@rowaneb Are you still planning on finishing this up?

@charlesvdv

Copy link
Copy Markdown
Contributor

@aneeshusa @KiChjang I'm interested in continuing the work of @rowaneb if that's ok for you ? (as he doesn't respond in a long time)

@aneeshusa

Copy link
Copy Markdown
Contributor

@charlesvdv please go ahead!

@aneeshusa aneeshusa mentioned this pull request Dec 29, 2016
@KiChjang KiChjang closed this Dec 30, 2016
@charlesvdv charlesvdv mentioned this pull request Dec 30, 2016
bors-servo pushed a commit that referenced this pull request Jan 7, 2017
Use UTC timezone

Fix the issue #303 and follow up of #439 PR.

I'm not sure about the spot to put the ```sls.common``` tests.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/569)
<!-- Reviewable:end -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants