Skip to content

Added a daily live check of EMBER that emails on failure - #86

Merged
CodyCBakerPhD merged 4 commits into
mainfrom
claude/wonderful-goldberg-9cb19p
Oct 27, 2026
Merged

CodyCBakerPhD merged 4 commits into
mainfrom
claude/wonderful-goldberg-9cb19p

Conversation

@CodyCBakerPhD

@CodyCBakerPhD CodyCBakerPhD commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

The unit and integration tests route EMBER's bucket and API to fixtures, which is why nothing caught the old bucket being deleted (#85). This adds a small live suite, run daily, that emails on failure.

npm run test:live (tests/live/ember.test.ts, its own vitest config so npm test is unchanged) runs the browse pane's own code against the real services. Node's fetch ignores CORS, so each cross-origin request is also sent with the site's Origin (from public/CNAME) and must come back with Access-Control-Allow-Origin. It checks that:

  • the bucket in EMBER_ARCHIVE lists dataset manifests;
  • the API's /info/ answers, and listPublicDandisetIds returns datasets the bucket holds;
  • a public dataset's manifest yields a video on that bucket, and the video's blob answers a cross-origin range request.

Tests retry twice, so one network blip doesn't send an email.

.github/workflows/daily_live_checks.yml runs it daily at 12:17 UTC and on manual dispatch. On a failed scheduled or manual run, it emails through Gmail the same way CodyCBakerPhD/historia's daily tests do. Ordinary PRs don't run it, so an EMBER outage never reds an unrelated PR. A PR that changes the live checks does run it.

Needs: MAIL_USERNAME and MAIL_PASSWORD as repository or organization secrets here. They aren't inherited from historia.

Testing: typecheck, lint, format, the 709 unit tests and pre-commit pass. This PR's own run of the workflow passed all three live checks on the first attempt, with the email job skipped as intended for a PR.

Original prompt

do 1-2 though daily is likely sufficient; just email me as seen in https://github.com/CodyCBakerPhD/historia/blob/main/.github/workflows/daily_tests.yml

Does sentry require cookie consent?

🤖 Generated with Claude Code

https://claude.ai/code/session_0177WynqppVoQbTyS1CqZXhr

The unit and integration tests route EMBER's bucket and API to fixtures, so
they kept passing when the archive's old bucket was deleted. A new vitest suite
(npm run test:live) runs the browse pane's own code against the live bucket and
API, sending each cross-origin request with the site's Origin, and checks that:
the bucket lists manifests; the API lists public datasets the bucket holds; and
a public video's manifest names the bucket and its blob answers a cross-origin
range request. A scheduled workflow runs it daily and emails on failure, the
same way CodyCBakerPhD/historia's daily tests do. Ordinary PRs skip it; PRs
that change the checks run it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177WynqppVoQbTyS1CqZXhr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177WynqppVoQbTyS1CqZXhr
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-10-27 17:04 UTC

@CodyCBakerPhD
CodyCBakerPhD marked this pull request as ready for review October 27, 2026 15:39
Matches the same removal in bbqs-web-components' README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177WynqppVoQbTyS1CqZXhr
@CodyCBakerPhD CodyCBakerPhD self-assigned this Oct 27, 2026
@CodyCBakerPhD
CodyCBakerPhD merged commit 9099361 into main Oct 27, 2026
17 checks passed
@CodyCBakerPhD
CodyCBakerPhD deleted the claude/wonderful-goldberg-9cb19p branch October 27, 2026 17:04
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.

2 participants