Skip to content

Commit 4d8d9df

Browse files
authored
Merge pull request #153 from matrix-org/andybalaam/create-issue-and-matrix-ping-on-failure
Create issue and ping matrix room when latest matrix-sdk code breaks the build
2 parents 72d3896 + f5ec776 commit 4d8d9df

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
title: Building matrix-rust-sdk-crypto-wasm against the latest matrix-sdk Rust is failing
33
---
4-
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}
4+
Something changed in
5+
[matrix-rust-sdk](https://github.com/matrix-org/matrix-rust-sdk)'s crypto crate
6+
that will break the build of this repo (matrix-rust-sdk-crypto-wasm) when we
7+
update to it.
58

6-
Latest failure: {{ date | date('dddd, YYYY-MM-DD HH:mm Z') }}
9+
See the crypto crate's
10+
[CHANGELOG](https://github.com/matrix-org/matrix-rust-sdk/blob/main/crates/matrix-sdk-crypto/CHANGELOG.md)
11+
for possible hints about what changed and how to fix it.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
with:
6868
save-if: ${{ github.ref == 'refs/heads/main' }}
6969

70+
# Keep this in sync with:
71+
# .github/workflows/latest-matrix-sdk-crypto.yml
72+
# .github/workflows/release.yml
7073
- name: Install Node.js
7174
uses: actions/setup-node@v3
7275
with:

.github/workflows/latest-matrix-sdk-crypto.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
name: Build against latest matrix-sdk-crypto
22

3+
# Runs a nightly job that builds this project against the latest version of
4+
# matrix-sdk-crypto to find out whether some changes there have modified
5+
# interfaces we are relying on.
6+
#
7+
# It does this by effectively doing:
8+
#
9+
# cargo update matrix-sdk-crypto
10+
# yarn build
11+
#
12+
# If the build fails, this action:
13+
#
14+
# * creates an issue in this project's repo (or updates an existing open issue)
15+
# * adds a comment to the issue linking to the specific build failure
16+
# * sends a message to the Crypto team's Matrix room
17+
318
on:
419
workflow_dispatch:
520
schedule:
21+
# Run this task every day at 01:22 UTC
622
- cron: '22 1 * * *'
723

824
concurrency:
@@ -41,6 +57,9 @@ jobs:
4157
- name: Install Node.js
4258
uses: actions/setup-node@v3
4359
with:
60+
# Keep this in sync with:
61+
# .github/workflows/ci.yml
62+
# .github/workflows/release.yml
4463
node-version: 20.0
4564

4665
- name: Install yarn
@@ -81,7 +100,7 @@ jobs:
81100
if: failure()
82101
uses: fjogeleit/http-request-action@v1
83102
with:
84-
url: 'https://element.ems.host/hookshot/webhook/4bbf3b21-e94a-4a97-8a09-c0e03a6de173'
103+
url: ${{ secrets.CRYPTO_HOOK_URL }}
85104
method: 'POST'
86105
customHeaders: '{"Content-Type": "application/json"}'
87106
data: '{"text": "matrix-rust-sdk-crypto-wasm is failing to build against the latest matrix-sdk Rust code. See ${{ steps.create-issue.outputs.url }}"}'

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
with:
3232
targets: wasm32-unknown-unknown
3333

34+
# Keep this in sync with:
35+
# .github/workflows/ci.yml
36+
# .github/workflows/latest-matrix-sdk-crypto.yml
3437
- name: Install Node.js
3538
uses: actions/setup-node@v3
3639
with:

0 commit comments

Comments
 (0)