Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c152632

Browse files
authoredOct 21, 2024··
Merge branch 'main' into ajewell/rust
2 parents ef1e678 + b9333fb commit c152632

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed
 

‎.github/actions/polymorph_codegen/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ runs:
9797
run: |
9898
echo "PROJECT_DEPENDENCIES=${{ inputs.update-and-regenerate-mpl != 'true' && 'PROJECT_DEPENDENCIES=' || '' }}" >> $GITHUB_OUTPUT
9999
100+
- name: Print dotnet version
101+
shell: bash
102+
run: |
103+
dotnet --version
104+
100105
- name: Regenerate Dafny code using smithy-dafny
101106
# Unfortunately Dafny codegen doesn't work on Windows:
102107
# https://github.com/smithy-lang/smithy-dafny/issues/317

‎.github/workflows/ci_codegen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
with:
4949
dotnet-version: ${{ matrix.dotnet-version }}
5050

51+
- name: Create temporary global.json
52+
run: echo '{"sdk":{"rollForward":"latestFeature","version":"6.0.0"}}' > ./global.json
53+
5154
- name: Setup Java 17 for codegen
5255
uses: actions/setup-java@v3
5356
with:

‎DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ module SearchableEncryptionInfo {
248248
assume {:axiom} cache.Modifies == {};
249249
var getCacheOutput := cache.GetCacheEntry(getCacheInput);
250250

251+
// If error is not EntryDoesNotExist, return failure
252+
if (getCacheOutput.Failure? && !getCacheOutput.error.EntryDoesNotExist?) {
253+
return Failure(AwsCryptographyMaterialProviders(AwsCryptographyMaterialProviders:=getCacheOutput.error));
254+
}
255+
251256
if getCacheOutput.Failure? {
252257
//= specification/searchable-encryption/search-config.md#beacon-keys
253258
//# Beacon keys MUST be obtained from the configured [Beacon Key Source](#beacon-key-source).
@@ -280,7 +285,11 @@ module SearchableEncryptionInfo {
280285

281286
verifyValidStateCache(cache);
282287
assume {:axiom} cache.Modifies == {};
283-
var _ := cache.PutCacheEntry(putCacheEntryInput);
288+
289+
var putResult := cache.PutCacheEntry(putCacheEntryInput);
290+
if (putResult.Failure? && !putResult.error.EntryAlreadyExists?) {
291+
return Failure(AwsCryptographyMaterialProviders(AwsCryptographyMaterialProviders:=putResult.error));
292+
}
284293
return Success(keyMap);
285294
} else {
286295
:- Need(

‎project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ mplDependencyJavaVersion=1.6.0
33
dafnyVersion=4.8.0
44
dafnyVerifyVersion=4.8.0
55
dafnyRuntimeJavaVersion=4.8.0
6-
smithyDafnyJavaConversionVersion=0.1
6+
smithyDafnyJavaConversionVersion=0.1.1

0 commit comments

Comments
 (0)
Please sign in to comment.