@rushstack/rush-http-build-cache-plugin 5.143.0-pr5027.0 → 5.143.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-dc594c14011133a0d2435b3bceb246719966badd.tar.log → rushstack+rush-http-build-cache-plugin-_phase_build-5c93311dcd0b294afb893ab4bebba27f8f996ee0.tar.log} +2 -2
- package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_test-46dac3e27463cfa3fbb7b857cb92b091a03f2909.tar.log → rushstack+rush-http-build-cache-plugin-_phase_test-ddfc6cbfc215a76d549395305229528c97526de2.tar.log} +2 -2
- package/.rush/temp/shrinkwrap-deps.json +15 -2
- package/coverage/HttpBuildCacheProvider.ts.html +16 -49
- package/coverage/RushHttpBuildCachePlugin.ts.html +3 -3
- package/coverage/cobertura-coverage.xml +226 -237
- package/coverage/index.html +10 -10
- package/coverage/index.ts.html +2 -2
- package/coverage/junit.xml +4 -4
- package/lib/HttpBuildCacheProvider.d.ts +1 -5
- package/lib/HttpBuildCacheProvider.d.ts.map +1 -1
- package/lib/HttpBuildCacheProvider.js +7 -6
- package/lib/HttpBuildCacheProvider.js.map +1 -1
- package/lib/RushHttpBuildCachePlugin.d.ts +1 -2
- 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 +56 -35
- package/lib/test/HttpBuildCacheProvider.test.js.map +1 -1
- package/package.json +8 -6
- 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 +10 -21
- package/src/RushHttpBuildCachePlugin.ts +2 -2
- package/src/index.ts +1 -1
- package/src/test/HttpBuildCacheProvider.test.ts +50 -63
- 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
|
@@ -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.621s) ---- \n"}
|
|
7
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.627s) --------------------\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.903s, 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.808s) ---- \n"}
|
|
15
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.815s) --------------------\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.621s) ----
|
|
7
|
+
-------------------- Finished (10.627s) --------------------
|
|
@@ -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.621s) ---- \n"}
|
|
7
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (10.627s) --------------------\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.903s, 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.808s) ----
|
|
15
|
+
-------------------- Finished (3.815s) --------------------
|
|
@@ -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.903s, 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.808s) ---- \n"}
|
|
15
|
+
{"kind":"O","text":"\u001b[1m\u001b[32m-------------------- Finished (3.815s) --------------------\u001b[39m\u001b[22m\n"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time: Wed Dec 04 2024 03:
|
|
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:05:29 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-5c93311dcd0b294afb893ab4bebba27f8f996ee0-69dd61dfce5b897b.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 03:
|
|
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:05:34 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-ddfc6cbfc215a76d549395305229528c97526de2-d243366c976f4797.temp -z --files-from=-"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
.rush/temp/operation/_phase_test/all.log
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../../rush-plugins/rush-http-build-cache-plugin": "../../../rush-plugins/rush-http-build-cache-plugin:
|
|
2
|
+
"../../../rush-plugins/rush-http-build-cache-plugin": "../../../rush-plugins/rush-http-build-cache-plugin:cNBg/EFP7SVuA8cyjjufadM11GkM/nl9F4T8neVJTL0=:",
|
|
3
|
+
"/@types/node-fetch@2.6.2": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==",
|
|
4
|
+
"/@types/node@20.12.12": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==",
|
|
3
5
|
"/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==",
|
|
4
8
|
"/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==",
|
|
5
11
|
"/has-flag@4.0.0": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
|
6
12
|
"/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==",
|
|
7
15
|
"/ms@2.1.2": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
|
8
|
-
"/
|
|
16
|
+
"/node-fetch@2.6.7": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
|
|
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=="
|
|
9
22
|
}
|
|
@@ -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.13% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>284/436</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.13% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>284/436</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -499,23 +499,7 @@
|
|
|
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>
|
|
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>
|
|
502
|
+
<a name='L437'></a><a href='#L437'>437</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
519
503
|
<span class="cline-any cline-yes">1x</span>
|
|
520
504
|
<span class="cline-any cline-yes">1x</span>
|
|
521
505
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -760,8 +744,6 @@
|
|
|
760
744
|
<span class="cline-any cline-yes">5x</span>
|
|
761
745
|
<span class="cline-any cline-yes">5x</span>
|
|
762
746
|
<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>
|
|
765
747
|
<span class="cline-any cline-yes">4x</span>
|
|
766
748
|
<span class="cline-any cline-yes">4x</span>
|
|
767
749
|
<span class="cline-any cline-yes">4x</span>
|
|
@@ -863,10 +845,6 @@
|
|
|
863
845
|
<span class="cline-any cline-yes">1x</span>
|
|
864
846
|
<span class="cline-any cline-yes">1x</span>
|
|
865
847
|
<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>
|
|
870
848
|
<span class="cline-any cline-no"> </span>
|
|
871
849
|
<span class="cline-any cline-no"> </span>
|
|
872
850
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -969,7 +947,7 @@ import {
|
|
|
969
947
|
type RushSession,
|
|
970
948
|
EnvironmentConfiguration
|
|
971
949
|
} from '@rushstack/rush-sdk';
|
|
972
|
-
import {
|
|
950
|
+
import fetch, { type BodyInit, type Response } from 'node-fetch';
|
|
973
951
|
import type { SpawnSyncReturns } from 'child_process';
|
|
974
952
|
|
|
975
953
|
enum CredentialsOptions {
|
|
@@ -991,18 +969,13 @@ export interface IHttpBuildCacheTokenHandler {
|
|
|
991
969
|
args?: string[];
|
|
992
970
|
}
|
|
993
971
|
|
|
994
|
-
/**
|
|
995
|
-
* @public
|
|
996
|
-
*/
|
|
997
|
-
export type UploadMethod = 'PUT' | 'POST' | 'PATCH';
|
|
998
|
-
|
|
999
972
|
/**
|
|
1000
973
|
* @public
|
|
1001
974
|
*/
|
|
1002
975
|
export interface IHttpBuildCacheProviderOptions {
|
|
1003
976
|
url: string;
|
|
1004
977
|
tokenHandler?: IHttpBuildCacheTokenHandler;
|
|
1005
|
-
uploadMethod?:
|
|
978
|
+
uploadMethod?: string;
|
|
1006
979
|
minHttpRetryDelayMs?: number;
|
|
1007
980
|
headers?: Record<string, string>;
|
|
1008
981
|
cacheKeyPrefix?: string;
|
|
@@ -1020,7 +993,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1020
993
|
private readonly _environmentCredential: string | undefined;
|
|
1021
994
|
private readonly _isCacheWriteAllowedByConfiguration: boolean;
|
|
1022
995
|
private readonly _url: URL;
|
|
1023
|
-
private readonly _uploadMethod:
|
|
996
|
+
private readonly _uploadMethod: string;
|
|
1024
997
|
private readonly _headers: Record<string, string>;
|
|
1025
998
|
private readonly _cacheKeyPrefix: string;
|
|
1026
999
|
private readonly _tokenHandler: IHttpBuildCacheTokenHandler | undefined;
|
|
@@ -1174,8 +1147,8 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1174
1147
|
private async _makeHttpRequestAsync(options: {
|
|
1175
1148
|
terminal: ITerminal;
|
|
1176
1149
|
relUrl: string;
|
|
1177
|
-
method:
|
|
1178
|
-
body:
|
|
1150
|
+
method: string;
|
|
1151
|
+
body: BodyInit | undefined;
|
|
1179
1152
|
warningText: string;
|
|
1180
1153
|
readBody: boolean;
|
|
1181
1154
|
maxAttempts: number;
|
|
@@ -1201,13 +1174,11 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1201
1174
|
|
|
1202
1175
|
terminal.writeDebugLine(`[http-build-cache] request: ${method} ${url} ${bodyLength} bytes`);
|
|
1203
1176
|
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1206
|
-
verb: method,
|
|
1177
|
+
const response: Response = await fetch(url, {
|
|
1178
|
+
method: method,
|
|
1207
1179
|
headers: headers,
|
|
1208
1180
|
body: body,
|
|
1209
|
-
redirect: 'follow'
|
|
1210
|
-
timeoutMs: 0 // Use the default timeout
|
|
1181
|
+
redirect: 'follow'
|
|
1211
1182
|
});
|
|
1212
1183
|
|
|
1213
1184
|
if (!response.ok) {
|
|
@@ -1308,11 +1279,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1308
1279
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1309
1280
|
}
|
|
1310
1281
|
|
|
1311
|
-
private _getFailureType(
|
|
1312
|
-
requestMethod: string,
|
|
1313
|
-
response: WebClientResponse,
|
|
1314
|
-
isRedirect: boolean
|
|
1315
|
-
): FailureType {
|
|
1282
|
+
private _getFailureType(requestMethod: string, response: Response, isRedirect: boolean): FailureType {
|
|
1316
1283
|
if (response.ok) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
|
|
1317
1284
|
<span class="cstat-no" title="statement not covered" > return FailureType.None;</span>
|
|
1318
1285
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
@@ -1362,7 +1329,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1362
1329
|
private _reportFailure(
|
|
1363
1330
|
terminal: ITerminal,
|
|
1364
1331
|
requestMethod: string,
|
|
1365
|
-
response:
|
|
1332
|
+
response: Response,
|
|
1366
1333
|
isRedirect: boolean,
|
|
1367
1334
|
message: string
|
|
1368
1335
|
): void {
|
|
@@ -1411,7 +1378,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1411
1378
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1412
1379
|
Code coverage generated by
|
|
1413
1380
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1414
|
-
at 2024-12-04T03:
|
|
1381
|
+
at 2024-12-04T03:05:34.278Z
|
|
1415
1382
|
</div>
|
|
1416
1383
|
<script src="prettify.js"></script>
|
|
1417
1384
|
<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
|
|
232
|
+
<span class="cstat-no" title="statement not covered" >import type { IHttpBuildCacheProviderOptions } 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?: string;</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-04T03:
|
|
316
|
+
at 2024-12-04T03:05:34.278Z
|
|
317
317
|
</div>
|
|
318
318
|
<script src="prettify.js"></script>
|
|
319
319
|
<script>
|