skuba 4.2.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest-preset.js +5 -1
- package/lib/api/git/index.d.ts +1 -0
- package/lib/api/git/index.js +3 -1
- package/lib/api/git/index.js.map +1 -1
- package/lib/api/git/pull.d.ts +35 -0
- package/lib/api/git/pull.js +34 -0
- package/lib/api/git/pull.js.map +1 -0
- package/lib/api/github/index.d.ts +1 -0
- package/lib/api/github/index.js +5 -1
- package/lib/api/github/index.js.map +1 -1
- package/lib/api/github/push.d.ts +73 -0
- package/lib/api/github/push.js +148 -0
- package/lib/api/github/push.js.map +1 -0
- package/lib/api/jest/index.d.ts +1 -1
- package/lib/cli/configure/analyseDependencies.js +1 -2
- package/lib/cli/configure/analyseDependencies.js.map +1 -1
- package/lib/cli/configure/analysis/diff.d.ts +1 -1
- package/lib/cli/configure/analysis/package.d.ts +1 -1
- package/lib/cli/configure/processing/ignoreFile.d.ts +1 -1
- package/lib/cli/configure/processing/javascript.d.ts +1 -1
- package/lib/cli/configure/processing/json.d.ts +1 -1
- package/lib/cli/configure/processing/package.d.ts +12 -12
- package/lib/cli/lint/autofix.js +24 -13
- package/lib/cli/lint/autofix.js.map +1 -1
- package/lib/cli/lint/external.d.ts +1 -0
- package/lib/cli/test/reporters/github/annotations.js +19 -7
- package/lib/cli/test/reporters/github/annotations.js.map +1 -1
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +11 -3
- package/lib/utils/version.js.map +1 -1
- package/lib/wrapper/http.d.ts +1 -1
- package/package.json +15 -12
- package/template/express-rest-api/.buildkite/pipeline.yml +3 -3
- package/template/express-rest-api/Dockerfile +1 -1
- package/template/express-rest-api/Dockerfile.dev-deps +1 -1
- package/template/express-rest-api/README.md +11 -10
- package/template/express-rest-api/gantry.apply.yml +2 -0
- package/template/express-rest-api/gantry.build.yml +2 -0
- package/template/express-rest-api/package.json +1 -1
- package/template/greeter/Dockerfile +1 -1
- package/template/greeter/README.md +11 -10
- package/template/koa-rest-api/.buildkite/pipeline.yml +3 -3
- package/template/koa-rest-api/Dockerfile +1 -1
- package/template/koa-rest-api/Dockerfile.dev-deps +1 -1
- package/template/koa-rest-api/README.md +11 -10
- package/template/koa-rest-api/gantry.apply.yml +2 -0
- package/template/koa-rest-api/gantry.build.yml +2 -0
- package/template/koa-rest-api/package.json +5 -5
- package/template/lambda-sqs-worker/Dockerfile +1 -1
- package/template/lambda-sqs-worker/README.md +11 -10
- package/template/lambda-sqs-worker/package.json +1 -1
- package/template/lambda-sqs-worker/src/framework/logging.ts +1 -1
- package/template/lambda-sqs-worker-cdk/Dockerfile +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +6 -0
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -0
- package/template/oss-npm-package/README.md +4 -7
- package/template/private-npm-package/README.md +4 -7
- package/template/express-rest-api/.me +0 -22
- package/template/greeter/.me +0 -20
- package/template/koa-rest-api/.me +0 -22
- package/template/lambda-sqs-worker/.me +0 -22
- package/template/lambda-sqs-worker-cdk/.me +0 -22
- package/template/oss-npm-package/.me +0 -21
- package/template/private-npm-package/.me +0 -21
|
@@ -21,13 +21,25 @@ const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
|
21
21
|
* ...
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
|
+
* or:
|
|
25
|
+
*
|
|
26
|
+
* ```console
|
|
27
|
+
* Error: expect(received).toBe(expected) // Object.is equality
|
|
28
|
+
*
|
|
29
|
+
* Expected: "a"
|
|
30
|
+
* Received: "b"
|
|
31
|
+
* at /workdir/skuba/src/test.test.ts:2:15
|
|
32
|
+
* at Promise.then.completed (/workdir/skuba/node_modules/jest-circus/build/utils.js:390:28)
|
|
33
|
+
* ...
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
24
36
|
* This pattern will produce the following matches:
|
|
25
37
|
*
|
|
26
38
|
* 1. /workdir/skuba/src/test.test.ts
|
|
27
39
|
* 2. 2
|
|
28
40
|
* 2. 15
|
|
29
41
|
*/
|
|
30
|
-
const JEST_LOCATION_REGEX = /\((.+?):(\d+):(\d+)
|
|
42
|
+
const JEST_LOCATION_REGEX = /\n +at (.+\()?(.+?):(\d+):(\d+)/;
|
|
31
43
|
const createAnnotations = (testResults) => {
|
|
32
44
|
const cwd = process.cwd();
|
|
33
45
|
return testResults.flatMap((testResult) => {
|
|
@@ -44,14 +56,14 @@ const createAnnotations = (testResults) => {
|
|
|
44
56
|
if (testResult.numFailingTests > 0) {
|
|
45
57
|
return testResult.testResults.flatMap((assertionResult) => assertionResult.failureMessages.flatMap((failureMessage) => {
|
|
46
58
|
const match = JEST_LOCATION_REGEX.exec(failureMessage);
|
|
47
|
-
if (match?.length ===
|
|
59
|
+
if (match?.length === 5) {
|
|
48
60
|
return {
|
|
49
61
|
annotation_level: 'failure',
|
|
50
|
-
path: path_1.default.relative(cwd, match[
|
|
51
|
-
start_line: Number(match[
|
|
52
|
-
end_line: Number(match[
|
|
53
|
-
start_column: Number(match[
|
|
54
|
-
end_column: Number(match[
|
|
62
|
+
path: path_1.default.relative(cwd, match[2]),
|
|
63
|
+
start_line: Number(match[3]),
|
|
64
|
+
end_line: Number(match[3]),
|
|
65
|
+
start_column: Number(match[4]),
|
|
66
|
+
end_column: Number(match[4]),
|
|
55
67
|
message: (0, strip_ansi_1.default)(failureMessage),
|
|
56
68
|
title: 'Jest',
|
|
57
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../../../src/cli/test/reporters/github/annotations.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAGxB,4DAAmC;AAInC
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../../../src/cli/test/reporters/github/annotations.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAGxB,4DAAmC;AA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A,yBAAyB,6BA6BpC"}
|
package/lib/utils/error.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const ConcurrentlyErrors: t.Array<t.Record<{
|
|
|
19
19
|
*
|
|
20
20
|
* https://nodejs.org/api/util.html#custom-inspection-functions-on-objects
|
|
21
21
|
*/
|
|
22
|
-
export declare const createTerseError: (message?: string
|
|
22
|
+
export declare const createTerseError: (message?: string) => Error & {
|
|
23
23
|
[inspect.custom]: () => string | undefined;
|
|
24
24
|
};
|
|
25
25
|
export declare const handleCliError: (err: unknown) => void;
|
package/lib/utils/version.d.ts
CHANGED
package/lib/utils/version.js
CHANGED
|
@@ -3,13 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSkubaVersionInfo = exports.getSkubaVersion = void 0;
|
|
7
|
-
const
|
|
6
|
+
exports.getSkubaVersionInfo = exports.getSkubaVersion = exports.latestNpmVersion = void 0;
|
|
7
|
+
const package_json_1 = __importDefault(require("package-json"));
|
|
8
8
|
const manifest_1 = require("./manifest");
|
|
9
9
|
const wait_1 = require("./wait");
|
|
10
|
+
const latestNpmVersion = async (packageName) => {
|
|
11
|
+
const { version } = await (0, package_json_1.default)(packageName);
|
|
12
|
+
if (typeof version !== 'string') {
|
|
13
|
+
throw new Error(`No version found for package "${packageName}"`);
|
|
14
|
+
}
|
|
15
|
+
return version;
|
|
16
|
+
};
|
|
17
|
+
exports.latestNpmVersion = latestNpmVersion;
|
|
10
18
|
const latestSkubaVersion = async () => {
|
|
11
19
|
try {
|
|
12
|
-
const result = await (0, wait_1.withTimeout)((0,
|
|
20
|
+
const result = await (0, wait_1.withTimeout)((0, exports.latestNpmVersion)('skuba'), { s: 2 });
|
|
13
21
|
return result.ok ? result.value : null;
|
|
14
22
|
}
|
|
15
23
|
catch {
|
package/lib/utils/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAuC;AAEvC,yCAA8C;AAC9C,iCAAqC;AAE9B,MAAM,gBAAgB,GAAG,KAAK,EACnC,WAAmB,EACF,EAAE;IACnB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,sBAAW,EAAC,WAAW,CAAC,CAAC;IAEnD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,iCAAiC,WAAW,GAAG,CAAC,CAAC;KAClE;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAVW,QAAA,gBAAgB,oBAU3B;AAEF,MAAM,kBAAkB,GAAG,KAAK,IAA4B,EAAE;IAC5D,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAW,EAAC,IAAA,wBAAgB,EAAC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAEtE,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;KACxC;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEK,MAAM,eAAe,GAAG,KAAK,IAAqB,EAAE;IACzD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,2BAAgB,GAAE,CAAC;IAE7C,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B;AAgBK,MAAM,mBAAmB,GAAG,KAAK,IAA+B,EAAE;IACvE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxC,IAAA,uBAAe,GAAE;QACjB,kBAAkB,EAAE;KACrB,CAAC,CAAC;IAEH,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,6DAA6D;QAC7D,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK;YACL,MAAM;SACP,CAAC;KACH;IAED,OAAO;QACL,OAAO,EAAE,MAAM,KAAK,KAAK;QACzB,KAAK;QACL,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,mBAAmB,uBAoB9B"}
|
package/lib/wrapper/http.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export declare const createRequestListenerFromFunction: (fn: (...args: unknown[]
|
|
|
11
11
|
*
|
|
12
12
|
* This function resolves when the server is closed.
|
|
13
13
|
*/
|
|
14
|
-
export declare const serveRequestListener: (requestListener: http.RequestListener, port?: number
|
|
14
|
+
export declare const serveRequestListener: (requestListener: http.RequestListener, port?: number) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
"url": "https://github.com/seek-oss/skuba/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
+
"@octokit/graphql": "^4.8.0",
|
|
10
|
+
"@octokit/graphql-schema": "^10.73.0",
|
|
9
11
|
"@octokit/rest": "^18.12.0",
|
|
10
12
|
"@octokit/types": "^6.34.0",
|
|
11
|
-
"@types/jest": "^
|
|
13
|
+
"@types/jest": "^28.0.0",
|
|
12
14
|
"@types/node": ">=14.18",
|
|
13
15
|
"chalk": "^4.1.0",
|
|
14
16
|
"concurrently": "^7.0.0",
|
|
@@ -16,7 +18,7 @@
|
|
|
16
18
|
"ejs": "^3.1.6",
|
|
17
19
|
"enquirer": "^2.3.6",
|
|
18
20
|
"eslint": "^8.11.0",
|
|
19
|
-
"eslint-config-skuba": "1.1.
|
|
21
|
+
"eslint-config-skuba": "1.1.1",
|
|
20
22
|
"execa": "^5.0.0",
|
|
21
23
|
"fdir": "^5.0.0",
|
|
22
24
|
"fs-extra": "^10.0.0",
|
|
@@ -26,13 +28,14 @@
|
|
|
26
28
|
"is-installed-globally": "^0.4.0",
|
|
27
29
|
"isomorphic-git": "^1.11.1",
|
|
28
30
|
"jest": "^28.1.0",
|
|
29
|
-
"
|
|
31
|
+
"jest-watch-typeahead": "^1.1.0",
|
|
30
32
|
"lodash.mergewith": "^4.6.2",
|
|
31
33
|
"normalize-package-data": "^4.0.0",
|
|
32
34
|
"npm-run-path": "^4.0.1",
|
|
33
35
|
"npm-which": "^3.0.1",
|
|
36
|
+
"package-json": "^7.0.0",
|
|
34
37
|
"picomatch": "^2.2.2",
|
|
35
|
-
"prettier": "~2.
|
|
38
|
+
"prettier": "~2.7.0",
|
|
36
39
|
"read-pkg-up": "^7.0.1",
|
|
37
40
|
"runtypes": "^6.0.0",
|
|
38
41
|
"semantic-release": "^19.0.0",
|
|
@@ -41,16 +44,16 @@
|
|
|
41
44
|
"strip-ansi": "^6.0.1",
|
|
42
45
|
"ts-jest": "^28.0.2",
|
|
43
46
|
"ts-node": "^10.7.0",
|
|
44
|
-
"ts-node-dev": "^2.0.0
|
|
47
|
+
"ts-node-dev": "^2.0.0",
|
|
45
48
|
"tsconfig-paths": "^4.0.0",
|
|
46
49
|
"tsconfig-seek": "1.0.2",
|
|
47
|
-
"typescript": "~4.
|
|
50
|
+
"typescript": "~4.7.0"
|
|
48
51
|
},
|
|
49
52
|
"description": "SEEK development toolkit for backend applications and packages",
|
|
50
53
|
"devDependencies": {
|
|
51
|
-
"@changesets/cli": "2.
|
|
52
|
-
"@changesets/get-github-info": "0.5.
|
|
53
|
-
"@jest/reporters": "28.1.
|
|
54
|
+
"@changesets/cli": "2.23.0",
|
|
55
|
+
"@changesets/get-github-info": "0.5.1",
|
|
56
|
+
"@jest/reporters": "28.1.1",
|
|
54
57
|
"@types/ejs": "3.1.1",
|
|
55
58
|
"@types/express": "4.17.13",
|
|
56
59
|
"@types/fs-extra": "9.0.13",
|
|
@@ -64,10 +67,10 @@
|
|
|
64
67
|
"express": "4.18.1",
|
|
65
68
|
"jsonfile": "6.1.0",
|
|
66
69
|
"koa": "2.13.4",
|
|
67
|
-
"memfs": "3.4.
|
|
70
|
+
"memfs": "3.4.6",
|
|
68
71
|
"semver": "7.3.7",
|
|
69
72
|
"supertest": "6.2.3",
|
|
70
|
-
"type-fest": "2.
|
|
73
|
+
"type-fest": "2.13.1"
|
|
71
74
|
},
|
|
72
75
|
"engines": {
|
|
73
76
|
"node": ">=14.18"
|
|
@@ -123,5 +126,5 @@
|
|
|
123
126
|
"version": "4.0.0"
|
|
124
127
|
},
|
|
125
128
|
"types": "./lib/index.d.ts",
|
|
126
|
-
"version": "4.
|
|
129
|
+
"version": "4.3.0"
|
|
127
130
|
}
|
|
@@ -61,7 +61,7 @@ steps:
|
|
|
61
61
|
- *aws-sm
|
|
62
62
|
- *private-npm
|
|
63
63
|
- *docker-ecr-cache
|
|
64
|
-
- seek-jobs/gantry#v1.
|
|
64
|
+
- seek-jobs/gantry#v1.8.1:
|
|
65
65
|
command: build
|
|
66
66
|
file: gantry.build.yml
|
|
67
67
|
region: <%- region %>
|
|
@@ -78,7 +78,7 @@ steps:
|
|
|
78
78
|
concurrency_group: <%- teamName %>/deploy/gantry/<%- devGantryEnvironmentName %>
|
|
79
79
|
key: deploy-dev
|
|
80
80
|
plugins:
|
|
81
|
-
- seek-jobs/gantry#v1.
|
|
81
|
+
- seek-jobs/gantry#v1.8.1:
|
|
82
82
|
command: apply
|
|
83
83
|
environment: <%- devGantryEnvironmentName %>
|
|
84
84
|
file: gantry.apply.yml
|
|
@@ -93,7 +93,7 @@ steps:
|
|
|
93
93
|
concurrency_group: <%- teamName %>/deploy/gantry/<%- prodGantryEnvironmentName %>
|
|
94
94
|
depends_on: deploy-dev
|
|
95
95
|
plugins:
|
|
96
|
-
- seek-jobs/gantry#v1.
|
|
96
|
+
- seek-jobs/gantry#v1.8.1:
|
|
97
97
|
command: apply
|
|
98
98
|
environment: <%- prodGantryEnvironmentName %>
|
|
99
99
|
file: gantry.apply.yml
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add Datadog configuration and data classification tags to [.gantry/common.yml](.gantry/common.yml);
|
|
19
19
|
see the [Gantry] documentation for more information.
|
|
20
20
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
@@ -23,6 +23,12 @@ Next steps:
|
|
|
23
23
|
request installation in [SEEK-Jobs/renovate].
|
|
24
24
|
9. [ ] Delete this checklist 😌.
|
|
25
25
|
|
|
26
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
27
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
28
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
29
|
+
[renovate]: https://github.com/apps/renovate
|
|
30
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
31
|
+
|
|
26
32
|
## Design
|
|
27
33
|
|
|
28
34
|
<%-repoName %> is a Node.js HTTP server built in line with our [technology strategy].
|
|
@@ -101,12 +107,7 @@ TODO: add support links for the prod environment.
|
|
|
101
107
|
- Splunk logs
|
|
102
108
|
-->
|
|
103
109
|
|
|
104
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
105
110
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
106
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
107
111
|
[express]: https://expressjs.com
|
|
108
112
|
[gantry]: https://gantry.ssod.skinfra.xyz
|
|
109
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
110
|
-
[renovate]: https://github.com/apps/renovate
|
|
111
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
112
113
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -4,23 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Push local commits to the upstream GitHub branch.
|
|
19
19
|
6. [ ] Configure [GitHub repository settings].
|
|
20
20
|
7. [ ] Keep dependencies up to date with [Renovate];
|
|
21
21
|
request installation in [SEEK-Jobs/renovate].
|
|
22
22
|
8. [ ] Delete this checklist 😌.
|
|
23
23
|
|
|
24
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
25
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
26
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
27
|
+
[renovate]: https://github.com/apps/renovate
|
|
28
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
29
|
+
|
|
24
30
|
## Design
|
|
25
31
|
|
|
26
32
|
The `greeter` template is the prototypical _hello world_ project.
|
|
@@ -94,9 +100,4 @@ TODO: add support links for the prod environment.
|
|
|
94
100
|
- Splunk logs
|
|
95
101
|
-->
|
|
96
102
|
|
|
97
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
98
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
99
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
100
|
-
[renovate]: https://github.com/apps/renovate
|
|
101
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
102
103
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -61,7 +61,7 @@ steps:
|
|
|
61
61
|
- *aws-sm
|
|
62
62
|
- *private-npm
|
|
63
63
|
- *docker-ecr-cache
|
|
64
|
-
- seek-jobs/gantry#v1.
|
|
64
|
+
- seek-jobs/gantry#v1.8.1:
|
|
65
65
|
command: build
|
|
66
66
|
file: gantry.build.yml
|
|
67
67
|
region: <%- region %>
|
|
@@ -78,7 +78,7 @@ steps:
|
|
|
78
78
|
concurrency_group: <%- teamName %>/deploy/gantry/<%- devGantryEnvironmentName %>
|
|
79
79
|
key: deploy-dev
|
|
80
80
|
plugins:
|
|
81
|
-
- seek-jobs/gantry#v1.
|
|
81
|
+
- seek-jobs/gantry#v1.8.1:
|
|
82
82
|
command: apply
|
|
83
83
|
environment: <%- devGantryEnvironmentName %>
|
|
84
84
|
file: gantry.apply.yml
|
|
@@ -93,7 +93,7 @@ steps:
|
|
|
93
93
|
concurrency_group: <%- teamName %>/deploy/gantry/<%- prodGantryEnvironmentName %>
|
|
94
94
|
depends_on: deploy-dev
|
|
95
95
|
plugins:
|
|
96
|
-
- seek-jobs/gantry#v1.
|
|
96
|
+
- seek-jobs/gantry#v1.8.1:
|
|
97
97
|
command: apply
|
|
98
98
|
environment: <%- prodGantryEnvironmentName %>
|
|
99
99
|
file: gantry.apply.yml
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add Datadog configuration and data classification tags to [.gantry/common.yml](.gantry/common.yml);
|
|
19
19
|
see the [Gantry] documentation for more information.
|
|
20
20
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
@@ -23,6 +23,12 @@ Next steps:
|
|
|
23
23
|
request installation in [SEEK-Jobs/renovate].
|
|
24
24
|
9. [ ] Delete this checklist 😌.
|
|
25
25
|
|
|
26
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
27
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
28
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
29
|
+
[renovate]: https://github.com/apps/renovate
|
|
30
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
31
|
+
|
|
26
32
|
## Design
|
|
27
33
|
|
|
28
34
|
<%-repoName %> is a Node.js HTTP server built in line with our [technology strategy].
|
|
@@ -106,12 +112,7 @@ TODO: add support links for the prod environment.
|
|
|
106
112
|
- Splunk logs
|
|
107
113
|
-->
|
|
108
114
|
|
|
109
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
110
115
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
111
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
112
116
|
[gantry]: https://gantry.ssod.skinfra.xyz
|
|
113
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
114
117
|
[koa]: https://koajs.com
|
|
115
|
-
[renovate]: https://github.com/apps/renovate
|
|
116
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
117
118
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"@koa/router": "^10.1.1",
|
|
4
4
|
"@opentelemetry/api": "^1.1.0",
|
|
5
5
|
"@opentelemetry/exporter-collector-grpc": "^0.25.0",
|
|
6
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
7
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
8
|
-
"@opentelemetry/sdk-node": "^0.
|
|
6
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.8.0",
|
|
7
|
+
"@opentelemetry/instrumentation-http": "^0.29.2",
|
|
8
|
+
"@opentelemetry/sdk-node": "^0.29.2",
|
|
9
9
|
"@seek/logger": "^5.0.1",
|
|
10
10
|
"aws-sdk": "^2.1039.0",
|
|
11
11
|
"hot-shots": "^9.0.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"runtypes": "^6.4.1",
|
|
16
16
|
"runtypes-filter": "^0.6.0",
|
|
17
17
|
"seek-datadog-custom-metrics": "^4.0.0",
|
|
18
|
-
"seek-koala": "^
|
|
18
|
+
"seek-koala": "^6.0.0",
|
|
19
19
|
"skuba-dive": "^2.0.0",
|
|
20
20
|
"uuid": "^8.3.2"
|
|
21
21
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/supertest": "^2.0.11",
|
|
29
29
|
"@types/uuid": "^8.3.1",
|
|
30
30
|
"chance": "^1.1.8",
|
|
31
|
-
"pino-pretty": "^
|
|
31
|
+
"pino-pretty": "^8.0.0",
|
|
32
32
|
"skuba": "*",
|
|
33
33
|
"supertest": "^6.1.6"
|
|
34
34
|
},
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Next steps:
|
|
6
6
|
|
|
7
|
-
1. [ ]
|
|
7
|
+
1. [ ] Check if your team has a Graviton-based Buildkite cluster;
|
|
8
|
+
see the [ARM64 guide] for more information.
|
|
9
|
+
2. [ ] Finish templating if this was skipped earlier:
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
yarn skuba configure
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
3. [ ] Create a new repository in the appropriate GitHub organisation.
|
|
16
|
+
4. [ ] Add the repository to BuildAgency;
|
|
15
17
|
see [Builds at SEEK] for more information.
|
|
16
|
-
4. [ ] Fill out [.me](.me) to power SEEK's system catalogue;
|
|
17
|
-
see the [Codex] documentation for more information.
|
|
18
18
|
5. [ ] Add deployment bucket configuration and data classification tags to [serverless.yml](serverless.yml).
|
|
19
19
|
6. [ ] Push local commits to the upstream GitHub branch.
|
|
20
20
|
7. [ ] Configure [GitHub repository settings].
|
|
@@ -22,6 +22,12 @@ Next steps:
|
|
|
22
22
|
request installation in [SEEK-Jobs/renovate].
|
|
23
23
|
9. [ ] Delete this checklist 😌.
|
|
24
24
|
|
|
25
|
+
[arm64]: https://seek-oss.github.io/skuba/docs/deep-dives/arm64.html
|
|
26
|
+
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
27
|
+
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
28
|
+
[renovate]: https://github.com/apps/renovate
|
|
29
|
+
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
30
|
+
|
|
25
31
|
## Design
|
|
26
32
|
|
|
27
33
|
<%-repoName %> is a Node.js [Lambda] application built in line with our [technology strategy].
|
|
@@ -127,12 +133,7 @@ TODO: add support links for the prod environment.
|
|
|
127
133
|
- Splunk logs
|
|
128
134
|
-->
|
|
129
135
|
|
|
130
|
-
[builds at seek]: https://builds-at-seek.ssod.skinfra.xyz
|
|
131
136
|
[codedeploy]: https://docs.aws.amazon.com/codedeploy
|
|
132
|
-
[codex]: https://codex.ssod.skinfra.xyz/docs
|
|
133
|
-
[github repository settings]: https://github.com/<%-orgName%>/<%-repoName%>/settings
|
|
134
137
|
[lambda]: https://docs.aws.amazon.com/lambda
|
|
135
|
-
[renovate]: https://github.com/apps/renovate
|
|
136
|
-
[seek-jobs/renovate]: https://github.com/SEEK-Jobs/renovate
|
|
137
138
|
[serverless]: https://www.serverless.com/
|
|
138
139
|
[technology strategy]: https://tech-strategy.ssod.skinfra.xyz
|
|
@@ -146,6 +146,9 @@ Object {
|
|
|
146
146
|
"workerServiceRole2130CC7F",
|
|
147
147
|
],
|
|
148
148
|
"Properties": Object {
|
|
149
|
+
"Architectures": Array [
|
|
150
|
+
"arm64",
|
|
151
|
+
],
|
|
149
152
|
"Code": Object {
|
|
150
153
|
"S3Bucket": Object {
|
|
151
154
|
"Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
|
|
@@ -502,6 +505,9 @@ Object {
|
|
|
502
505
|
"workerServiceRole2130CC7F",
|
|
503
506
|
],
|
|
504
507
|
"Properties": Object {
|
|
508
|
+
"Architectures": Array [
|
|
509
|
+
"arm64",
|
|
510
|
+
],
|
|
505
511
|
"Code": Object {
|
|
506
512
|
"S3Bucket": Object {
|
|
507
513
|
"Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
|
|
@@ -51,6 +51,7 @@ export class AppStack extends Stack {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const worker = new aws_lambda.Function(this, 'worker', {
|
|
54
|
+
architecture: aws_lambda.Architecture.ARM_64,
|
|
54
55
|
code: new aws_lambda.AssetCode('./lib'),
|
|
55
56
|
runtime: aws_lambda.Runtime.NODEJS_16_X,
|
|
56
57
|
handler: 'app.handler',
|