Skip to content

Commit 38fc5d1

Browse files
committed
ci: Use zip deploy for http and monitor lambdas
1 parent 45c1741 commit 38fc5d1

File tree

261 files changed

+3294
-2503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+3294
-2503
lines changed

.codecatalyst/workflows/[push(b:main)][schedule(0_0_*_*_?_*)]CI.yml

Lines changed: 305 additions & 193 deletions
Large diffs are not rendered by default.

.depcheckrc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
ignores:
22
- "@levicape/*"
3-
- "tsx"
4-
- "nx"
5-
- "@bufbuild/protobuf"
6-
- "ts-proto"
3+
- "@bufbuild/*"
4+
- "aws4fetch"
75
- "aws-lambda-ric"
6+
- "better-sqlite3"
7+
- "expect"
8+
- "jsonc-parser"
89
- "knex"
9-
- "better-sqlite3"
10+
- "nx"
11+
- "tslib"
12+
- "tsx"
13+
- "ts-proto"

.github/workflows/[release(released)]Publish tagged module to npm.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########################################
22
# THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT MODIFY
33
########################################
4-
name: "on Release: [released] Publish @levicape/(greathall-server, greathall-acolyte, protobuf-greathall-qureau) to Github"
4+
name: "on Release: [released] Publish @levicape/(greathall-qureau-io, greathall-adept-ui, protobuf-greathall-qureau) to Github"
55
on:
66
release:
77
types:
@@ -10,15 +10,15 @@ env:
1010
NPM_REGISTRY_PROTOCOL: https
1111
NPM_REGISTRY_HOST: npm.pkg.github.com
1212
jobs:
13-
publish_greathall-server:
14-
name: "@levicape/greathall-server: Compile and publish to Github"
13+
publish_greathall-qureau-io:
14+
name: "@levicape/greathall-qureau-io: Compile and publish to Github"
1515
runs-on: ubuntu-latest
1616
permissions:
1717
packages: write
1818
contents: read
1919
defaults:
2020
run:
21-
working-directory: packages/server
21+
working-directory: packages/qureau-io
2222
steps:
2323
- name: Verify registry URL
2424
continue-on-error: true
@@ -81,8 +81,8 @@ jobs:
8181
name: Publish to npm
8282
continue-on-error: true
8383
run: pnpm publish --no-git-checks;
84-
publish_greathall-acolyte:
85-
name: "@levicape/greathall-acolyte: Compile and publish to Github"
84+
publish_greathall-adept-ui:
85+
name: "@levicape/greathall-adept-ui: Compile and publish to Github"
8686
runs-on: ubuntu-latest
8787
permissions:
8888
packages: write
@@ -228,7 +228,7 @@ jobs:
228228
########################################
229229
#**:_$~- {"$$":"head","filename":"[release(released)]Publish tagged module to npm.yml","source":"iac/workflows/github/release/Publish tagged module to npm.js"}
230230
#**:_$~- {"$$":"script","generator":"codegen/github/GenerateGithubWorkflow.mjs"}
231-
#**:_$~- {"$$":"body","hashed":"8bceb8a6c8a49376615d88bb77110a51b103eba7465ee5cd5e3f57a13e1cc579"}
232-
#**:_$~- {"$$":"footer","started":"2025-01-20T20:25:45.765Z","now":"2025-01-20T20:25:45.775Z","elapsed":"10ms"}
231+
#**:_$~- {"$$":"body","hashed":"eb680fe92c00906e9797a0dbd91a64f9811b0849ddd0e3d9bb0962d66c164d20"}
232+
#**:_$~- {"$$":"footer","started":"2025-01-27T07:35:51.625Z","now":"2025-01-27T07:35:51.631Z","elapsed":"6ms"}
233233
# END OF GENERATED FILE
234234

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,7 @@ _protocols
185185
_models
186186

187187
.nx/cache
188-
.nx/workspace-data
188+
.nx/workspace-data
189+
schema/qureau/package.json
190+
schema/qureau/sql/1725858122000._entity_tables.sql
191+
schema/qureau/src/postgres.ts

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.11.6

Procfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cli: pnpm run dx:cli:mjs
2+
cli-fourtwo: pnpm exec fourtwo
3+
cli-paloma: pnpm run paloma
4+
cli-spork: pnpm run dx:cli:mjs
5+
deploy: pnpm --filter $DEPLOY_FILTER --prod --node-linker=hoisted deploy $DEPLOY_OUTPUT || true; ls -la $DEPLOY_OUTPUT || true; echo 'rebuilding $DEPLOY_FILTER'; pnpm -c $DEPLOY_OUTPUT rebuild || true; echo 'procfile deploy to $DEPLOY_OUTPUT complete'; sleep 1200s
6+
project: pnpm run -C $PROJECT_PATH
27
test: pnpm run test
3-
qureauhttp: pnpm run -C packages/server lambda:http
4-
qureaucanaryregister: pnpm run -C canary/qureau lambda:canary:register
8+
wait: sleep 1200s

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"**/module",
66
"**/node_modules",
77
"**/module",
8+
"**/output",
9+
"**/gen",
10+
"**/_protocols",
811
"package.json",
912
"package-lock.json",
1013
"**/package.json",

canary/qureau/biome.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"files": {
3-
"ignore": ["src/_protocols/**/*"]
4-
},
5-
"linter": {
6-
"rules": {
7-
"complexity": {
8-
"noForEach": "off"
9-
},
10-
"style": {
11-
"noUnusedTemplateLiteral": "off"
12-
}
13-
}
14-
}
15-
}
2+
"files": {
3+
"ignore": ["src/_protocols/**/*"]
4+
},
5+
"linter": {
6+
"rules": {
7+
"complexity": {
8+
"noForEach": "off"
9+
},
10+
"style": {
11+
"noUnusedTemplateLiteral": "off"
12+
}
13+
}
14+
}
15+
}

