Skip to content

api: promote staging to production - #102

Merged
Kzoeps merged 14 commits into
productionfrom
staging
Nov 24, 2026
Merged

Kzoeps merged 14 commits into
productionfrom
staging

Conversation

@Kzoeps

@Kzoeps Kzoeps commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

TECH-913

Promote opt-in totals for activity and collection lists to Production. Existing requests still omit totals unless requested.

Changes

Kzoeps and others added 14 commits November 16, 2026 14:58
smoke.yml and the post-deploy smoke in deploy.yml now alert once when the
smoke test starts failing and once when it recovers, and stay silent while the
status is unchanged. The previous result comes from the GitHub API (previous
completed run of the same workflow and target), using the job's GITHUB_TOKEN
with actions: read; no new secrets or state store.

- telegram-alert: new status-change.mjs decides failed/recovered/none; an
  unknown previous result alerts on failure and stays silent on a pass.
- smoke.yml: run-name carries the environment so runs can be matched.
- deploy.yml: smoke compared per branch using the smoke step's conclusion;
  deploy failures still alert every time. A rollback to a commit without
  smoke.js now skips the step instead of reporting a pass.
- e2e-nightly.yml is unchanged and keeps alerting on every failure.
The change check compared whole-run conclusions, so a lost Telegram send, an
install flake, or a run that never finished the smoke test counted as "already
alerted" and silenced the next real failure. Give the smoke step an id and
compare its outcome and the previous run's step of the same name, as deploy.yml
does. Failures before the smoke test finished alert every time in a separate
step.
The checkout now runs after successful deploys too, so a GitHub fetch error
would turn a good deploy red and then run an alert step with a missing action.
Make it continue-on-error and run the alert steps only when it succeeded.
curl --retry 2 shrinks the chance that a transient Telegram error loses an
alert. If status-change.mjs exits 0 without writing send= (for example when the
entry-point guard is false), alert on failure like any other script error. A
spawn test covers the script run as a program, and the test that asserted the
impossible "current run is in the completed list" case is trimmed.
ci: send smoke Telegram alerts only when status changes
api: add opt-in totals to activity and collection lists
api: promote main to staging
@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5858160

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hypercerts-org/happyview-modules Minor
@hypercerts-org/api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8cf1fff1-5c29-49bc-b83a-a8400e08bf29

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@Kzoeps
Kzoeps merged commit 7f5f8d3 into production Nov 24, 2026
12 of 13 checks passed

This branch was successfully deployed

1 active deployment
Staging — 5858160d Deployed Nov 24, 2026 by Kzoeps via Install HappyView modules (Staging) #35
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.

1 participant