-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: add polymorphDafny and polymorphDotnet tasks to Smithy Build Plugin-based SQS TestModel #395
Conversation
…ustplaz/gradle-build
Also hook up sqs as a regular test model in CI
@@ -1,5 +1,23 @@ | |||
{ | |||
"version": "1.0", | |||
"projections": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make this listQueuesOnly
and actually hook it up as the source in the Gradle build via projectionName = "listQueuesOnly"
as above? That way we're actually testing the workflow we're claiming to work now, and TestComAmazonawsSqs.dfy
should still work AFAICT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good call!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Only nit is that "listQueuesOnly" is now technically "listQueuesOnlyExceptForAtLeastOneOtherOneBecauseOf#439" :) But it doesn't look like smithy-build.json
supports comments. Perhaps we could add a comment to the README of this test model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, I'll do both.
(JSON in general doesn't support comments, it's kind of a bummer)
…ustplaz/gradle-build
Issue #, if available: #356 (related)
Description of changes: This PR allows the Smithy Build Plugin-based SQS TestModel to be built and structured similarly to the Makefile/CLI based models used elsewhere. This enables some Smithy features which are not supported by the CLI, such as Projections.
Instead of running
make polymorph_dafny
andmake polymorph_dotnet
, run./gradlew polymorphDafny
and./gradlew polymorphDotnet
to generate types for the respective languages. A Makefile is included, as it is needed to runmake transpile_net
andmake test_net
, which work as expected when the above commands are executed.NOTE: These changes are not tested in CI. That may be done as part of this PR, or later, depending on what reviewers prefer.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.