Skip to content

Commit bb2aff3

Browse files
Merge branch 'main' into singleton-keyvectors
2 parents 393c25e + be3b96e commit bb2aff3

File tree

2,116 files changed

+219465
-190182
lines changed

Some content is hidden

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

2,116 files changed

+219465
-190182
lines changed

.github/workflows/ci_todos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
shell: bash
1818
# TODOs may be committed as long as the same line contains a link to a Github Issue or refers to a CrypTool SIM.
1919
run: |
20-
ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
21-
GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
20+
ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./releases --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
21+
GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./releases --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
2222
if [ "$ALL_TODO_COUNT" != "$GOOD_TODO_COUNT" ]; then
2323
exit 1;
2424
fi

.github/workflows/dafny_interop_examples_java.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_examples_net.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_java.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_test_net.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_test_vector_java.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
run: |
6666
git fetch
6767
git checkout ${{inputs.mpl-commit}}
68-
git pull
6968
git submodule update --init --recursive
7069
git rev-parse HEAD
7170

.github/workflows/dafny_interop_test_vector_net.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
run: |
6262
git fetch
6363
git checkout ${{inputs.mpl-commit}}
64-
git pull
6564
git submodule update --init --recursive
6665
git rev-parse HEAD
6766

.github/workflows/library_rust_tests.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
required: false
1414
default: false
1515
type: boolean
16+
mpl-head:
17+
description: "Running on MPL HEAD"
18+
required: false
19+
default: false
20+
type: boolean
1621

1722
jobs:
1823
testRust:
@@ -27,7 +32,7 @@ jobs:
2732
id-token: write
2833
contents: read
2934
env:
30-
RUST_MIN_STACK: 404857600
35+
RUST_MIN_STACK: 838860800
3136
steps:
3237
- name: Support longpaths on Git checkout
3338
run: |
@@ -50,24 +55,20 @@ jobs:
5055
uses: actions-rust-lang/[email protected]
5156
with:
5257
components: rustfmt
53-
# uncomment this after Rust formatter works
54-
# - name: Rustfmt Check
55-
# uses: actions-rust-lang/rustfmt@v1
5658

5759
- name: Setup Dafny
58-
uses: dafny-lang/setup-dafny-action@v1.7.0
60+
uses: dafny-lang/setup-dafny-action@v1.8.0
5961
with:
60-
dafny-version: nightly-2024-12-03-4954170
62+
dafny-version: nightly-2025-01-30-7db1e5f
6163

62-
# Remove this after the formatting in Rust starts working
63-
- name: smithy-dafny Rust hacks
64-
shell: bash
64+
- name: Update MPL submodule if using MPL HEAD
65+
if: ${{ inputs.mpl-head == true }}
66+
working-directory: submodules/MaterialProviders
6567
run: |
66-
if [ "$RUNNER_OS" == "macOS" ]; then
67-
sed -i '' 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' submodules/smithy-dafny/SmithyDafnyMakefile.mk
68-
else
69-
sed -i 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' submodules/smithy-dafny/SmithyDafnyMakefile.mk
70-
fi
68+
git checkout main
69+
git pull
70+
git submodule update --init --recursive
71+
git rev-parse HEAD
7172
7273
- name: Setup Java 17 for codegen
7374
uses: actions/setup-java@v3
@@ -109,6 +110,13 @@ jobs:
109110
run: |
110111
make test_rust
111112
113+
- name: Test ${{ matrix.library }} Rust Debug
114+
if: ${{ matrix.library != 'TestVectors' }}
115+
shell: bash
116+
working-directory: ./${{ matrix.library }}
117+
run: |
118+
make test_rust test_rust_debug
119+
112120
- name: Test Examples for Rust in ${{ matrix.library }}
113121
if: ${{ matrix.library == 'DynamoDbEncryption' }}
114122
working-directory: ./${{ matrix.library }}/runtimes/rust/

.github/workflows/mpl_head_version.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
shell: bash
3232
run: |
3333
git checkout ${{inputs.mpl-head}}
34-
git pull
3534
git submodule update --init --recursive
3635
git rev-parse HEAD
3736

.github/workflows/smithy-diff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
FILES: ${{ steps.file-changes.outputs.FILES }}
3636
if: ${{env.FILES != ''}}
3737
run: |
38-
# TODO: If https://github.com/smithy-lang/smithy-dafny/issues/491 is resolved, remove comment about this issue.
38+
# If https://github.com/smithy-lang/smithy-dafny/issues/491 is resolved, remove comment about this issue.
3939
COMMENT="@${{github.event.pull_request.user.login}} and @${{github.actor}}, I noticed you are updating the smithy model files.\nDoes this update need new or updated javadoc trait documentation?\n Are you adding constraints inside list, map or union? Do you know about this issue: https://github.com/smithy-lang/smithy-dafny/issues/491?"
4040
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
4141
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"

0 commit comments

Comments
 (0)