You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(release): see each new release in the Telegram alerts chat - #1503
When a release is published, release.yaml now posts one message about it to the Telegram chat and topic that the node alerts use, with the same bot. The message goes out after the binaries are uploaded, and only once per release. Before the build, the workflow counts the release's assets, and it posts only when there were none and the upload succeeded. That covers the publish, and also the edit that fixes a release whose first run failed. Later edits and manual runs post nothing.
scripts/release/announce-telegram.sh checks the notes with check-upgrade-line.sh, so it refuses the same notes, and builds the message from the upgrade line and the tag. It sends it with sendMessage in HTML parse mode, with link previews off. The token reaches curl through stdin, as in deployments/alerts/node-health-alert.sh.
scripts/release/test-announce-telegram.sh tests every form and sends to a local fake Telegram. The release-upgrade-line CI job runs it.
docs/release-process.md has a new section, "The Telegram Announcement", and the publishing steps say when the post goes out.
The post never fails a release. Without the token or the chat id, as in a fork, the script prints a notice and exits 0. If Telegram refuses the message, the step has continue-on-error and the run shows a warning.
Examples
Telegram shows <code>kwild version</code> as code.
Required on both networks:
REQUIRED: TN node v2.6.9
Install it before:
- mainnet block 3,300,000 (about 2026-12-10 12:00 UTC)
- testnet block 16,300,000 (about 2026-12-03 12:00 UTC)
A node still on an older release stops at that block. After upgrading, <code>kwild version</code> prints 2.6.9.
Release: https://github.com/trufnetwork/node/releases/tag/v2.6.9
How to upgrade: https://github.com/trufnetwork/node/blob/main/docs/node-upgrade-guide.md#required-in-place-upgrade
Required on one network (testnet only reads the same, with the networks swapped):
REQUIRED on mainnet: TN node v2.6.9
Install it before mainnet block 3,300,000 (about 2026-12-10 12:00 UTC). On testnet it is optional.
A node still on an older release stops at that block. After upgrading, <code>kwild version</code> prints 2.6.9.
Release: https://github.com/trufnetwork/node/releases/tag/v2.6.9
How to upgrade: https://github.com/trufnetwork/node/blob/main/docs/node-upgrade-guide.md#required-in-place-upgrade
Optional:
TN node v2.6.9 is out. Optional: nodes on older releases keep following the chain, so upgrade when it suits you.
Release: https://github.com/trufnetwork/node/releases/tag/v2.6.9
How Has This Been Tested?
scripts/release/test-announce-telegram.sh: all 117 checks pass. They cover the exact text of each form, thousands separators, HTML escaping, the guide anchor, refused notes, a missing token or chat id, and four sends to a local fake Telegram that check every posted field. A curl wrapper checks that the token is never on curl's command line or in the output.
scripts/release/test-check-upgrade-line.sh: all cases pass.
shellcheck 0.11.0 on scripts/release/*.sh: clean.
actionlint v1.7.7 on release.yaml and ci.yaml: only the 3 findings main already has, in the existing "Set Version" step and in ci.yaml.
I did not run a real release or post to the real chat.
Release announcements are now posted to Telegram after a successful initial binary upload. Messages include required or optional upgrade details and relevant network information.
Updating release notes and rebuilding binaries does not trigger another announcement.
Announcement failures do not prevent the release workflow from completing.
Documentation
Updated the release process guide with announcement timing and behavior.
No actionable comments were generated in the recent review.
Walkthrough
Adds a script that builds Telegram release announcements from release-note upgrade lines. The release workflow runs it after successful uploads when the release has no existing assets. Tests and release-process documentation cover the new behavior.
Changes: Telegram release announcements
Layer / File(s)
Summary
Build and test announcements scripts/release/announce-telegram.sh, scripts/release/test-announce-telegram.sh, .github/workflows/ci.yaml
The script validates the upgrade line and formats required or optional release messages. It supports dry runs, optional Telegram credentials and topic IDs, and reports send failures. Tests use a local fake Telegram server and cover message formats, input handling, and request behavior. CI runs the test script.
The workflow reads the release asset count and runs the announcement script only for release events with zero existing assets and a successful upload. Documentation describes the announcement conditions, message contents, and failure handling.
trufnetwork/node#1502 — This PR uses the upgrade-line format and checker defined by that PR.
Merge Risk: Minimal · up to 5c691
This change adds a non-blocking Telegram announcement for new releases. Failures only produce a warning, so releases are not affected. Rare upload failures could skip or repeat an announcement, but this has no wider impact.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: release announcements now post to the Telegram alerts chat. The PR adds a release.yaml step that posts a Telegram announcement after a first successful binary upload, …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: release announcements now post to the Telegram alerts chat. The PR adds a release.yaml step that posts a Telegram announcement after a first successful binary upload, backed by a new announce-telegram.sh script and its test harness. The title uses the ci(release) prefix, which matches the changed workflow and scripts. It omits the upgrade-line checks and the warning-only handling, which is acceptable since it need not cover every detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
Create a new PR
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 5e189e17-6280-4df1-91a4-a09e9db1ba55
Commits
Reviewing files that changed from the base of the PR and between baa451d and 5c691c3.
Files selected for processing: 5
.github/workflows/ci.yaml
.github/workflows/release.yaml
docs/release-process.md
scripts/release/announce-telegram.sh
scripts/release/test-announce-telegram.sh
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When a release is published,
release.yamlnow posts one message about it to the Telegram chat and topic that the node alerts use, with the same bot. The message goes out after the binaries are uploaded, and only once per release. Before the build, the workflow counts the release's assets, and it posts only when there were none and the upload succeeded. That covers the publish, and also the edit that fixes a release whose first run failed. Later edits and manual runs post nothing.scripts/release/announce-telegram.shchecks the notes withcheck-upgrade-line.sh, so it refuses the same notes, and builds the message from the upgrade line and the tag. It sends it withsendMessagein HTML parse mode, with link previews off. The token reaches curl through stdin, as indeployments/alerts/node-health-alert.sh.scripts/release/test-announce-telegram.shtests every form and sends to a local fake Telegram. Therelease-upgrade-lineCI job runs it.docs/release-process.mdhas a new section, "The Telegram Announcement", and the publishing steps say when the post goes out.The post never fails a release. Without the token or the chat id, as in a fork, the script prints a notice and exits 0. If Telegram refuses the message, the step has
continue-on-errorand the run shows a warning.Examples
Telegram shows
<code>kwild version</code>as code.Required on both networks:
Required on one network (testnet only reads the same, with the networks swapped):
Optional:
How Has This Been Tested?
scripts/release/test-announce-telegram.sh: all 117 checks pass. They cover the exact text of each form, thousands separators, HTML escaping, the guide anchor, refused notes, a missing token or chat id, and four sends to a local fake Telegram that check every posted field. A curl wrapper checks that the token is never on curl's command line or in the output.scripts/release/test-check-upgrade-line.sh: all cases pass.scripts/release/*.sh: clean.release.yamlandci.yaml: only the 3 findings main already has, in the existing "Set Version" step and inci.yaml.I did not run a real release or post to the real chat.
Related
Review in Wizard
Read and comment on these documents without using GitHub:
Summary by CodeRabbit
New Features
Documentation