Skip to content

chore(ci): Fix nightly build #1468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci_test_vector_net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
dafny-version: ${{ inputs.dafny }}

- name: Update MPL submodule if using MPL HEAD
if: ${{ inputs.mpl-head == true }}
working-directory: submodules/MaterialProviders
run: |
git checkout main
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,51 +19,51 @@ jobs:
uses: ./.github/workflows/library_format.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-verification:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/library_dafny_verification.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-test-vector-verification:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/test_vector_verification.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-java:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_test_java.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-test-vectors-java:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_test_vector_java.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-net:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_test_net.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-rust:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/library_rust_tests.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false
dafny-nightly-test-vectors-net:
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_test_vector_net.yml
with:
dafny: "nightly-latest"
regenerate-code: true
regenerate-code: false

cut-issue-on-failure:
runs-on: ubuntu-22.04
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ module DynamoDbGetEncryptedDataKeyDescriptionTest {
expect actualDataKeyDescription.EncryptedDataKeyDescriptionOutput[0].keyProviderInfo.value == "keyproviderInfo";
}

method {:test} TestDDBItemInputAwsKmsHDataKeyCase()
method {:test} {:isolate_assertions} TestDDBItemInputAwsKmsHDataKeyCase()
{
var expectedHead := CreatePartialHeader(testVersion, testFlavor0, testMsgID, testLegend, testEncContext, [testAwsKmsHDataKey]);
var serializedHeader := expectedHead.serialize() + expectedHead.msgID;
Expand Down
19 changes: 14 additions & 5 deletions DynamoDbEncryption/dafny/StructuredEncryption/src/Canonize.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,14 @@ module {:options "/functionSyntax:4" } Canonize {
exists x :: x in origData && Updated2(x, item, DoDecrypt)
}

ghost function Updated2Item(origData : AuthList, item : CanonCryptoItem) : (result : AuthItem)
requires Updated2Exists(origData, item)
ensures Updated2(result, item, DoDecrypt)
{
var r :| Updated2(r, item, DoDecrypt);
r
}

ghost predicate Updated5Exists(origData : CryptoList, item : CanonCryptoItem)
{
exists x :: x in origData && Updated5(x, item, DoEncrypt)
Expand Down Expand Up @@ -698,11 +706,12 @@ module {:options "/functionSyntax:4" } Canonize {
reveal CryptoUpdatedAuth();
assert forall k <- output :: exists x :: x in origData && Updated3(x, k, DoDecrypt) by {
Update2ImpliesUpdate3();
assert forall val <- input :: exists x :: x in origData && Updated2(x, val, DoDecrypt);
assume {:axiom} forall i | 0 <= i < |input| :: exists x :: x in origData && Updated2(x, input[i], DoDecrypt);
// assert forall i | 0 <= i < |input| :: exists x :: x in origData && Updated2(x, input[i], DoDecrypt) by {
// InputIsInput(origData, input);
// }
assert forall i | 0 <= i < |input| :: exists x :: x in origData && Updated2(x, input[i], DoDecrypt) by {
InputIsInput(origData, input);
forall i | 0 <= i < |input| ensures exists x :: x in origData && Updated2(x, input[i], DoDecrypt) {
var x := Updated2Item(origData, input[i]);
}
}
assert forall newVal <- output :: exists x :: x in origData && Updated3(x, newVal, DoDecrypt);
}
}
Expand Down
2 changes: 1 addition & 1 deletion submodules/smithy-dafny
Loading