@rushstack/rush-http-build-cache-plugin 5.143.0-pr5009.0 → 5.143.0-pr5027.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/.rush/temp/chunked-rush-logs/rush-http-build-cache-plugin._phase_build.chunks.jsonl +2 -2
- package/.rush/temp/chunked-rush-logs/rush-http-build-cache-plugin._phase_test.chunks.jsonl +3 -3
- package/.rush/temp/operation/_phase_build/all.log +2 -2
- package/.rush/temp/operation/_phase_build/log-chunks.jsonl +2 -2
- package/.rush/temp/operation/_phase_build/state.json +1 -1
- package/.rush/temp/operation/_phase_test/all.log +3 -3
- package/.rush/temp/operation/_phase_test/log-chunks.jsonl +3 -3
- package/.rush/temp/operation/_phase_test/state.json +1 -1
- package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_build-730786a393a3bdef3778c3df47ea1acc73ac4955.tar.log → rushstack+rush-http-build-cache-plugin-_phase_build-dc594c14011133a0d2435b3bceb246719966badd.tar.log} +2 -2
- package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_test-3510b3d83c4b918305eaf529820f89486e29eb54.tar.log → rushstack+rush-http-build-cache-plugin-_phase_test-46dac3e27463cfa3fbb7b857cb92b091a03f2909.tar.log} +2 -2
- package/.rush/temp/shrinkwrap-deps.json +2 -15
- package/coverage/HttpBuildCacheProvider.ts.html +49 -16
- package/coverage/RushHttpBuildCachePlugin.ts.html +3 -3
- package/coverage/cobertura-coverage.xml +237 -226
- package/coverage/index.html +10 -10
- package/coverage/index.ts.html +2 -2
- package/coverage/junit.xml +3 -3
- package/lib/HttpBuildCacheProvider.d.ts +5 -1
- package/lib/HttpBuildCacheProvider.d.ts.map +1 -1
- package/lib/HttpBuildCacheProvider.js +6 -7
- package/lib/HttpBuildCacheProvider.js.map +1 -1
- package/lib/RushHttpBuildCachePlugin.d.ts +2 -1
- package/lib/RushHttpBuildCachePlugin.d.ts.map +1 -1
- package/lib/RushHttpBuildCachePlugin.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/test/HttpBuildCacheProvider.test.js +35 -56
- package/lib/test/HttpBuildCacheProvider.test.js.map +1 -1
- package/package.json +3 -5
- package/rush-logs/rush-http-build-cache-plugin._phase_build.cache.log +1 -1
- package/rush-logs/rush-http-build-cache-plugin._phase_build.log +2 -2
- package/rush-logs/rush-http-build-cache-plugin._phase_test.cache.log +1 -1
- package/rush-logs/rush-http-build-cache-plugin._phase_test.log +3 -3
- package/src/HttpBuildCacheProvider.ts +21 -10
- package/src/RushHttpBuildCachePlugin.ts +2 -2
- package/src/index.ts +1 -1
- package/src/test/HttpBuildCacheProvider.test.ts +63 -50
- package/temp/build/typescript/ts_l9Fw4VUO.json +1 -1
- package/temp/test/jest/haste-map-8bff56e236187dbf28a94cdea7ee2158-1f8f3a8b20228094c245723445dd2c9a-e95bfd62c357a87bf3c5f47c6c3a2910 +0 -0
- package/temp/test/jest/perf-cache-8bff56e236187dbf28a94cdea7ee2158-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
- /package/temp/test/jest/jest-transform-cache-8bff56e236187dbf28a94cdea7ee2158-79ef2876fae7ca75eedb2aa53dc48338/{36/jsonschemadraft07_3628ea1ecf884e0760d768d46a9281d8 → 05/jsonschemadraft07_0552dc1a87749c6ceaddb90374e5b797} +0 -0
- /package/temp/test/jest/jest-transform-cache-8bff56e236187dbf28a94cdea7ee2158-79ef2876fae7ca75eedb2aa53dc48338/{e4/data_e44c0514b7a1063b5a918d446f880c63 → 0d/data_0d23abc4e375f02d13dabc4eced98cd7} +0 -0
- /package/temp/test/jest/jest-transform-cache-8bff56e236187dbf28a94cdea7ee2158-79ef2876fae7ca75eedb2aa53dc48338/{94/jsonschemadraft04_948539857d7c524bc56125dd685eb959 → 17/jsonschemadraft04_1720b23eead0143ea27b69a6bc9789d9} +0 -0
- /package/temp/test/jest/jest-transform-cache-8bff56e236187dbf28a94cdea7ee2158-79ef2876fae7ca75eedb2aa53dc48338/{5f/core_5ff24dca1e4a1c4a8a6bd1875f3b7945 → 45/core_45b30f7bbe5dfde39eb9eb2f1398b538} +0 -0
- /package/temp/test/jest/jest-transform-cache-8bff56e236187dbf28a94cdea7ee2158-79ef2876fae7ca75eedb2aa53dc48338/{6f/core_6f0a262b9217bc9f65defe685ea5da02 → d0/core_d09d0dbad5cd355ce62fae2ccd4879af} +0 -0
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
{"kind":"O","text":"[build:typescript] Using TypeScript version 5.4.2\n"}
|
|
4
4
|
{"kind":"O","text":"[build:lint] Using ESLint version 8.57.0\n"}
|
|
5
5
|
{"kind":"O","text":"[build:typescript] Copied 1 file and linked 0 files\n"}
|
|
6
|
-
{"kind":"O","text":" ---- build finished (10.
|
|
7
|
-
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.
|
|
6
|
+
{"kind":"O","text":" ---- build finished (10.935s) ---- \n"}
|
|
7
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.943s) --------------------\u001b[39m\u001b[22m\n"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
{"kind":"O","text":"[test:jest] \u001b[0m\n"}
|
|
6
6
|
{"kind":"O","text":"[test:jest] Run start. 1 test suite\n"}
|
|
7
7
|
{"kind":"O","text":"[test:jest] \u001b[47m\u001b[30mSTART\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js\n"}
|
|
8
|
-
{"kind":"O","text":"[test:jest] \u001b[42m\u001b[30mPASS\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js (duration: 1.
|
|
8
|
+
{"kind":"O","text":"[test:jest] \u001b[42m\u001b[30mPASS\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js (duration: 1.991s, 2 passed, 0 failed)\n"}
|
|
9
9
|
{"kind":"O","text":"[test:jest] \n"}
|
|
10
10
|
{"kind":"O","text":"[test:jest] Tests finished:\n"}
|
|
11
11
|
{"kind":"O","text":"[test:jest] \u001b[32m Successes: 2\u001b[39m\n"}
|
|
12
12
|
{"kind":"O","text":"[test:jest] Failures: 0\n"}
|
|
13
13
|
{"kind":"O","text":"[test:jest] Total: 2\n"}
|
|
14
|
-
{"kind":"O","text":" ---- test finished (3.
|
|
15
|
-
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.
|
|
14
|
+
{"kind":"O","text":" ---- test finished (3.854s) ---- \n"}
|
|
15
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.864s) --------------------\u001b[39m\u001b[22m\n"}
|
|
@@ -3,5 +3,5 @@ Invoking: heft run --only build -- --clean --production
|
|
|
3
3
|
[build:typescript] Using TypeScript version 5.4.2
|
|
4
4
|
[build:lint] Using ESLint version 8.57.0
|
|
5
5
|
[build:typescript] Copied 1 file and linked 0 files
|
|
6
|
-
---- build finished (10.
|
|
7
|
-
-------------------- Finished (10.
|
|
6
|
+
---- build finished (10.935s) ----
|
|
7
|
+
-------------------- Finished (10.943s) --------------------
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
{"kind":"O","text":"[build:typescript] Using TypeScript version 5.4.2\n"}
|
|
4
4
|
{"kind":"O","text":"[build:lint] Using ESLint version 8.57.0\n"}
|
|
5
5
|
{"kind":"O","text":"[build:typescript] Copied 1 file and linked 0 files\n"}
|
|
6
|
-
{"kind":"O","text":" ---- build finished (10.
|
|
7
|
-
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.
|
|
6
|
+
{"kind":"O","text":" ---- build finished (10.935s) ---- \n"}
|
|
7
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.943s) --------------------\u001b[39m\u001b[22m\n"}
|
|
@@ -5,11 +5,11 @@ The provided list of phases does not contain all phase dependencies. You may nee
|
|
|
5
5
|
[test:jest]
|
|
6
6
|
[test:jest] Run start. 1 test suite
|
|
7
7
|
[test:jest] START lib/test/HttpBuildCacheProvider.test.js
|
|
8
|
-
[test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 1.
|
|
8
|
+
[test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 1.991s, 2 passed, 0 failed)
|
|
9
9
|
[test:jest]
|
|
10
10
|
[test:jest] Tests finished:
|
|
11
11
|
[test:jest] Successes: 2
|
|
12
12
|
[test:jest] Failures: 0
|
|
13
13
|
[test:jest] Total: 2
|
|
14
|
-
---- test finished (3.
|
|
15
|
-
-------------------- Finished (3.
|
|
14
|
+
---- test finished (3.854s) ----
|
|
15
|
+
-------------------- Finished (3.864s) --------------------
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
{"kind":"O","text":"[test:jest] \u001b[0m\n"}
|
|
6
6
|
{"kind":"O","text":"[test:jest] Run start. 1 test suite\n"}
|
|
7
7
|
{"kind":"O","text":"[test:jest] \u001b[47m\u001b[30mSTART\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js\n"}
|
|
8
|
-
{"kind":"O","text":"[test:jest] \u001b[42m\u001b[30mPASS\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js (duration: 1.
|
|
8
|
+
{"kind":"O","text":"[test:jest] \u001b[42m\u001b[30mPASS\u001b[39m\u001b[49m lib/test/HttpBuildCacheProvider.test.js (duration: 1.991s, 2 passed, 0 failed)\n"}
|
|
9
9
|
{"kind":"O","text":"[test:jest] \n"}
|
|
10
10
|
{"kind":"O","text":"[test:jest] Tests finished:\n"}
|
|
11
11
|
{"kind":"O","text":"[test:jest] \u001b[32m Successes: 2\u001b[39m\n"}
|
|
12
12
|
{"kind":"O","text":"[test:jest] Failures: 0\n"}
|
|
13
13
|
{"kind":"O","text":"[test:jest] Total: 2\n"}
|
|
14
|
-
{"kind":"O","text":" ---- test finished (3.
|
|
15
|
-
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.
|
|
14
|
+
{"kind":"O","text":" ---- test finished (3.854s) ---- \n"}
|
|
15
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.864s) --------------------\u001b[39m\u001b[22m\n"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time: Wed Dec 04 2024
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /mnt/vss/_work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-
|
|
1
|
+
Start time: Wed Dec 04 2024 03:37:52 GMT+0000 (Coordinated Universal Time)
|
|
2
|
+
Invoking "/usr/bin/tar -c -f /mnt/vss/_work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-dc594c14011133a0d2435b3bceb246719966badd-32d131febbd19bb0.temp -z --files-from=-"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
.rush/temp/operation/_phase_build/all.log
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time: Wed Dec 04 2024
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /mnt/vss/_work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-
|
|
1
|
+
Start time: Wed Dec 04 2024 03:37:56 GMT+0000 (Coordinated Universal Time)
|
|
2
|
+
Invoking "/usr/bin/tar -c -f /mnt/vss/_work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-46dac3e27463cfa3fbb7b857cb92b091a03f2909-c88fd2d744ada648.temp -z --files-from=-"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
.rush/temp/operation/_phase_test/all.log
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../../rush-plugins/rush-http-build-cache-plugin": "../../../rush-plugins/rush-http-build-cache-plugin:
|
|
3
|
-
"/@types/node-fetch@2.6.2": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==",
|
|
4
|
-
"/@types/node@20.12.12": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==",
|
|
2
|
+
"../../../rush-plugins/rush-http-build-cache-plugin": "../../../rush-plugins/rush-http-build-cache-plugin:c67osaye76DDfIHh56yPqMYuRdMqQpaN/fzI6wsRuHo=:",
|
|
5
3
|
"/agent-base@6.0.2": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
|
6
|
-
"/asynckit@0.4.0": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
|
7
|
-
"/combined-stream@1.0.8": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
|
8
4
|
"/debug@4.3.4(supports-color@8.1.1)": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
9
|
-
"/delayed-stream@1.0.0": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
|
10
|
-
"/form-data@3.0.1": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
|
|
11
5
|
"/has-flag@4.0.0": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
|
12
6
|
"/https-proxy-agent@5.0.1": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
|
13
|
-
"/mime-db@1.52.0": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
|
14
|
-
"/mime-types@2.1.35": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
|
15
7
|
"/ms@2.1.2": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
16
|
-
"/
|
|
17
|
-
"/supports-color@8.1.1": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
|
|
18
|
-
"/tr46@0.0.3": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
|
|
19
|
-
"/undici-types@5.26.5": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
|
20
|
-
"/webidl-conversions@3.0.1": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
|
|
21
|
-
"/whatwg-url@5.0.0": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="
|
|
8
|
+
"/supports-color@8.1.1": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="
|
|
22
9
|
}
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">65.
|
|
26
|
+
<span class="strong">65.99% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>295/447</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">65.
|
|
47
|
+
<span class="strong">65.99% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>295/447</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -499,7 +499,23 @@
|
|
|
499
499
|
<a name='L434'></a><a href='#L434'>434</a>
|
|
500
500
|
<a name='L435'></a><a href='#L435'>435</a>
|
|
501
501
|
<a name='L436'></a><a href='#L436'>436</a>
|
|
502
|
-
<a name='L437'></a><a href='#L437'>437</a
|
|
502
|
+
<a name='L437'></a><a href='#L437'>437</a>
|
|
503
|
+
<a name='L438'></a><a href='#L438'>438</a>
|
|
504
|
+
<a name='L439'></a><a href='#L439'>439</a>
|
|
505
|
+
<a name='L440'></a><a href='#L440'>440</a>
|
|
506
|
+
<a name='L441'></a><a href='#L441'>441</a>
|
|
507
|
+
<a name='L442'></a><a href='#L442'>442</a>
|
|
508
|
+
<a name='L443'></a><a href='#L443'>443</a>
|
|
509
|
+
<a name='L444'></a><a href='#L444'>444</a>
|
|
510
|
+
<a name='L445'></a><a href='#L445'>445</a>
|
|
511
|
+
<a name='L446'></a><a href='#L446'>446</a>
|
|
512
|
+
<a name='L447'></a><a href='#L447'>447</a>
|
|
513
|
+
<a name='L448'></a><a href='#L448'>448</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
514
|
+
<span class="cline-any cline-yes">1x</span>
|
|
515
|
+
<span class="cline-any cline-yes">1x</span>
|
|
516
|
+
<span class="cline-any cline-yes">1x</span>
|
|
517
|
+
<span class="cline-any cline-yes">1x</span>
|
|
518
|
+
<span class="cline-any cline-yes">1x</span>
|
|
503
519
|
<span class="cline-any cline-yes">1x</span>
|
|
504
520
|
<span class="cline-any cline-yes">1x</span>
|
|
505
521
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -744,6 +760,8 @@
|
|
|
744
760
|
<span class="cline-any cline-yes">5x</span>
|
|
745
761
|
<span class="cline-any cline-yes">5x</span>
|
|
746
762
|
<span class="cline-any cline-yes">5x</span>
|
|
763
|
+
<span class="cline-any cline-yes">5x</span>
|
|
764
|
+
<span class="cline-any cline-yes">5x</span>
|
|
747
765
|
<span class="cline-any cline-yes">4x</span>
|
|
748
766
|
<span class="cline-any cline-yes">4x</span>
|
|
749
767
|
<span class="cline-any cline-yes">4x</span>
|
|
@@ -845,6 +863,10 @@
|
|
|
845
863
|
<span class="cline-any cline-yes">1x</span>
|
|
846
864
|
<span class="cline-any cline-yes">1x</span>
|
|
847
865
|
<span class="cline-any cline-yes">1x</span>
|
|
866
|
+
<span class="cline-any cline-yes">1x</span>
|
|
867
|
+
<span class="cline-any cline-yes">1x</span>
|
|
868
|
+
<span class="cline-any cline-yes">1x</span>
|
|
869
|
+
<span class="cline-any cline-yes">1x</span>
|
|
848
870
|
<span class="cline-any cline-no"> </span>
|
|
849
871
|
<span class="cline-any cline-no"> </span>
|
|
850
872
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -947,7 +969,7 @@ import {
|
|
|
947
969
|
type RushSession,
|
|
948
970
|
EnvironmentConfiguration
|
|
949
971
|
} from '@rushstack/rush-sdk';
|
|
950
|
-
import
|
|
972
|
+
import { WebClient, type WebClientResponse } from '@rushstack/rush-sdk/lib/utilities/WebClient';
|
|
951
973
|
import type { SpawnSyncReturns } from 'child_process';
|
|
952
974
|
|
|
953
975
|
enum CredentialsOptions {
|
|
@@ -969,13 +991,18 @@ export interface IHttpBuildCacheTokenHandler {
|
|
|
969
991
|
args?: string[];
|
|
970
992
|
}
|
|
971
993
|
|
|
994
|
+
/**
|
|
995
|
+
* @public
|
|
996
|
+
*/
|
|
997
|
+
export type UploadMethod = 'PUT' | 'POST' | 'PATCH';
|
|
998
|
+
|
|
972
999
|
/**
|
|
973
1000
|
* @public
|
|
974
1001
|
*/
|
|
975
1002
|
export interface IHttpBuildCacheProviderOptions {
|
|
976
1003
|
url: string;
|
|
977
1004
|
tokenHandler?: IHttpBuildCacheTokenHandler;
|
|
978
|
-
uploadMethod?:
|
|
1005
|
+
uploadMethod?: UploadMethod;
|
|
979
1006
|
minHttpRetryDelayMs?: number;
|
|
980
1007
|
headers?: Record<string, string>;
|
|
981
1008
|
cacheKeyPrefix?: string;
|
|
@@ -993,7 +1020,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
993
1020
|
private readonly _environmentCredential: string | undefined;
|
|
994
1021
|
private readonly _isCacheWriteAllowedByConfiguration: boolean;
|
|
995
1022
|
private readonly _url: URL;
|
|
996
|
-
private readonly _uploadMethod:
|
|
1023
|
+
private readonly _uploadMethod: UploadMethod;
|
|
997
1024
|
private readonly _headers: Record<string, string>;
|
|
998
1025
|
private readonly _cacheKeyPrefix: string;
|
|
999
1026
|
private readonly _tokenHandler: IHttpBuildCacheTokenHandler | undefined;
|
|
@@ -1147,8 +1174,8 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1147
1174
|
private async _makeHttpRequestAsync(options: {
|
|
1148
1175
|
terminal: ITerminal;
|
|
1149
1176
|
relUrl: string;
|
|
1150
|
-
method:
|
|
1151
|
-
body:
|
|
1177
|
+
method: 'GET' | UploadMethod;
|
|
1178
|
+
body: Buffer | undefined;
|
|
1152
1179
|
warningText: string;
|
|
1153
1180
|
readBody: boolean;
|
|
1154
1181
|
maxAttempts: number;
|
|
@@ -1174,11 +1201,13 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1174
1201
|
|
|
1175
1202
|
terminal.writeDebugLine(`[http-build-cache] request: ${method} ${url} ${bodyLength} bytes`);
|
|
1176
1203
|
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1204
|
+
const webClient: WebClient = new WebClient();
|
|
1205
|
+
const response: WebClientResponse = await webClient.fetchAsync(url, {
|
|
1206
|
+
verb: method,
|
|
1179
1207
|
headers: headers,
|
|
1180
1208
|
body: body,
|
|
1181
|
-
redirect: 'follow'
|
|
1209
|
+
redirect: 'follow',
|
|
1210
|
+
timeoutMs: 0 // Use the default timeout
|
|
1182
1211
|
});
|
|
1183
1212
|
|
|
1184
1213
|
if (!response.ok) {
|
|
@@ -1279,7 +1308,11 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1279
1308
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1280
1309
|
}
|
|
1281
1310
|
|
|
1282
|
-
private _getFailureType(
|
|
1311
|
+
private _getFailureType(
|
|
1312
|
+
requestMethod: string,
|
|
1313
|
+
response: WebClientResponse,
|
|
1314
|
+
isRedirect: boolean
|
|
1315
|
+
): FailureType {
|
|
1283
1316
|
if (response.ok) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
|
|
1284
1317
|
<span class="cstat-no" title="statement not covered" > return FailureType.None;</span>
|
|
1285
1318
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
@@ -1329,7 +1362,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1329
1362
|
private _reportFailure(
|
|
1330
1363
|
terminal: ITerminal,
|
|
1331
1364
|
requestMethod: string,
|
|
1332
|
-
response:
|
|
1365
|
+
response: WebClientResponse,
|
|
1333
1366
|
isRedirect: boolean,
|
|
1334
1367
|
message: string
|
|
1335
1368
|
): void {
|
|
@@ -1378,7 +1411,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1378
1411
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1379
1412
|
Code coverage generated by
|
|
1380
1413
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1381
|
-
at 2024-12-
|
|
1414
|
+
at 2024-12-04T03:37:56.791Z
|
|
1382
1415
|
</div>
|
|
1383
1416
|
<script src="prettify.js"></script>
|
|
1384
1417
|
<script>
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
<span class="cstat-no" title="statement not covered" >// See LICENSE in the project root for license information.</span>
|
|
230
230
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
231
231
|
<span class="cstat-no" title="statement not covered" >import type { IRushPlugin, RushSession, RushConfiguration } from '@rushstack/rush-sdk';</span>
|
|
232
|
-
<span class="cstat-no" title="statement not covered" >import type { IHttpBuildCacheProviderOptions } from './HttpBuildCacheProvider';</span>
|
|
232
|
+
<span class="cstat-no" title="statement not covered" >import type { IHttpBuildCacheProviderOptions, UploadMethod } from './HttpBuildCacheProvider';</span>
|
|
233
233
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
234
234
|
<span class="cstat-no" title="statement not covered" >const PLUGIN_NAME: string = 'HttpBuildCachePlugin';</span>
|
|
235
235
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
<span class="cstat-no" title="statement not covered" > /**</span>
|
|
246
246
|
<span class="cstat-no" title="statement not covered" > * The HTTP method to use when writing to the cache (defaults to PUT).</span>
|
|
247
247
|
<span class="cstat-no" title="statement not covered" > */</span>
|
|
248
|
-
<span class="cstat-no" title="statement not covered" > uploadMethod?:
|
|
248
|
+
<span class="cstat-no" title="statement not covered" > uploadMethod?: UploadMethod;</span>
|
|
249
249
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
250
250
|
<span class="cstat-no" title="statement not covered" > /**</span>
|
|
251
251
|
<span class="cstat-no" title="statement not covered" > * An optional set of HTTP headers to pass to the cache server.</span>
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
314
314
|
Code coverage generated by
|
|
315
315
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
316
|
-
at 2024-12-
|
|
316
|
+
at 2024-12-04T03:37:56.791Z
|
|
317
317
|
</div>
|
|
318
318
|
<script src="prettify.js"></script>
|
|
319
319
|
<script>
|