-
Notifications
You must be signed in to change notification settings - Fork 5
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
Setup Automation Manager logging and error alerts for relevant repositories #327
Comments
Note that I have limited experience with Jenkins and hence there would be a learning curve for me in setting this up. For safety's sake, it may be useful to set up a second droplet to perform/test out this functionality and then gradually transition from the original droplet to the new droplet, if we decide to go in this direction. |
I set up a test version of Jenkins! This is on a new Digital Ocean droplet called Because I have a little version of @josh-chamberlain that sits on my shoulder and asks me questions about my decisions, allow me to respond to tiny Shoulder Josh and by extension Big Josh: Why should we use this instead of GitHub Actions?
|
Nice. I was able to log in and things seem pretty clear. A few questions:
|
|
@maxachis thanks! I tweaked your parent comment a bit. our domains are configured with squarespace, but digital ocean manages our nameservers. so, the |
@josh-chamberlain Done! Ready for the domain to be configured! |
@maxachis without any intervention from me, it's up at automation.pdap.io! DO makes it pretty easy, I have to say... |
@josh-chamberlain Excellent! I've begun migrating jobs to Jenkins, although I have noted that my migration of the To whit, I'm not able to get it to work on Jenkins, I'm not able to manually get it working by triggering it while in root in the original Automation Manager droplet, and because of the absences of logs in the original droplet, I'm not even sure when it last worked at all. The output from Jenkins and running it in the droplet are below:
So that poses a problem. |
@josh-chamberlain Additionally, for the Automatic Archives action, I'll need an API key I can use to call the PDAP endpoint to perform the archives action. |
@maxachis do you think we should use the same re: the airtable error, it looks like it's hitting the Airtable API for a list of sources to archive, instead of our own API. We could fix the Airtable permissions by getting the read only API key, or refactor so we hit our internal endpoint instead. I like the second option better, personally |
@josh-chamberlain For safety's sake, I think creating a new key for automation is best. And agreed, we should refactor to hit our internal endpoint. I smell a new issue! 👃 |
|
@maxachis thank you for all your work on this—it's already much easier to see how automations are working. Like, I don't ever want to have to SSH anywhere.
|
@josh-chamberlain Automatic Archives is now working as well! Set to run on a daily basis. In response to 3: Yes, agreed! So perhaps we put that in a separate issue so we can close this one out? |
To avoid cases where an automated action fails and nobody realizes it for a while, we should set up a system for logging performance of automated actions, and develop a means to send alerts to Discord or other locations when builds fail or something else occurs in an unexpected way.
While there are scattered logging and post-to-discord functions located within different scripts, a more sophisticated result would probably be setting up a Jenkins server, for which there are guidelines on how to do so on Digital Ocean. This would enable a centralized user interface with sophisticated logging and scheduling functionality that would reduce the amount of boilerplate code we have to develop and allow us to review and manage tasks in a more user-friendly way.
We may need to upgrade the AM droplet in order to properly do this -- the article above recommends at least 1GB of RAM, while the AM droplet currently only has 512 MB.
Requirements
automation.pdap.io
automation
is maybe more clear thanam
;.io
is for "real stuff" we use that affects things,.dev
is for stuff we're still building; even though automation is for devs, it's real and affects things.Scripts to migrate to Jenkins
The text was updated successfully, but these errors were encountered: