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

Sheldon build details: upgrade to shel-bot, and embedded shel-gem #15

Merged
merged 73 commits into from Jun 10, 2019

Conversation

Projects
None yet
3 participants
@retorquere
Copy link
Contributor

commented Jun 7, 2019

The PR hosts two parts of the upgrade to Sheldon to post build details on github:

  • A new endpoint details, where the build details can be PUT to
  • A gem, which bundles an executable script (sheldon), which posts the build details to that endpoint

The styles and locales repo will have to call the latter to activate this; PRs for those are incoming. Shel-bot is backwards compatible, so this should be safe to roll out.

My apologies for the long commit list but the most efficient way for me to test was to commit and push to heroku, and I needed a lot of tests before I found a way that worked.

@adam3smith

This comment has been minimized.

Copy link
Member

commented Jun 7, 2019

@rmzelle let me know how involved you want to be with the review of this?

adam3smith and others added some commits Jun 7, 2019

@rmzelle

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

Looks good to me (for as far as I can judge this). We can always tweak the template files after the initial merge.

@retorquere, do you know if it's enough to merge the current PR, or do we need to deploy the new version of Sheldon to Heroku as well? I don't think I was ever involved in the latter.

@adam3smith adam3smith merged commit ab5d136 into citation-style-language:master Jun 10, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@adam3smith

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

Dang, messed up the squash on merge :( . Probably not much of an issue here. I'll be more careful on styles

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 10, 2019

Didn't squash & merge just work?

Sheldon must be redeployed to heroku, but that may have already happened as there's a Travis deploy stanza. Has the memcached addon be added? Sheldon won't work without it active. If it wasn't, it can still be added, but Sheldon likely needs to be restarted to pick it up.

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 10, 2019

I can confirm that sheldon has been deployed, the current version that's running is 0.1.33. I can't readily tell whether the memcached addon has been added though.

@adam3smith

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

Any idea how I could check for memcached?

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 10, 2019

Someone who has access to the heroku project that runs it can see if it's enabled.

@adam3smith

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

@rmzelle Do you? -- I don't even have a heroku account. Or @inukshuk could you check?

@rmzelle

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

I can't readily tell whether the memcached addon has been added though.

I'm a collaborator on the Heroku shelbot app (with Sylvester as the owner). When I look at https://dashboard.heroku.com/apps/shelbot/resources, no add-ons are installed/active. Searching for "mem" in the add-on directory shows there is https://elements.heroku.com/addons/memcachier and https://elements.heroku.com/addons/memcachedcloud. Do you need one of these?

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2019

The 2nd one

@rmzelle

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

Just installed (at the free tier):

image

@adam3smith

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

(we discussed that the free tier should be more than enough for our needs).

@rmzelle Could you invite me to the team? using my karcher@u.... email address for Heroku

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2019

Alright -- if Sheldon has been restarted since, it will pick up that instance from now on, and the styles and locales PRs would then be ready for review and merge.

@rmzelle

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

if Sheldon has been restarted since

Not sure that happened yet. There is an option to "Restart all dynos" that might do the trick, or I guess we could just make a trivial commit to this repo to trigger a new deployment.

(we're also on the old cedar-14 stack, by the way, which has just been end-of-lifed: https://devcenter.heroku.com/changelog-items/1603. We should probably upgrade to heroku-18, but I don't know if that will break anything)

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2019

If you have the heroku cli installed, heroku restart in the Sheldon directory, or heroku restart -a shelbot elsewhere, should do the trick.

I've been doing my tests on heroku-18 and I didn't experience any problems.

@retorquere

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2019

Oh sorry, missed that part: yes, restart all dynos will do it. Sheldon has only a single dyno probably, so the language there might be confusing, but that's basically it.

you can also use the heroku logs command to see if sheldon was wound down already. If it's wound down, new requests should spin it up afresh. But an explicit restart seems best.

@rmzelle

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.