Skip to content
Open
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
11 changes: 5 additions & 6 deletions .github/workflows/ci_static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ on:
branches:
- main

permissions:
contents: read

jobs:
not-grep:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- name: Install setuptools dependency
run: |
python -m pip install --upgrade pip
python -m pip install setuptools==81.0.0
- uses: actions/checkout@v6
- name: not-grep
uses: mattsb42-meta/not-grep@1.0.0
uses: mattsb42-meta/not-grep@1.0.1
6 changes: 3 additions & 3 deletions DynamoDbEncryption/runtimes/rust/examples/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ pub async fn main() -> Result<(), BoxError2> {

let key_id = create_keystore_key::keystore_create_key().await?;
let key_id2 = create_keystore_key::keystore_create_key().await?;
// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
println!("Key Store Keys created. Waiting 5 seconds for consistency.");
std::thread::sleep(std::time::Duration::from_secs(5));
println!("Key Store Keys created. Waiting 8 seconds for consistency.");
std::thread::sleep(std::time::Duration::from_secs(8));

keyring::hierarchical_keyring::put_item_get_item(&key_id, &key_id2).await?;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public void TestHierarchicalKeyringExample() throws InterruptedException {
TestUtils.TEST_KEYSTORE_KMS_KEY_ID
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

HierarchicalKeyringExample.HierarchicalKeyringGetItemPutItem(
TestUtils.TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public void TestSharedCacheAcrossHierarchicalKeyringsExample()
TestUtils.TEST_KEYSTORE_KMS_KEY_ID
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

SharedCacheAcrossHierarchicalKeyringsExample.SharedCacheAcrossHierarchicalKeyringsGetItemPutItem(
TestUtils.TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public void TestBasicExample() throws InterruptedException {
SearchableEncryptionTestUtils.TEST_BRANCH_KEY_WRAPPING_KMS_KEY_ARN
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

BasicSearchableEncryptionExample.PutItemQueryItemWithBeacon(
SearchableEncryptionTestUtils.UNIT_INSPECTION_TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public void TestCompoundItemEncryptDecrypt() throws InterruptedException {
SearchableEncryptionTestUtils.TEST_BRANCH_KEY_WRAPPING_KMS_KEY_ARN
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

BeaconStylesSearchableEncryptionExample.PutItemQueryItemWithBeaconStyles(
SearchableEncryptionTestUtils.UNIT_INSPECTION_TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public void TestCompoundItemEncryptDecrypt() throws InterruptedException {
SearchableEncryptionTestUtils.TEST_BRANCH_KEY_WRAPPING_KMS_KEY_ARN
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

CompoundBeaconSearchableEncryptionExample.PutItemQueryItemWithCompoundBeacon(
SearchableEncryptionTestUtils.UNIT_INSPECTION_TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public void TestVirtualBeaconExample() throws InterruptedException {
SearchableEncryptionTestUtils.TEST_BRANCH_KEY_WRAPPING_KMS_KEY_ARN
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

VirtualBeaconSearchableEncryptionExample.PutItemQueryItemWithVirtualBeacon(
SearchableEncryptionTestUtils.SIMPLE_BEACON_TEST_DDB_TABLE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public void TestComplexExample() throws InterruptedException {
SearchableEncryptionTestUtils.TEST_BRANCH_KEY_WRAPPING_KMS_KEY_ARN
);

// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.sleep(5000);
Thread.sleep(8000);

ComplexSearchableEncryptionExample.runExample(
ComplexSearchableEncryptionTestUtils.TEST_DDB_TABLE_NAME,
Expand Down
4 changes: 2 additions & 2 deletions Examples/runtimes/net/src/Examples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ static async Task Main()

var keyId = CreateKeyStoreKeyExample.KeyStoreCreateKey();
var keyId2 = CreateKeyStoreKeyExample.KeyStoreCreateKey();
// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
Thread.Sleep(5000);
Thread.Sleep(8000);

await HierarchicalKeyringExample.HierarchicalKeyringGetItemPutItem(keyId, keyId2);
await SharedCacheAcrossHierarchicalKeyringsExample.SharedCacheAcrossHierarchicalKeyringsGetItemPutItem(keyId);
Expand Down
6 changes: 3 additions & 3 deletions releases/rust/db_esdk/examples/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ pub async fn main() -> Result<(), BoxError2> {

let key_id = create_keystore_key::keystore_create_key().await?;
let key_id2 = create_keystore_key::keystore_create_key().await?;
// Key creation is eventually consistent, so wait 5 seconds to decrease the likelihood
// Key creation is eventually consistent, so wait 8 seconds to decrease the likelihood
// our test fails due to eventual consistency issues.
println!("Key Store Keys created. Waiting 5 seconds for consistency.");
std::thread::sleep(std::time::Duration::from_secs(5));
println!("Key Store Keys created. Waiting 8 seconds for consistency.");
std::thread::sleep(std::time::Duration::from_secs(8));

keyring::hierarchical_keyring::put_item_get_item(&key_id, &key_id2).await?;

Expand Down
Loading