Skip to content

doc(example): examples dir, and RawAESKeyring example #281

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

Merged
merged 15 commits into from
May 6, 2020
Merged

doc(example): examples dir, and RawAESKeyring example #281

merged 15 commits into from
May 6, 2020

Conversation

MatthewBennington
Copy link

@MatthewBennington MatthewBennington commented Apr 24, 2020

Issue #, if available: resolves #263

Description of changes: Created example directory and project, and created AES Example

Squash/merge commit message, if applicable:

  • Create examples directory
  • Create examples project file
  • Create RawAESKeyringExample
  • Create ExampleUtils

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Create examples directory and project
- Create RawAESKeyringExample.cs
- Create ExampleUtils.cs
@lavaleri
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 8c4dfe9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 3cd88c5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 892c8d6
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 4, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: e854c9a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 4, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 1928216
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 4, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 1928216
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 4, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: fb379d4
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

mattsb42-aws
mattsb42-aws previously approved these changes May 4, 2020
Copy link
Member

@mattsb42-aws mattsb42-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the qualifier that we need to remember to come back and add in the encryption context check, LGTM.

@lavaleri
Copy link
Contributor

lavaleri commented May 5, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: a722dd3
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 5, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: a4f540a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Member

@mattsb42-aws mattsb42-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we use the directory name "keyring" (singular) in Java and Python; we should be consistent.

1. Each example file MUST contain exactly one example.
1. Each example filename MUST be descriptive.
1. Each example file MUST contain a public class matching the filename.
1. Each example file MUST contain a method called `run` that runs the example.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This framing reads a bit wrong in this case since it's not a method on the file, it's a method on the class. Looking over at Java, we have a similar wording issue there.

1. Each example filename MUST be descriptive.
1. Each example file MUST contain a public class matching the filename.
1. Each example file MUST contain a method called `run` that runs the example.
1. Each example MUST be exercised by a `[Fact]` test method within its class.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this because it requires every example to repeat itself, but if this is the best way to approach this in .NET then ok.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's probably the simplest/fastest solution in most languages, and I'd rather have this working to unblock more examples with an issue to improve it if we feel strongly about it.

It will be important to have test coverage metrics for this csproj in particular, no matter how we run them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having said that, this documentation is inconsistent - the stuff about run isn't sufficient, and not actually relevant since our CI assumes there's a [Fact] that will run it instead. I'm going to remove the items that aren't true YET, and we can put them back if and when we put different CI into place.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep the requirement of the entry point being named "run" so that we're consistent across languages.

@robin-aws
Copy link
Contributor

With the qualifier that we need to remember to come back and add in the encryption context check, LGTM.

I'm confident we'll cover that as part of awslabs/aws-encryption-sdk-specification#96 (i.e. #289)

@robin-aws
Copy link
Contributor

LGTM aside from @mattsb42-aws' latest suggestions!

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: c1d89af
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: c1d89af
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 58a465d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 01150f1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

mattsb42-aws
mattsb42-aws previously approved these changes May 6, 2020
@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 76d22d5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: eaecb1c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: eaecb1c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lavaleri
Copy link
Contributor

lavaleri commented May 6, 2020

AWS CodeBuild CI Report

  • CodeBuild project: DafnyESDK
  • Commit ID: 5d9f1d8
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: Raw AES Keyrings
4 participants