-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add environments to skylight #8104
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8104 +/- ##
==========================================
- Coverage 82.05% 82.05% -0.01%
==========================================
Files 100 100
Lines 5773 5772 -1
==========================================
- Hits 4737 4736 -1
Misses 1036 1036
|
Hey @jywarren @cesswairimu can you kindly review? Thanks ✌️ I copied the production settings for stable and unstable and changed the hosts in the files and added it to the skylight environment 😅 |
Hey @jywarren I think the tests are passing when you check it on the travis pr page but its status on github is not changing 😅 |
Hmmmmmm something is fishy here. |
These at least don't seem to be completed: https://github.com/publiclab/plots2/pull/8104/checks?check_run_id=825545745 |
The ones that aren't passing here are from 6 days ago. Would you mind trying to rebase this to see if we get a clean run? I wonder if it's related to the switch to Travis-ci.com from Travis-ci.org? https://github.com/publiclab/plots2/pull/8104/checks?check_run_id=825545745 Thank you and sorry for the trouble! |
Hey @jywarren actually I opened the jobs on the link that you sent which show as yellow now but on opening them it is green 😅 is this from before test? Ohh yes just checked those are the ones triggered before my bad sorry 😅 I will take a rebase |
ef4e4d0
to
cfbda01
Compare
Hey @jywarren just adding to the slow travis test point that you mentioned, the tests in this run are still queued and haven't even started yet https://travis-ci.com/github/publiclab/plots2/jobs/358427078 😅 |
Hmm. I wonder if we're hitting a rate limit. I have restarted a TON of travis tests today. |
This looks great! Thank you!!! cc @icarito bc we would have split config files. Just checking that's OK? |
Hi! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unfamiliar with rails environments and skylight environments, currently we run staging in production
mode. Would these changes affect this?
If not I'm fine with adding extra config for Skylight, if env variables would help to avoid duplication that'd be awesome.
Hi @Tlazypanda do you have any insight on this q from @icarito? Thank you! |
@@ -0,0 +1,89 @@ | |||
Plots2::Application.configure do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these extend the existing configs, or replace them? Thanks!
Hey @jywarren since this is a new area for me I am not completely sure how to implement on ENV variables 😅 I also did some digging but couldn't find much around it catered to rails environments 😅 As for the extending/replacing thing I think it's replacing on it since that is how it is in the other development/test environments as well and I have copied the entire production config here and just changed the hosts 😅 any guidance/help on this will be appreciated I did see that we can import files to reduce redundancy but that was not in the case of environments so I am not sure if that will work here |
Hi, well, if you are pretty sure this will only affect the skylight run and environment, I think this is OK! Let's merge it - if we find something goes wrong, we can revert back, it's not such a big thing. Thanks and I appreciate your patience as we're pretty careful with this! |
🎉 |
Just noting docs for this here: https://www.skylight.io/support/environments If it doesn't work, we could revert and try the env variable approach listed there! https://www.skylight.io/support/environments#for-rails-using-environment-variables @Tlazypanda i invited you to our Skylight account! I don't see the new env yet, but, hopefully soon! |
Hey @jywarren I am not sure why the environment is not showing 😅 can we try the second approach? I am not sure where we are supposed to add the environment variables for that (is it the docker compose files for stable and unstable?) But I am not sure why this is not working though 😥 @icarito can you please weigh in ..I am kinda new to this environment and env thing and feel might be making some silly mistakes |
I think https://www.skylight.io/support/environments#3-optional-specify-an-environment-name seems to indicate that the SKYLIGHT_ENV needs to be set if we don't change RAILS_ENV (and we don't, staging mimics production so it has same RAILS_ENV). |
@Tlazypanda did that end up working out? |
Fixes #8103
Added stable and unstable environments to skylight.
rake test
@publiclab/reviewers
for help, in a comment belowThanks!