Skip to content

Commit b4de89c

Browse files
authored
Merge pull request #906 from aws-amplify/main
chore: release codegen
2 parents 2d29c88 + 7b8ee57 commit b4de89c

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed

.codebuild/canary_workflow.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
compute-type: BUILD_GENERAL1_LARGE
5+
batch:
6+
fast-fail: false
7+
build-graph:
8+
- identifier: build_linux
9+
buildspec: .codebuild/build_linux.yml
10+
env:
11+
compute-type: BUILD_GENERAL1_LARGE
12+
- identifier: test
13+
buildspec: .codebuild/test.yml
14+
env:
15+
compute-type: BUILD_GENERAL1_LARGE
16+
depend-on:
17+
- build_linux
18+
- identifier: publish_to_local_registry
19+
buildspec: .codebuild/publish_to_local_registry.yml
20+
env:
21+
compute-type: BUILD_GENERAL1_MEDIUM
22+
depend-on:
23+
- build_linux
24+
- identifier: build_app_swift_us_east_1
25+
buildspec: .codebuild/run_ios_modelgen_e2e_test.yml
26+
env:
27+
compute-type: BUILD_GENERAL1_LARGE
28+
variables:
29+
TEST_SUITE: src/__tests__/build-app-swift.test.ts
30+
CLI_REGION: us-east-1
31+
depend-on:
32+
- publish_to_local_registry
33+
- identifier: build_app_android_us_east_1
34+
buildspec: .codebuild/run_android_modelgen_e2e_test.yml
35+
env:
36+
compute-type: BUILD_GENERAL1_LARGE
37+
variables:
38+
TEST_SUITE: src/__tests__/build-app-android.test.ts
39+
CLI_REGION: us-east-1
40+
depend-on:
41+
- publish_to_local_registry
42+
- identifier: build_app_ts_us_east_1
43+
buildspec: .codebuild/run_e2e_tests.yml
44+
env:
45+
compute-type: BUILD_GENERAL1_LARGE
46+
variables:
47+
TEST_SUITE: src/__tests__/build-app-ts.test.ts
48+
CLI_REGION: us-east-1
49+
depend-on:
50+
- publish_to_local_registry
51+
- identifier: cleanup_e2e_resources
52+
buildspec: .codebuild/cleanup_e2e_resources.yml
53+
env:
54+
compute-type: BUILD_GENERAL1_MEDIUM
55+
depend-on:
56+
- build_app_ts_us_east_1

packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
326326
\\"isRequired\\": false,
327327
\\"name\\": \\"onCreateAssistantResponsePirateChat\\",
328328
\\"type\\": {
329-
\\"model\\": \\"ConversationMessagePirateChat\\"
329+
\\"nonModel\\": \\"ConversationMessageStreamPart\\"
330330
},
331331
\\"arguments\\": {
332332
\\"conversationId\\": {

packages/appsync-modelgen-plugin/src/utils/process-conversation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function generateSubscriptionMetadata(routeName: string, modelName: string): Sch
185185
isArray: false,
186186
isRequired: false,
187187
name: `onCreateAssistantResponse${routeName}`,
188-
type: { model: modelName },
188+
type: { nonModel: 'ConversationMessageStreamPart' },
189189
arguments: {
190190
'conversationId': {
191191
name: 'conversationId',

0 commit comments

Comments
 (0)