Repository navigation
Tags
Tags
chore(ci): move Release Testing results from Slack to Open Messaging (#… …12316) > [!NOTE] > **The secret is in place.** The repository secret **`OPEN_MESSAGING_WEBHOOK_RELEASE_MANAGEMENT`** was added on 2026-11-26. It holds the URL of the **"GitHub Actions (dfinity/ic)"** incoming webhook in the `release-management-alerts` channel on Open Messaging. > > Once this merges, Release Testing results are no longer posted to Slack. If that secret is ever removed, they are posted nowhere: each run would only show a warning annotation. After merge, check that the next Release Testing result shows up in `release-management-alerts` with no such warning. ## What The **Slack Workflow Run** workflow (`.github/workflows/slack-workflow-run.yml`) used to post each Release Testing result to Slack `#release-management-alerts`. It now posts that result to the `release-management-alerts` channel on Open Messaging, and no longer to Slack. This matches dfinity-ops/k8s#2703, which moved the IC alerts off Slack. Open Messaging incoming webhooks accept Slack's webhook payload. In a top-level `text`, Open Messaging shows `<url|label>` links and `:emoji:` codes as raw text, but inside an attachment the title, title link, colour bar and mrkdwn all render. So the new step sends one attachment, with no emoji: ```json {"attachments": [{ "color": "good", "title": "Release Testing success on rc--2026-11-26_03-20", "title_link": "https://github.com/dfinity/ic/actions/runs/45748275639", "text": "commit: `ec91fdf7729bcac13251f12d27014ac3e944ffb3`" }]} ``` `color` is `good` on success and `danger` on any other result. As before, every Release Testing run is reported except a cancelled one. ## Behaviour - **Secret missing:** the step skips, succeeds, and adds a warning annotation saying the result was not posted anywhere. - **Never fails the job:** the step has `continue-on-error: true` and a 2-minute timeout. A reply other than HTTP 200 `ok` adds an error annotation but leaves the job green. - **Keeps the URL out of logs:** the webhook URL reaches the step only through the secret, and the step never echoes it. ## What still goes to Slack This PR changes only Release Testing. This workflow still posts the failures and timeouts of the other workflows it watches to Slack, unchanged: | Slack channel | Workflows | |---|---| | `#eng-idx-alerts` | Schedule Daily, Schedule RC, Publish Release, Container IC Base Images, PocketIC Windows, Sync IC private from IC public, Bazel Dependency Submission, Advance Claude Security RC, Kickoff (except on the two branches below) | | `#eng-crypto-alerts` | Schedule Rust Benchmarks | | `#eng-consensus-alerts` | Update mainnet ICOS versions file, Kickoff on `ic-mainnet-revisions` | | `#eng-nns-alerts` | Update mainnet canister versions file, Kickoff on `ic-nervous-system-wasms` | Other workflows that post to Slack directly (`schedule-daily.yml`, `system-tests-benchmarks-nightly.yml`, `ci-notify-slack.yml`, `slack-workflow-queue.yml`, `external-contrib-slack-notification.yaml`) are not touched. ## Testing - **actionlint:** version 1.7.12 with shellcheck finds nothing in the lines this PR changes. Its 5 info/style findings are all in existing lines of the "Setup Message and Channels" step and are the same as on `master`. - **Routing:** I ran the setup step's script locally for several triggers. Release Testing success, failure and timed-out give `post_to_open_messaging=true` and `post_to_slack=false`. A cancelled run posts nowhere. Schedule Daily and Kickoff failures still go to Slack, to the same channels as before. - **Live post:** I took the Open Messaging step's `run:` script from the YAML with `yq` and ran it locally under `bash -eo pipefail`, with the data of the latest real Release Testing run (success on `rc--2026-11-26_03-20`, run 45748275639). The webhook answered HTTP 200 `ok`. Since then only the skip message has changed; the payload has not. - **Error paths:** run locally, an empty secret prints the `::warning::` and exits 0. An unreachable URL makes curl report the error and the step exit non-zero, which `continue-on-error` absorbs. - **Ready-made action:** I looked for a ready-made `open-saas-and-aiware/open-messaging-github-action`. That repository does not exist, so the step uses `jq` and `curl`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Revert "fix: Limit exports (#12100)" This reverts commit 13935d9. The 1,100-export limit made already-installed C++/WASI canisters fail on every call after their subnet upgraded to f80a8c3. See https://forum.dfinity.org/t/76638 and #12288 (the same revert on master). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
adapt tests to the enabled heap page limit The default instrumentation now imports `__.check_heap_bulk_access` and injects the heap bulk check functions: the snapshots gain them and the out-of-bounds backtrace index moves to 6. The Wasm32 versus Wasm64 charging tests compare otherwise identical modules, whose injected check functions differ in size, so they disable the heap page limit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
fix(rosetta): update rusqlite to 0.42 and tokio-rusqlite to 0.9 (RUST… …SEC-2026-0459) (#12194) Updates rusqlite from 0.37 to 0.42 and tokio-rusqlite from 0.7 to 0.9 in both builds. This moves libsqlite3-sys from 0.35.0 to 0.40.0, which fixes RUSTSEC-2026-0459. The daily RustSec job (`.github/workflows/rust-advisories.yml`, e.g. [run 44535761188](https://github.com/dfinity/ic/actions/runs/44535761188)) reports that advisory for both lock files. **The advisory** (CVE-2026-119375, medium): - SQLite before 3.54.0 can return uninitialized page-cache memory when it opens a database file together with a `-wal` file whose page size differs. - A crafted pair of files can make ordinary queries return stale bytes from the process's memory. - Only database files that a less trusted party could have written are a risk. - No Rosetta code sets `journal_mode`, so Rosetta's own databases use the rollback journal and never have a `-wal` file. In practice this PR mainly clears the scanner finding. **Versions:** - libsqlite3-sys 0.40.0 bundles SQLite 3.54.1; 0.35.0 bundled 3.50.2. - tokio-rusqlite 0.9 requires rusqlite 0.42, so rusqlite stops there. rusqlite 0.43 uses the same libsqlite3-sys, and its fixes are in features Rosetta doesn't use (session, vtab, time, `column_metadata`). **Who opens SQLite databases:** only Rosetta: - ICP Rosetta and its `ledger_canister_blocks_synchronizer`; - ICRC Rosetta, which also uses tokio-rusqlite. The system-test driver links ICP Rosetta's library, so system tests build the new SQLite too, but the driver opens no databases. FYI @dfinity/defi, who own `rs/rosetta-api`. # Code changes - **`u64` and `usize` columns:** rusqlite 0.38 and later implement `ToSql` and `FromSql` for `u64` and `usize` only with the new `fallible_uint` feature. - The workspace dependency and the Bazel `crate.spec` now enable it. - The implementations are the same code as in 0.37: writing a value above `i64::MAX` fails, and so does reading a negative one. - **`progress_handler`:** `Connection::progress_handler` now returns a `Result`, because it registers the handler through `sqlite3_set_clientdata`. - `create_index_if_not_exists` in `ledger_canister_blocks_synchronizer` propagates it. - If both the `CREATE INDEX` statement and clearing the handler fail, it still returns the `CREATE INDEX` error. - Registering can only fail when SQLite runs out of memory. In that case index creation now fails instead of running without progress logs. # Behaviour changes - **SQLite version:** existing Rosetta databases are opened by SQLite 3.54.1 instead of 3.50.2. None of the incompatibilities in the SQLite 3.51 to 3.54 release notes applies to Rosetta's schemas: - 3.53 changes float-to-text rounding, and the schemas have no REAL columns; - 3.51 enforces STRICT typing on computed columns, and the schemas have no STRICT or generated columns. - **Query plans:** changes to SQLite's query planner could change query plans; the tests cover those. - **Memory management:** the bundled SQLite is no longer built with `SQLITE_ENABLE_MEMORY_MANAGEMENT` (rusqlite/rusqlite#1900, in rusqlite 0.41). - Each connection now has its own page cache, capped at its own `cache_size`. Before, connections shared one cache, and a busy connection could take pages from idle ones. - The total bound is unchanged. But ICRC Rosetta with several tokens, which opens one connection per token database, may see different cache hit rates. - `sqlite3_release_memory()` now does nothing. - ICRC Rosetta's optional `--flush-cache-shrink-mem` (`cache_flush()` plus `PRAGMA shrink_memory`) and `--sqlite-max-cache-kb` (`PRAGMA cache_size`) work per connection, so they behave as before. No test turns them on. - In Bazel, a `crate.annotation` on libsqlite3-sys with `build_script_env = {"LIBSQLITE3_FLAGS": "-DSQLITE_ENABLE_MEMORY_MANAGEMENT"}` would restore the old behaviour. - **Other rusqlite 0.38 to 0.42 and tokio-rusqlite 0.8/0.9 changes** don't affect this code: - The statement cache that `prepare_cached` uses moved behind the default `cache` feature, which both builds keep. - PRAGMA names are only checked with `extra_check`, which is off. - The tokio-rusqlite source diff is a clippy lint rename. - **Releases:** operators get the fix with the next ICP and ICRC Rosetta releases. The latest are 2.1.10 and 1.2.10. # Lock changes - rusqlite, tokio-rusqlite and libsqlite3-sys move as above, and hashlink 0.10.0 drops out. - rusqlite's wasm32-only dependencies sqlite-wasm-rs 0.6.3 and rsqlite-vfs 0.2.0 appear in both locks, but nothing builds them. - No other package changes version, and only the Rosetta crates' dependency edges change. ic-btc-adapter's `hashlink 0.12.2` entry only loses its version suffix, since that is now the only hashlink. # Verification - **Advisories:** I ran the workflow's pinned tools on this branch, cargo-deny 0.21.0 on `Cargo.lock` and cargo-audit 0.23.0 on `Cargo.Bazel.toml.lock`. Neither reports RUSTSEC-2026-0459 any more; three vulnerabilities remain: - h2, fixed in #12193; - rsa 0.9 and crypto-bigint 0.5, which need upstream releases first. - **Locks:** in the dev container, `cargo update --workspace` reports "Locking 0 packages". A second `./bin/bazel-pin.sh` reports "Nothing to repin.", and `bazel mod deps` leaves `MODULE.bazel.lock` unchanged. - **Lint:** `./ci/scripts/rust-lint.sh` passes. It compiles every Rosetta crate with `--all-targets --all-features` and `--deny warnings`. - **Build:** the 14 Bazel targets that depend on rusqlite, tokio-rusqlite or `blocks.rs` build. - **Tests:** these pass locally: - `//rs/rosetta-api/icp/ledger_canister_blocks_synchronizer:ledger_canister_blocks_synchronizer_test`; - `//rs/rosetta-api/icp/ledger_canister_blocks_synchronizer:ledger_canister_blocks_synchronizer_test_suite_tests/store_tests_test`; - `//rs/rosetta-api/icp:rosetta-api_test`; - `//rs/rosetta-api/icp:icp_rosetta_system_tests`; - `//rs/rosetta-api/icp/tests/integration_tests:rosetta-integration_tests/tests_test`; - `//rs/rosetta-api/icrc1:ic-icrc-rosetta-unit-tests`; - `//rs/rosetta-api/icrc1:icrc_rosetta_integration_tests/integration_tests`. - **CI:** before this PR was stacked, CI ran every Bazel target, long tests included, on 5a31da6 (the same change on top of 375a6af). All 1,163 tests pass. That includes the three test targets that need `rosetta-cli` (`rosetta-api-cli-tests`, `icrc_rosetta_system_tests`, `icrc_multitoken_rosetta_system_tests`) and the `rosetta_test_local` and `rosetta_neuron_follow_test_local` system tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
adapt tests to the enabled heap page limit The default instrumentation now imports `__.check_heap_bulk_access` and injects the heap bulk check functions: the snapshots gain them and the out-of-bounds backtrace index moves to 6. The Wasm32 versus Wasm64 charging tests compare otherwise identical modules, whose injected check functions differ in size, so they disable the heap page limit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
chore: Update Base Image Refs [2026-11-12-0804] (#12074) Updating base container image references. Run URL: https://github.com/dfinity/ic/actions/runs/43179546748 Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
adapt tests to the enabled heap page limit The default instrumentation now imports `__.check_heap_bulk_access` and injects the heap bulk check functions: the snapshots gain them and the out-of-bounds backtrace index moves to 6. The Wasm32 versus Wasm64 charging tests compare otherwise identical modules, whose injected check functions differ in size, so they disable the heap page limit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PreviousNext