Skip to content

Conversation

@awilfox
Copy link
Member

@awilfox awilfox commented Dec 1, 2025

  • The Alma patron fetch has been converted to a custom check.

  • ActionMailer is checked for connectivity.

Note that this won't pass until emmahsax/okcomputer#21 is merged, because the :test delivery method isn't recognised for the ActionMailer check. Once it is merged, we can update the Gemfile to use the new version and then the tests will pass.

Ref: AP-508

Copy link
Member

@danschmidt5189 danschmidt5189 left a comment

Choose a reason for hiding this comment

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

Solid PR, just obviously needs to pass first.

Given that the ActionMailer check is blocked on external review, what do you think about marking the tests as pending (or otherwise reworking it to pass, tentatively)? The checks themselves are valuable when deployed so I'm not sure we want to wait on something we can't control, to provide test-only value that isn't that great IMO.

Copy link
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

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

looks great. my comments are nonblocking.

OkComputer.check_in_parallel = true

class AlmaPatronCheck < OkComputer::Check
TEST_PATRON_ID = '012158720'
Copy link
Member

Choose a reason for hiding this comment

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

is this a real patron id? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I've copy-pasted this from the old health check; I have no idea its provenance. Interestingly enough, it was also present in lost-and-found's health check code until that was migrated to OKComputer as well, but it didn't do anything, it was just there.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was implemented in 29db9af by @danschmidt5189 in 2019. Running the API query myself, it seems to be valid.

Copy link
Member

Choose a reason for hiding this comment

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

general comment that doesn't need to block merging: do we need checks on other external services? the list i'm thinking of here is tind, paypal, worldcat, hathitrust, whois.arin.net, and berkeley servicenow.

Copy link
Member Author

Choose a reason for hiding this comment

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

I do agree that more external service checks would be useful, if for nothing more than a way to say "yes, our connection to XYZ is down". I figure these can be added as time permits. Checking ARIN will likely be easier than TIND, which will both be easier than PayPal, for example.

@awilfox awilfox force-pushed the awilfox/AP-508-okcomputer branch 2 times, most recently from b174013 to 5585ab8 Compare December 2, 2025 21:24
@awilfox
Copy link
Member Author

awilfox commented Dec 2, 2025

You have no idea how tempted I was to write pending "karma police review of emmahsax/okcomputer#21".

Latest commit should resolve all the feedback.

* The Alma patron fetch has been converted to a custom check.

* ActionMailer is checked for connectivity.

Note that the test is marked pending until emmahsax/okcomputer#21 is
merged, because the `:test` delivery method isn't recognised for the
ActionMailer check.  Once it is merged, we can update the Gemfile to
use the new version and then the tests will pass.

Ref: AP-508
@awilfox awilfox force-pushed the awilfox/AP-508-okcomputer branch from 5585ab8 to 1371798 Compare December 3, 2025 01:40
@awilfox awilfox merged commit 1371798 into main Dec 8, 2025
5 checks passed
@awilfox awilfox deleted the awilfox/AP-508-okcomputer branch December 8, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants