Skip to content

Commit 475cdb4

Browse files
authored
Merge pull request #2696 from KomodoPlatform/staging
chore(release): v2.6.0-beta
2 parents a295579 + e274b88 commit 475cdb4

File tree

638 files changed

+35128
-14773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+35128
-14773
lines changed

.cargo/config.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
[env]
2+
# Enables unstable features for specific crates to take advantage of useful
3+
# functionality not yet stabilized. Remove a crate from the list once all
4+
# required features are stabilized.
5+
#
6+
# # Core crates (used in production)
7+
#
8+
# - mm2_state_machine: Depends on `negative_impls` and `auto_traits`.
9+
# - mm2_err_handle: Depends on `negative_impls`, `auto_traits` and `allocator_api`.
10+
#
11+
# # Test crates (not leaked into the binary)
12+
#
13+
# - mocktopus: nightly only dependency.
14+
# - mocktopus_macros: nightly only dependency.
15+
# - docker_tests_main: Depends on `custom_test_frameworks` and `test`.
16+
RUSTC_BOOTSTRAP = "mm2_state_machine,mm2_err_handle,mocktopus,mocktopus_macros,docker_tests_main"
17+
218
JEMALLOC_SYS_WITH_MALLOC_CONF = "background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto"
319

420
[target.'cfg(all())']
5-
rustflags = [ "-Zshare-generics=y", '--cfg=curve25519_dalek_backend="fiat"' ]
21+
rustflags = [ '--cfg=curve25519_dalek_backend="fiat"' ]
622

723
# # Install lld using package manager
824
# [target.x86_64-unknown-linux-gnu]

.docker/Dockerfile.ci-container

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM docker.io/debian:bullseye-slim
22

3-
MAINTAINER Onur Özkan <[email protected]>
3+
LABEL maintainer="Onur Özkan <[email protected]>"
44

55
RUN apt-get update -y
66

.docker/Dockerfile.dev-release

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM docker.io/debian:stable-slim
22
WORKDIR /kdf
33
COPY target/release/kdf /usr/local/bin/kdf
4-
COPY target/release/mm2 /usr/local/bin/mm2
54
EXPOSE 7783
65
CMD ["kdf"]

.docker/Dockerfile.release

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
FROM docker.io/debian:stable-slim
22
WORKDIR /kdf
33
COPY target/release/kdf /usr/local/bin/kdf
4-
COPY target/release/mm2 /usr/local/bin/mm2
54
EXPOSE 7783
65
CMD ["kdf"]

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Toolchain upgrades:
2+
1979c6e3667e78ff53b47aecafb90ca9507d10e2
3+
daf43ebeadf0b8e17f2b76019c6496236f4dd46c
4+
7d51c5a6ab4390e4db8c4510db7012abe6cec8ad

.github/actions/build-cache/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ runs:
66
- name: Checkout repository
77
uses: actions/checkout@v3
88

9+
- name: Set up Node.js
10+
uses: actions/setup-node@v4
11+
with:
12+
node-version: '20'
13+
914
- name: Set up rust-cache
1015
uses: Swatinem/rust-cache@v2

.github/workflows/dev-build.yml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ concurrency:
1010

1111
env:
1212
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
13-
JEMALLOC_SYS_WITH_MALLOC_CONF: "background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto"
1413

1514
jobs:
1615
linux-x86-64:
@@ -29,8 +28,8 @@ jobs:
2928
3029
- name: Install toolchain
3130
run: |
32-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
33-
rustup default nightly-2023-06-01
31+
rustup toolchain install stable --no-self-update --profile=minimal
32+
rustup default stable
3433
3534
- name: Install build deps
3635
uses: ./.github/actions/deps-install
@@ -61,6 +60,7 @@ jobs:
6160
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
6261
mkdir $SAFE_DIR_NAME
6362
mv $NAME ./$SAFE_DIR_NAME/
63+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
6464
6565
- name: Upload build artifact
6666
env:
@@ -92,8 +92,8 @@ jobs:
9292
- uses: actions/checkout@v3
9393
- name: Install toolchain
9494
run: |
95-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
96-
rustup default nightly-2023-06-01
95+
rustup toolchain install stable --no-self-update --profile=minimal
96+
rustup default stable
9797
rustup target add x86_64-apple-darwin
9898
9999
- name: Install build deps
@@ -131,6 +131,7 @@ jobs:
131131
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
132132
mkdir $SAFE_DIR_NAME
133133
mv $NAME ./$SAFE_DIR_NAME/
134+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
134135
135136
- name: Upload build artifact
136137
env:
@@ -150,8 +151,8 @@ jobs:
150151
- uses: actions/checkout@v3
151152
- name: Install toolchain
152153
run: |
153-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
154-
rustup default nightly-2023-06-01
154+
rustup toolchain install stable --no-self-update --profile=minimal
155+
rustup default stable
155156
rustup target add aarch64-apple-darwin
156157
157158
- name: Install build deps
@@ -189,6 +190,7 @@ jobs:
189190
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
190191
mkdir $SAFE_DIR_NAME
191192
mv $NAME ./$SAFE_DIR_NAME/
193+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
192194
193195
- name: Upload build artifact
194196
env:
@@ -253,6 +255,7 @@ jobs:
253255
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
254256
mkdir $SAFE_DIR_NAME
255257
mv $NAME ./$SAFE_DIR_NAME/
258+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
256259
257260
- name: Upload build artifact
258261
env:
@@ -272,8 +275,8 @@ jobs:
272275
- uses: actions/checkout@v3
273276
- name: Install toolchain
274277
run: |
275-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
276-
rustup default nightly-2023-06-01
278+
rustup toolchain install stable --no-self-update --profile=minimal
279+
rustup default stable
277280
278281
- name: Install build deps
279282
uses: ./.github/actions/deps-install
@@ -305,6 +308,12 @@ jobs:
305308
mkdir $SAFE_DIR_NAME
306309
mv $NAME ./$SAFE_DIR_NAME/
307310
311+
# Generate the SHA256 hash for the zip file
312+
Get-FileHash ./$SAFE_DIR_NAME/$NAME -Algorithm SHA256 | Format-Table Hash | Out-File "./$SAFE_DIR_NAME/$NAME.sha256" -Encoding ascii
313+
314+
# Display the SHA256 hash in Actions logs
315+
Get-Content "./$SAFE_DIR_NAME/$NAME.sha256"
316+
308317
- name: Upload build artifact
309318
env:
310319
FILE_SERVER_HOST: ${{ secrets.FILE_SERVER_HOST }}
@@ -323,8 +332,8 @@ jobs:
323332
- uses: actions/checkout@v3
324333
- name: Install toolchain
325334
run: |
326-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
327-
rustup default nightly-2023-06-01
335+
rustup toolchain install stable --no-self-update --profile=minimal
336+
rustup default stable
328337
rustup target add x86_64-apple-darwin
329338
330339
- name: Install build deps
@@ -357,6 +366,7 @@ jobs:
357366
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
358367
mkdir $SAFE_DIR_NAME
359368
mv $NAME ./$SAFE_DIR_NAME/
369+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
360370
361371
- name: Upload build artifact
362372
env:
@@ -390,8 +400,8 @@ jobs:
390400

391401
- name: Install toolchain
392402
run: |
393-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
394-
rustup default nightly-2023-06-01
403+
rustup toolchain install stable --no-self-update --profile=minimal
404+
rustup default stable
395405
rustup target add wasm32-unknown-unknown
396406
397407
- name: Install wasm-pack
@@ -422,6 +432,7 @@ jobs:
422432
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
423433
mkdir $SAFE_DIR_NAME
424434
mv $NAME ./$SAFE_DIR_NAME/
435+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
425436
426437
- name: Upload build artifact
427438
env:
@@ -441,8 +452,8 @@ jobs:
441452
- uses: actions/checkout@v3
442453
- name: Install toolchain
443454
run: |
444-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
445-
rustup default nightly-2023-06-01
455+
rustup toolchain install stable --no-self-update --profile=minimal
456+
rustup default stable
446457
rustup target add aarch64-apple-ios
447458
448459
- name: Install build deps
@@ -475,6 +486,7 @@ jobs:
475486
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
476487
mkdir $SAFE_DIR_NAME
477488
mv $NAME ./$SAFE_DIR_NAME/
489+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
478490
479491
- name: Upload build artifact
480492
env:
@@ -503,8 +515,8 @@ jobs:
503515
504516
- name: Install toolchain
505517
run: |
506-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
507-
rustup default nightly-2023-06-01
518+
rustup toolchain install stable --no-self-update --profile=minimal
519+
rustup default stable
508520
rustup target add aarch64-linux-android
509521
510522
- name: Install build deps
@@ -542,6 +554,7 @@ jobs:
542554
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
543555
mkdir $SAFE_DIR_NAME
544556
mv $NAME ./$SAFE_DIR_NAME/
557+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
545558
546559
- name: Upload build artifact
547560
env:
@@ -570,8 +583,8 @@ jobs:
570583
571584
- name: Install toolchain
572585
run: |
573-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
574-
rustup default nightly-2023-06-01
586+
rustup toolchain install stable --no-self-update --profile=minimal
587+
rustup default stable
575588
rustup target add armv7-linux-androideabi
576589
577590
- name: Install build deps
@@ -609,6 +622,7 @@ jobs:
609622
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
610623
mkdir $SAFE_DIR_NAME
611624
mv $NAME ./$SAFE_DIR_NAME/
625+
shasum -a 256 ./$SAFE_DIR_NAME/$NAME | tee ./$SAFE_DIR_NAME/$NAME.sha256
612626
613627
- name: Upload build artifact
614628
env:

.github/workflows/fmt-and-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818

1919
- name: Install toolchain
2020
run: |
21-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal --component rustfmt,clippy
22-
rustup default nightly-2023-06-01
21+
rustup toolchain install stable --no-self-update --profile=minimal --component rustfmt,clippy
22+
rustup default stable
2323
2424
- name: Install build deps
2525
uses: ./.github/actions/deps-install
@@ -45,8 +45,8 @@ jobs:
4545
- uses: actions/checkout@v3
4646
- name: Install toolchain
4747
run: |
48-
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal --component clippy
49-
rustup default nightly-2023-06-01
48+
rustup toolchain install stable --no-self-update --profile=minimal --component clippy
49+
rustup default stable
5050
rustup target add wasm32-unknown-unknown
5151
5252
- name: Install build deps

.github/workflows/pr-lint.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,3 @@ jobs:
4444
echo "PR title is too long (greater than 85 characters)"
4545
exit 1
4646
fi
47-
48-
- name: Check PR labels
49-
env:
50-
LABEL_NAMES: ${{ toJson(github.event.pull_request.labels.*.name) }}
51-
if: "!((contains(env.LABEL_NAMES, 'pending review') && !contains(env.LABEL_NAMES, 'in progress') && !contains(env.LABEL_NAMES, 'blocked'))
52-
|| (!contains(env.LABEL_NAMES, 'pending review') && contains(env.LABEL_NAMES, 'in progress') && !contains(env.LABEL_NAMES, 'blocked'))
53-
|| (!contains(env.LABEL_NAMES, 'pending review') && !contains(env.LABEL_NAMES, 'in progress') && contains(env.LABEL_NAMES, 'blocked')))"
54-
run: |
55-
echo "PR must have "exactly one" of these labels: ['status: pending review', 'status: in progress', 'status: blocked']."
56-
exit 1
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR Review Reminder
2+
3+
on:
4+
schedule:
5+
# Run at 12:00 PM everyday.
6+
- cron: '0 12 * * *'
7+
8+
jobs:
9+
pr-review-reminder:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
runs-on: ubuntu-latest
15+
name: PR Review Reminder
16+
17+
steps:
18+
- name: Run PR Review Reminder
19+
uses: thundermiracle/review-reminder-action@224d83b90c76ac597776c79ba1f63539f0bc2795
20+
with:
21+
stale-days: 2
22+
ignore-draft: true
23+
# Don't ping people at weekends.
24+
only-business-days: true
25+
# 2 approvals are enough.
26+
skip-approve-count: 2
27+
token: "${{ secrets.GITHUB_TOKEN }}"
28+
send-reminder-comment: true

0 commit comments

Comments
 (0)