Merge pull request #14 from whywaita/fix/ci-check-dist

Fix CI
This commit is contained in:
Tachibana waita 2023-10-18 01:25:27 +09:00 committed by GitHub
commit d792d9b725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
147 changed files with 392134 additions and 362934 deletions

Binary file not shown.

BIN
.licenses/npm/@aws-crypto/crc32.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-crypto/util.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/client-s3.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/client-sso.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/client-sts.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/hash-node.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/lib-storage.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/md5-js.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/types.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/url-parser.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/util-waiter.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@aws-sdk/xml-builder.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@smithy/types.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@smithy/url-parser.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/@smithy/util-base64.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@smithy/util-stream.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/@smithy/util-utf8.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/bowser.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/buffer.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/entities.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/fast-xml-parser.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/inherits.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/readable-stream.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/safe-buffer.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.licenses/npm/stream-browserify.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/string_decoder.dep.yml generated Normal file

Binary file not shown.

BIN
.licenses/npm/util-deprecate.dep.yml generated Normal file

Binary file not shown.

Binary file not shown.

View File

@ -81,7 +81,9 @@ test("restore with no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -124,7 +126,9 @@ test("restore with restore keys and no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -166,7 +170,9 @@ test("restore with cache found for key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -211,7 +217,9 @@ test("restore with cache found for restore key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -256,7 +264,9 @@ test("Fail restore when fail on cache miss is enabled and primary + restore keys
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -299,7 +309,9 @@ test("restore when fail on cache miss is enabled and primary key doesn't match r
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -345,7 +357,9 @@ test("restore with fail on cache miss disabled and no cache found", async () =>
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);

View File

@ -129,7 +129,9 @@ test("restore on GHES with AC available ", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -183,7 +185,9 @@ test("restore with too many keys should fail", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledWith( expect(failedMock).toHaveBeenCalledWith(
`Key Validation Error: Keys are limited to a maximum of 10.` `Key Validation Error: Keys are limited to a maximum of 10.`
@ -209,7 +213,9 @@ test("restore with large key should fail", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledWith( expect(failedMock).toHaveBeenCalledWith(
`Key Validation Error: ${key} cannot be larger than 512 characters.` `Key Validation Error: ${key} cannot be larger than 512 characters.`
@ -235,7 +241,9 @@ test("restore with invalid key should fail", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledWith( expect(failedMock).toHaveBeenCalledWith(
`Key Validation Error: ${key} cannot contain commas.` `Key Validation Error: ${key} cannot contain commas.`
@ -270,7 +278,9 @@ test("restore with no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -311,7 +321,9 @@ test("restore with restore keys and no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -351,7 +363,9 @@ test("restore with cache found for key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -393,7 +407,9 @@ test("restore with cache found for restore key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
@ -434,7 +450,9 @@ test("restore with lookup-only set", async () => {
{ {
lookupOnly: true lookupOnly: true
}, },
false false,
undefined,
""
); );
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);

View File

@ -82,7 +82,9 @@ test("restore with no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key);
@ -124,7 +126,9 @@ test("restore with restore keys and no cache found", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key);
@ -163,7 +167,9 @@ test("restore with cache found for key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key);
@ -206,7 +212,9 @@ test("restore with cache found for restore key", async () => {
{ {
lookupOnly: false lookupOnly: false
}, },
false false,
undefined,
""
); );
expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key);

View File

@ -109,7 +109,9 @@ test("save with valid inputs uploads a cache", async () => {
{ {
uploadChunkSize: 4000000 uploadChunkSize: 4000000
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledTimes(0); expect(failedMock).toHaveBeenCalledTimes(0);

View File

@ -170,7 +170,9 @@ test("save on GHES with AC available", async () => {
{ {
uploadChunkSize: 4000000 uploadChunkSize: 4000000
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledTimes(0); expect(failedMock).toHaveBeenCalledTimes(0);
@ -266,7 +268,9 @@ test("save with large cache outputs warning", async () => {
[inputPath], [inputPath],
primaryKey, primaryKey,
expect.anything(), expect.anything(),
false false,
undefined,
""
); );
expect(logWarningMock).toHaveBeenCalledTimes(1); expect(logWarningMock).toHaveBeenCalledTimes(1);
@ -313,7 +317,9 @@ test("save with reserve cache failure outputs warning", async () => {
[inputPath], [inputPath],
primaryKey, primaryKey,
expect.anything(), expect.anything(),
false false,
undefined,
""
); );
expect(logWarningMock).toHaveBeenCalledWith( expect(logWarningMock).toHaveBeenCalledWith(
@ -356,7 +362,9 @@ test("save with server error outputs warning", async () => {
[inputPath], [inputPath],
primaryKey, primaryKey,
expect.anything(), expect.anything(),
false false,
undefined,
""
); );
expect(logWarningMock).toHaveBeenCalledTimes(1); expect(logWarningMock).toHaveBeenCalledTimes(1);
@ -401,7 +409,9 @@ test("save with valid inputs uploads a cache", async () => {
{ {
uploadChunkSize: 4000000 uploadChunkSize: 4000000
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledTimes(0); expect(failedMock).toHaveBeenCalledTimes(0);

View File

@ -99,7 +99,9 @@ test("save with valid inputs uploads a cache", async () => {
{ {
uploadChunkSize: 4000000 uploadChunkSize: 4000000
}, },
false false,
undefined,
""
); );
expect(failedMock).toHaveBeenCalledTimes(0); expect(failedMock).toHaveBeenCalledTimes(0);
@ -131,7 +133,9 @@ test("save failing logs the warning message", async () => {
{ {
uploadChunkSize: 4000000 uploadChunkSize: 4000000
}, },
false false,
undefined,
""
); );
expect(warningMock).toHaveBeenCalledTimes(1); expect(warningMock).toHaveBeenCalledTimes(1);

186122
dist/restore-only/index.js vendored

File diff suppressed because one or more lines are too long

186122
dist/restore/index.js vendored

File diff suppressed because one or more lines are too long

186136
dist/save-only/index.js vendored

File diff suppressed because one or more lines are too long

186082
dist/save/index.js vendored

File diff suppressed because one or more lines are too long

10492
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,4 +50,4 @@
"ts-jest": "^28.0.8", "ts-jest": "^28.0.8",
"typescript": "^4.9.3" "typescript": "^4.9.3"
} }
} }