Skip to content

Commit

Permalink
fix failing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper committed Jun 3, 2024
1 parent 3de8494 commit 37b2b54
Show file tree
Hide file tree
Showing 7 changed files with 1,461 additions and 1,599 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ node_modules/
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Python
.venv/

# LocalStacl
logs.txt
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ usage: ## Show this help

install: ## Install dependencies
@test -e node_modules || yarn install
@which serverless || yarn add serverless
@which localstack || pip install localstack
@which awslocal || pip install awscli-local
@test -e .venv || (python3 -m venv .venv; source .venv/bin/activate; pip install -r requirements.txt)
Expand Down
79 changes: 79 additions & 0 deletions logs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

LocalStack version: 3.4.1.dev20240527112845
LocalStack Docker container name: localstack-main
LocalStack Docker container id: 1b10d1434262
LocalStack Docker image sha: sha256:f13d78699c56db84226fb985e8dffaebba53b4c52845c9f6966a14fdd5b91440
LocalStack build date: 2024-05-27
LocalStack build git hash: bc86545

2024-06-03T10:02:05.294 INFO --- [ MainThread] l.bootstrap.licensingv2 : Successfully activated cached license 7be9586b-dc9b-40a2-9e93-e374ccc61ad4:enterprise from /etc/localstack/conf.d/license.json 🔑✅
2024-06-03T10:02:06.422 INFO --- [ MainThread] l.extensions.platform : loaded 1 extensions
Ready.
2024-06-03T10:02:07.308 INFO --- [et.reactor-0] l.services.s3.v3.provider : Using /tmp/localstack/state/s3 as storage path for s3 assets
2024-06-03T10:02:07.521 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.CreateBucket => 200
2024-06-03T10:02:09.875 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.HeadBucket => 200
2024-06-03T10:02:09.883 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketVersioning => 200
2024-06-03T10:02:09.906 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketAccelerateConfiguration => 200
2024-06-03T10:02:09.933 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketTagging => 404 (NoSuchTagSet)
2024-06-03T10:02:09.940 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetPublicAccessBlock => 200
2024-06-03T10:02:09.944 INFO --- [et.reactor-0] localstack.request.aws : AWS sts.GetCallerIdentity => 200
2024-06-03T10:02:09.946 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.DeletePublicAccessBlock => 204
2024-06-03T10:02:09.950 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketLogging => 200
2024-06-03T10:02:09.983 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.HeadBucket => 200
2024-06-03T10:02:09.987 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketVersioning => 200
2024-06-03T10:02:09.993 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketAccelerateConfiguration => 200
2024-06-03T10:02:09.999 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketTagging => 404 (NoSuchTagSet)
2024-06-03T10:02:10.003 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetPublicAccessBlock => 404 (NoSuchPublicAccessBlockConfiguration)
2024-06-03T10:02:10.007 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketLogging => 200
2024-06-03T10:02:10.738 INFO --- [et.reactor-0] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 715.77ms
2024-06-03T10:02:10.738 INFO --- [et.reactor-0] localstack.utils.bootstrap : Execution of "require" took 715.93ms
2024-06-03T10:02:10.803 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeStacks => 400 (ValidationError)
2024-06-03T10:02:10.815 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketLocation => 200
2024-06-03T10:02:10.823 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.ListObjectsV2 => 200
2024-06-03T10:02:10.838 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.PutObject => 200
2024-06-03T10:02:10.844 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.PutObject => 200
2024-06-03T10:02:10.852 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetObject => 200
2024-06-03T10:02:10.855 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.CreateChangeSet => 200
2024-06-03T10:02:10.860 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeChangeSet => 200
2024-06-03T10:02:10.867 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.ExecuteChangeSet => 200
2024-06-03T10:02:12.637 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "require" took 1495.94ms
2024-06-03T10:02:14.021 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 539.47ms
2024-06-03T10:02:14.021 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "require" took 539.58ms
2024-06-03T10:02:14.125 INFO --- [ Thread-6] l.utils.postgresql : Starting PostgreSQL query listener/rewriter on port 4510->54745
2024-06-03T10:02:15.127 WARN --- [-functhread9] l.packages.core : postgresql will be installed as an OS package, even though install target is _not_ set to be static.
2024-06-03T10:02:15.874 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
2024-06-03T10:02:20.889 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
2024-06-03T10:02:23.766 INFO --- [-functhread9] l.s.rds.engine_postgres : Starting RDS server on port 4510 (backend port 54745) - database "testappsync", user "testuser" - data dir /var/lib/localstack/tmp/rds/postgres/000000000000/cluster/000000000000/us-east-1/c1
2024-06-03T10:02:25.933 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
2024-06-03T10:02:30.954 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
2024-06-03T10:02:32.328 INFO --- [et.reactor-1] l.utils.websockets : Starting websocket server on port 4511
2024-06-03T10:02:32.348 INFO --- [functhread10] websockets.server : server listening on 0.0.0.0:4511
2024-06-03T10:02:32.855 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 1543.69ms
2024-06-03T10:02:32.855 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "require" took 1544.05ms
2024-06-03T10:02:32.975 WARN --- [et.reactor-1] l.s.a.graphql_executor : Expected single key 'addPostDDB' in directives, got: {'addPostDDB': {}, 'id': {}}
2024-06-03T10:02:32.975 WARN --- [et.reactor-1] l.s.a.graphql_executor : Expected single key 'addPostRDS' in directives, got: {'addPostRDS': {}, 'id': {}}
2024-06-03T10:02:35.971 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
2024-06-03T10:02:35.983 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStacks => 200
2024-06-03T10:02:35.996 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.ListStackResources => 200
2024-06-03T10:02:36.001 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStacks => 200
2024-06-03T10:02:36.012 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.ListObjectsV2 => 200
2024-06-03T10:02:37.390 INFO --- [et.reactor-1] localstack.request.aws : AWS appsync.ListGraphqlApis => 200
2024-06-03T10:02:37.731 INFO --- [et.reactor-0] localstack.request.aws : AWS appsync.CreateApiKey => 200
2024-06-03T10:02:38.128 INFO --- [et.reactor-1] localstack.request.aws : AWS appsync.GetGraphqlApi => 200
2024-06-03T10:02:38.139 INFO --- [functhread10] websockets.server : connection rejected (426 Upgrade Required)
2024-06-03T10:02:38.139 INFO --- [functhread10] websockets.server : connection closed
2024-06-03T10:02:38.221 INFO --- [functhread10] websockets.server : connection open
2024-06-03T10:02:39.853 INFO --- [et.reactor-0] l.s.appsync.resolvers : Extracting data from data source "ds_ddb", type AMAZON_DYNAMODB
2024-06-03T10:02:39.982 INFO --- [et.reactor-0] localstack.request.http : POST /graphql/0342951adc7f4a4a9755faee7c => 200
2024-06-03T10:02:39.988 ERROR --- [functhread10] l.utils.websockets : Error handling incoming WebSocket message: no close frame received or sent
2024-06-03T10:02:39.988 INFO --- [functhread10] l.utils.websockets : Connection from WebSocket closed: <websockets.legacy.server.WebSocketServerProtocol object at 0xffff527dba50>
2024-06-03T10:02:39.988 INFO --- [functhread10] websockets.server : connection closed
2024-06-03T10:02:40.016 INFO --- [et.reactor-0] l.s.appsync.resolvers : Extracting data from data source "ds_ddb", type AMAZON_DYNAMODB
2024-06-03T10:02:40.032 INFO --- [et.reactor-0] l.s.appsync.provider : Error running GraphQL query: query {getPostsDDB{id}} - [{'message': "Expected Iterable, but did not find one for field 'Query.getPostsDDB'.", 'locations': [{'line': 1, 'column': 8}], 'path': ['getPostsDDB'], 'errorType': 'GraphQLError'}] None
2024-06-03T10:02:40.032 INFO --- [et.reactor-0] localstack.request.http : POST /graphql/0342951adc7f4a4a9755faee7c => 200
2024-06-03T10:02:40.377 INFO --- [et.reactor-0] localstack.request.aws : AWS dynamodb.Scan => 200
2024-06-03T10:02:40.465 INFO --- [et.reactor-1] l.s.appsync.resolvers : Extracting data from data source "ds_rds", type RELATIONAL_DATABASE
2024-06-03T10:02:40.588 INFO --- [et.reactor-1] localstack.request.http : POST /graphql/0342951adc7f4a4a9755faee7c => 200
2024-06-03T10:02:40.602 INFO --- [et.reactor-0] l.s.appsync.resolvers : Extracting data from data source "ds_rds", type RELATIONAL_DATABASE
2024-06-03T10:02:40.621 INFO --- [et.reactor-0] localstack.request.http : POST /graphql/0342951adc7f4a4a9755faee7c => 200

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"license": "Apache-2.0",
"repository": "https://github.com/localstack/appsync-graphql-api-sample",
"devDependencies": {
"serverless": "^2.0.0",
"serverless-localstack": "^1.0.5",
"serverless": "^3.0.0",
"serverless-localstack": "^1.2.0",
"serverless-appsync-plugin": "1.1.2",
"serverless-deployment-bucket": "^1.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

APPSYNC_URL=http://localhost:4566/graphql

awslocal s3 mb s3://testbucket
echo "Deploying Serverless app to local environment"; \
SLS_DEBUG=1 yarn deploy && \
echo "Serverless app successfully deployed." && \
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: test-appsync

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
deploymentBucket:
name: testbucket

Expand Down
Loading

0 comments on commit 37b2b54

Please sign in to comment.