Skip to content

Commit 4729a99

Browse files
committed
fix failing ci
1 parent 3de8494 commit 4729a99

File tree

7 files changed

+1449
-1598
lines changed

7 files changed

+1449
-1598
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ node_modules/
2020
.yarn/build-state.yml
2121
.yarn/install-state.gz
2222
.pnp.*
23+
24+
# Python
25+
.venv/
26+
27+
# LocalStack
28+
logs.txt

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ usage: ## Show this help
99

1010
install: ## Install dependencies
1111
@test -e node_modules || yarn install
12-
@which serverless || yarn add serverless
1312
@which localstack || pip install localstack
1413
@which awslocal || pip install awscli-local
1514
@test -e .venv || (python3 -m venv .venv; source .venv/bin/activate; pip install -r requirements.txt)

logs.txt

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
LocalStack version: 3.4.1.dev20240527112845
3+
LocalStack Docker container name: localstack-main
4+
LocalStack Docker container id: e0d4b7d8993b
5+
LocalStack Docker image sha: sha256:f13d78699c56db84226fb985e8dffaebba53b4c52845c9f6966a14fdd5b91440
6+
LocalStack build date: 2024-05-27
7+
LocalStack build git hash: bc86545
8+
9+
2024-06-03T10:19:46.086 INFO --- [ MainThread] l.bootstrap.licensingv2 : Successfully activated cached license 7be9586b-dc9b-40a2-9e93-e374ccc61ad4:enterprise from /etc/localstack/conf.d/license.json 🔑✅
10+
2024-06-03T10:19:47.255 INFO --- [ MainThread] l.extensions.platform : loaded 1 extensions
11+
Ready.
12+
2024-06-03T10:19:48.154 INFO --- [et.reactor-0] l.services.s3.v3.provider : Using /tmp/localstack/state/s3 as storage path for s3 assets
13+
2024-06-03T10:19:48.377 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.CreateBucket => 200
14+
2024-06-03T10:19:51.205 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.HeadBucket => 200
15+
2024-06-03T10:19:51.212 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketVersioning => 200
16+
2024-06-03T10:19:51.254 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketAccelerateConfiguration => 200
17+
2024-06-03T10:19:51.263 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketTagging => 404 (NoSuchTagSet)
18+
2024-06-03T10:19:51.269 INFO --- [et.reactor-0] localstack.request.aws : AWS sts.GetCallerIdentity => 200
19+
2024-06-03T10:19:51.271 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetPublicAccessBlock => 200
20+
2024-06-03T10:19:51.275 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.DeletePublicAccessBlock => 204
21+
2024-06-03T10:19:51.280 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketLogging => 200
22+
2024-06-03T10:19:51.311 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.HeadBucket => 200
23+
2024-06-03T10:19:51.315 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketVersioning => 200
24+
2024-06-03T10:19:51.319 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetBucketAccelerateConfiguration => 200
25+
2024-06-03T10:19:51.323 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketTagging => 404 (NoSuchTagSet)
26+
2024-06-03T10:19:51.327 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetPublicAccessBlock => 404 (NoSuchPublicAccessBlockConfiguration)
27+
2024-06-03T10:19:51.331 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketLogging => 200
28+
2024-06-03T10:19:51.940 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 593.93ms
29+
2024-06-03T10:19:51.940 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "require" took 594.06ms
30+
2024-06-03T10:19:52.005 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStacks => 400 (ValidationError)
31+
2024-06-03T10:19:52.015 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.GetBucketLocation => 200
32+
2024-06-03T10:19:52.021 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.ListObjectsV2 => 200
33+
2024-06-03T10:19:52.032 INFO --- [et.reactor-0] localstack.request.aws : AWS s3.PutObject => 200
34+
2024-06-03T10:19:52.038 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.PutObject => 200
35+
2024-06-03T10:19:52.046 INFO --- [et.reactor-1] localstack.request.aws : AWS s3.GetObject => 200
36+
2024-06-03T10:19:52.049 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.CreateChangeSet => 200
37+
2024-06-03T10:19:52.055 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeChangeSet => 200
38+
2024-06-03T10:19:52.062 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.ExecuteChangeSet => 200
39+
2024-06-03T10:19:53.860 INFO --- [et.reactor-0] localstack.utils.bootstrap : Execution of "require" took 1514.23ms
40+
2024-06-03T10:19:55.249 INFO --- [et.reactor-0] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 561.84ms
41+
2024-06-03T10:19:55.249 INFO --- [et.reactor-0] localstack.utils.bootstrap : Execution of "require" took 562.01ms
42+
2024-06-03T10:19:55.356 INFO --- [ Thread-7] l.utils.postgresql : Starting PostgreSQL query listener/rewriter on port 4510->44419
43+
2024-06-03T10:19:56.359 WARN --- [-functhread9] l.packages.core : postgresql will be installed as an OS package, even though install target is _not_ set to be static.
44+
2024-06-03T10:19:57.069 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
45+
2024-06-03T10:20:02.079 INFO --- [et.reactor-2] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
46+
2024-06-03T10:20:05.115 INFO --- [-functhread9] l.s.rds.engine_postgres : Starting RDS server on port 4510 (backend port 44419) - database "testappsync", user "testuser" - data dir /var/lib/localstack/tmp/rds/postgres/000000000000/cluster/000000000000/us-east-1/c1
47+
2024-06-03T10:20:07.098 INFO --- [et.reactor-2] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
48+
2024-06-03T10:20:12.116 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
49+
2024-06-03T10:20:13.547 INFO --- [et.reactor-1] l.utils.websockets : Starting websocket server on port 4511
50+
2024-06-03T10:20:13.571 INFO --- [functhread10] websockets.server : server listening on 0.0.0.0:4511
51+
2024-06-03T10:20:14.077 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "_load_service_plugin" took 1549.30ms
52+
2024-06-03T10:20:14.078 INFO --- [et.reactor-1] localstack.utils.bootstrap : Execution of "require" took 1550.11ms
53+
2024-06-03T10:20:14.205 WARN --- [et.reactor-0] l.s.a.graphql_executor : Expected single key 'addPostDDB' in directives, got: {'addPostDDB': {}, 'id': {}}
54+
2024-06-03T10:20:14.205 WARN --- [et.reactor-0] l.s.a.graphql_executor : Expected single key 'addPostRDS' in directives, got: {'addPostRDS': {}, 'id': {}}
55+
2024-06-03T10:20:17.153 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStackEvents => 200
56+
2024-06-03T10:20:17.170 INFO --- [et.reactor-2] localstack.request.aws : AWS cloudformation.DescribeStacks => 200
57+
2024-06-03T10:20:17.184 INFO --- [et.reactor-0] localstack.request.aws : AWS cloudformation.ListStackResources => 200
58+
2024-06-03T10:20:17.199 INFO --- [et.reactor-1] localstack.request.aws : AWS cloudformation.DescribeStacks => 200
59+
2024-06-03T10:20:17.216 INFO --- [et.reactor-2] localstack.request.aws : AWS s3.ListObjectsV2 => 200
60+
2024-06-03T10:20:18.599 INFO --- [et.reactor-0] localstack.request.aws : AWS appsync.ListGraphqlApis => 200
61+
2024-06-03T10:20:18.934 INFO --- [et.reactor-1] localstack.request.aws : AWS appsync.CreateApiKey => 404 (NotFoundException)
62+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"license": "Apache-2.0",
44
"repository": "https://github.com/localstack/appsync-graphql-api-sample",
55
"devDependencies": {
6-
"serverless": "^2.0.0",
7-
"serverless-localstack": "^1.0.5",
6+
"serverless": "^3.0.0",
7+
"serverless-localstack": "^1.2.0",
88
"serverless-appsync-plugin": "1.1.2",
99
"serverless-deployment-bucket": "^1.1.0"
1010
},

run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/bin/bash
2+
set -e
23

4+
# Set the AppSync URL to the local endpoint
35
APPSYNC_URL=http://localhost:4566/graphql
46

7+
# Create a new S3 bucket
8+
awslocal s3 mb s3://testbucket
9+
10+
# Deploy the Serverless app to the local environment and run the tests
511
echo "Deploying Serverless app to local environment"; \
612
SLS_DEBUG=1 yarn deploy && \
713
echo "Serverless app successfully deployed." && \

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ service: test-appsync
22

33
provider:
44
name: aws
5-
runtime: nodejs12.x
5+
runtime: nodejs18.x
66
deploymentBucket:
77
name: testbucket
88

0 commit comments

Comments
 (0)