canary/qureau/package.json

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"name": "@levicape/greathall-server-canary",
2+
"name": "@levicape/greathall-qureau-io-canary",
33
"version": "0.0.0-local-0",
44
"config": {
55
"packagemanager": "pnpm",
66
"packageexecutor": "pnpm exec",
7-
"outpath": "./module",
87
"lintpaths": "./src",
8+
"outpaths": "./module",
99
"protocols": "./src/_protocols",
1010
"canaryregister": "./module/canary/Register"
1111
},
1212
"dependencies": {
1313
"@bufbuild/protobuf": "catalog:protobuf",
1414
"@levicape/paloma": "catalog:",
1515
"@levicape/spork": "catalog:",
16-
"aws-lambda-ric": "catalog:aws",
1716
"expect": "catalog:test",
18-
"knex": "catalog:database",
17+
"knex": "catalog:database-sql",
1918
"ksuid": "catalog:id",
2019
"ts-proto": "catalog:protobuf",
2120
"zod": "catalog:core"
2221
},
2322
"devDependencies": {
2423
"@biomejs/biome": "catalog:lint",
24+
"@bufbuild/buf": "catalog:protobuf",
2525
"@types/node": "catalog:types",
2626
"publint": "catalog:package",
2727
"syncpack": "catalog:package",
@@ -35,15 +35,33 @@
3535
],
3636
"nx": {
3737
"targets": {
38+
"build:module": {
39+
"dependsOn": [
40+
"build:tsc"
41+
]
42+
},
3843
"build:tsc": {
3944
"dependsOn": [
4045
"generate:protocols"
4146
]
4247
},
4348
"dx:precommit": {
4449
"dependsOn": [
45-
"@levicape/greathall-server-canary:dx:prepublish",
46-
"nx:test"
50+
"dx:prepublish",
51+
"dx:test"
52+
]
53+
},
54+
"dx:prepublish": {
55+
"dependsOn": [
56+
"dx:prepublish:pre",
57+
"dx:lint"
58+
]
59+
},
60+
"dx:lint": {
61+
"dependsOn": [
62+
"nx:compile",
63+
"lint:format",
64+
"package:format"
4765
]
4866
},
4967
"dx:test": {
@@ -52,9 +70,14 @@
5270
"nx:test"
5371
]
5472
},
73+
"nx:clean": {
74+
"dependsOn": [
75+
"clean:module"
76+
]
77+
},
5578
"nx:compile": {
5679
"dependsOn": [
57-
"build:tsc"
80+
"build:module"
5881
]
5982
},
6083
"nx:test": {
@@ -70,19 +93,19 @@
7093
},
7194
"repository": "github:levicape/great-hall",
7295
"scripts": {
73-
"build": "NODE_NO_WARNINGS=1 NPM_CONFIG_UPDATE_NOTIFIER=false $npm_package_config_packageexecutor nx nx:compile",
74-
"build:tsc": "NODE_NO_WARNINGS=1 NPM_CONFIG_UPDATE_NOTIFIER=false $npm_package_config_packageexecutor tsc",
75-
"clean": "rm -rf $npm_package_config_outpath || true",
76-
"commit": "$npm_package_config_packageexecutor nx dx:precommit --no-cloud --verbose",
96+
"build": "$npm_package_config_packageexecutor nx nx:compile",
97+
"build:tsc": "$npm_package_config_packageexecutor tsc",
98+
"canary:harness": "node $npm_package_config_canaryharness",
99+
"canary:server": "nohup node $npm_package_config_canaryserverhttp & node $npm_package_config_canaryserver",
100+
"clean": "$npm_package_config_packageexecutor nx nx:clean",
101+
"clean:module": "rm -rf $npm_package_config_outpaths || true",
77102
"dx:config:post": "$npm_package_config_packagemanager config set recursive-install true",
78103
"dx:config:pre": "$npm_package_config_packagemanager config set recursive-install false",
79-
"dx:lint": "$npm_package_config_packageexecutor nx nx:compile && $npm_package_config_packageexecutor nx lint:format && $npm_package_config_packageexecutor nx package:format",
80104
"dx:precommit": "$npm_package_config_packageexecutor nx dx:precommit:pre && $npm_package_config_packageexecutor nx package:deps",
81105
"dx:precommit:pre": "echo \"Starting precommit dx. This will check package.json dependencies.\"",
82-
"dx:prepublish": "$npm_package_config_packageexecutor nx dx:prepublish:pre && $npm_package_config_packageexecutor nx dx:lint && $npm_package_config_packageexecutor nx prepublish",
106+
"dx:prepublish": "$npm_package_config_packageexecutor nx prepublish",
83107
"dx:prepublish:pre": "echo \"Starting prepublish dx. This will compile the package, lint it, format package.json and verify all exports are valid. \"",
84108
"generate:protocols": "NODE_NO_WARNINGS=1 NPM_CONFIG_UPDATE_NOTIFIER=false $npm_package_config_packageexecutor spork code gen --root \"../../protocols\" --command \"$(which $npm_package_config_packagemanager) --silent run build\" --artifact gen --destination $npm_package_config_protocols --clean",
85-
"lambda:canary:register": "$npm_package_config_packageexecutor aws-lambda-ric $npm_package_config_canaryregister.LambdaHandler",
86109
"lint": "$npm_package_config_packageexecutor nx exec -- biome check $npm_package_config_lintpaths",
87110
"lint:format": "$npm_package_config_packageexecutor nx exec -- biome check --write $npm_package_config_lintpaths",
88111
"lint:unsafe": "$npm_package_config_packageexecutor nx exec -- biome check --write --unsafe $npm_package_config_lintpaths",
@@ -91,6 +114,7 @@
91114
"package:format": "$npm_package_config_packageexecutor nx exec -- syncpack format",
92115
"package:update": "$npm_package_config_packageexecutor nx exec -- syncpack update",
93116
"precommit": "$npm_package_config_packageexecutor nx dx:prepublish --no-cloud --verbose",
117+
"predx:lint": "$npm_package_config_packageexecutor nx clean",
94118
"prelint": "$npm_package_config_packageexecutor nx exec -- biome format $npm_package_config_lintpaths",
95119
"prepublish": "$npm_package_config_packageexecutor publint --strict",
96120
"start:canary:register": "node $npm_package_config_canaryregister.mjs",

0 commit comments

Comments
 (0)