construct-hub 0.4.520 → 0.4.522
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/.jsii +20 -20
- package/.yarn/install-state.gz +0 -0
- package/docs/operator-runbook.md +15 -0
- package/lib/backend/ingestion/re-ingest.lambda.bundle/index.js.map +1 -1
- package/lib/backend/shared/time.lambda-shared.d.ts +1 -0
- package/lib/backend/shared/time.lambda-shared.js +5 -1
- package/lib/construct-hub.js +1 -1
- package/lib/deep-link.d.ts +1 -0
- package/lib/deep-link.js +15 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs/canary/index.d.ts +4 -0
- package/lib/package-sources/npmjs/canary/index.js +7 -1
- package/lib/package-sources/npmjs/stage-and-notify.lambda.bundle/index.js +77 -36
- package/lib/package-sources/npmjs/stage-and-notify.lambda.bundle/index.js.map +4 -4
- package/lib/package-sources/npmjs/stage-and-notify.lambda.js +47 -10
- package/lib/package-sources/npmjs.js +23 -9
- package/lib/package-tag/index.js +3 -3
- package/lib/package-tag-group/index.js +2 -2
- package/lib/preload-file/index.js +1 -1
- package/lib/s3/storage.js +1 -1
- package/lib/spdx-license.js +1 -1
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -21906,7 +21906,7 @@
|
|
|
21906
21906
|
},
|
|
21907
21907
|
"locationInModule": {
|
|
21908
21908
|
"filename": "src/package-sources/npmjs.ts",
|
|
21909
|
-
"line":
|
|
21909
|
+
"line": 120
|
|
21910
21910
|
},
|
|
21911
21911
|
"parameters": [
|
|
21912
21912
|
{
|
|
@@ -21924,7 +21924,7 @@
|
|
|
21924
21924
|
"kind": "class",
|
|
21925
21925
|
"locationInModule": {
|
|
21926
21926
|
"filename": "src/package-sources/npmjs.ts",
|
|
21927
|
-
"line":
|
|
21927
|
+
"line": 119
|
|
21928
21928
|
},
|
|
21929
21929
|
"methods": [
|
|
21930
21930
|
{
|
|
@@ -21934,7 +21934,7 @@
|
|
|
21934
21934
|
},
|
|
21935
21935
|
"locationInModule": {
|
|
21936
21936
|
"filename": "src/package-sources/npmjs.ts",
|
|
21937
|
-
"line":
|
|
21937
|
+
"line": 122
|
|
21938
21938
|
},
|
|
21939
21939
|
"name": "bind",
|
|
21940
21940
|
"overrides": "construct-hub.IPackageSource",
|
|
@@ -21965,7 +21965,7 @@
|
|
|
21965
21965
|
},
|
|
21966
21966
|
"locationInModule": {
|
|
21967
21967
|
"filename": "src/package-sources/npmjs.ts",
|
|
21968
|
-
"line":
|
|
21968
|
+
"line": 397
|
|
21969
21969
|
},
|
|
21970
21970
|
"name": "metricBatchProcessingTime",
|
|
21971
21971
|
"parameters": [
|
|
@@ -21990,7 +21990,7 @@
|
|
|
21990
21990
|
},
|
|
21991
21991
|
"locationInModule": {
|
|
21992
21992
|
"filename": "src/package-sources/npmjs.ts",
|
|
21993
|
-
"line":
|
|
21993
|
+
"line": 410
|
|
21994
21994
|
},
|
|
21995
21995
|
"name": "metricChangeCount",
|
|
21996
21996
|
"parameters": [
|
|
@@ -22016,7 +22016,7 @@
|
|
|
22016
22016
|
},
|
|
22017
22017
|
"locationInModule": {
|
|
22018
22018
|
"filename": "src/package-sources/npmjs.ts",
|
|
22019
|
-
"line":
|
|
22019
|
+
"line": 424
|
|
22020
22020
|
},
|
|
22021
22021
|
"name": "metricLastSeq",
|
|
22022
22022
|
"parameters": [
|
|
@@ -22040,7 +22040,7 @@
|
|
|
22040
22040
|
},
|
|
22041
22041
|
"locationInModule": {
|
|
22042
22042
|
"filename": "src/package-sources/npmjs.ts",
|
|
22043
|
-
"line":
|
|
22043
|
+
"line": 434
|
|
22044
22044
|
},
|
|
22045
22045
|
"name": "metricNpmJsChangeAge",
|
|
22046
22046
|
"parameters": [
|
|
@@ -22065,7 +22065,7 @@
|
|
|
22065
22065
|
},
|
|
22066
22066
|
"locationInModule": {
|
|
22067
22067
|
"filename": "src/package-sources/npmjs.ts",
|
|
22068
|
-
"line":
|
|
22068
|
+
"line": 447
|
|
22069
22069
|
},
|
|
22070
22070
|
"name": "metricPackageVersionAge",
|
|
22071
22071
|
"parameters": [
|
|
@@ -22090,7 +22090,7 @@
|
|
|
22090
22090
|
},
|
|
22091
22091
|
"locationInModule": {
|
|
22092
22092
|
"filename": "src/package-sources/npmjs.ts",
|
|
22093
|
-
"line":
|
|
22093
|
+
"line": 460
|
|
22094
22094
|
},
|
|
22095
22095
|
"name": "metricPackageVersionCount",
|
|
22096
22096
|
"parameters": [
|
|
@@ -22115,7 +22115,7 @@
|
|
|
22115
22115
|
},
|
|
22116
22116
|
"locationInModule": {
|
|
22117
22117
|
"filename": "src/package-sources/npmjs.ts",
|
|
22118
|
-
"line":
|
|
22118
|
+
"line": 473
|
|
22119
22119
|
},
|
|
22120
22120
|
"name": "metricRelevantPackageVersions",
|
|
22121
22121
|
"parameters": [
|
|
@@ -22140,7 +22140,7 @@
|
|
|
22140
22140
|
},
|
|
22141
22141
|
"locationInModule": {
|
|
22142
22142
|
"filename": "src/package-sources/npmjs.ts",
|
|
22143
|
-
"line":
|
|
22143
|
+
"line": 487
|
|
22144
22144
|
},
|
|
22145
22145
|
"name": "metricRemainingTime",
|
|
22146
22146
|
"parameters": [
|
|
@@ -22165,7 +22165,7 @@
|
|
|
22165
22165
|
},
|
|
22166
22166
|
"locationInModule": {
|
|
22167
22167
|
"filename": "src/package-sources/npmjs.ts",
|
|
22168
|
-
"line":
|
|
22168
|
+
"line": 501
|
|
22169
22169
|
},
|
|
22170
22170
|
"name": "metricUnprocessableEntity",
|
|
22171
22171
|
"parameters": [
|
|
@@ -22198,7 +22198,7 @@
|
|
|
22198
22198
|
"kind": "interface",
|
|
22199
22199
|
"locationInModule": {
|
|
22200
22200
|
"filename": "src/package-sources/npmjs.ts",
|
|
22201
|
-
"line":
|
|
22201
|
+
"line": 72
|
|
22202
22202
|
},
|
|
22203
22203
|
"name": "NpmJsProps",
|
|
22204
22204
|
"namespace": "sources",
|
|
@@ -22214,7 +22214,7 @@
|
|
|
22214
22214
|
"immutable": true,
|
|
22215
22215
|
"locationInModule": {
|
|
22216
22216
|
"filename": "src/package-sources/npmjs.ts",
|
|
22217
|
-
"line":
|
|
22217
|
+
"line": 113
|
|
22218
22218
|
},
|
|
22219
22219
|
"name": "canaryMaxStale",
|
|
22220
22220
|
"optional": true,
|
|
@@ -22232,7 +22232,7 @@
|
|
|
22232
22232
|
"immutable": true,
|
|
22233
22233
|
"locationInModule": {
|
|
22234
22234
|
"filename": "src/package-sources/npmjs.ts",
|
|
22235
|
-
"line":
|
|
22235
|
+
"line": 94
|
|
22236
22236
|
},
|
|
22237
22237
|
"name": "canaryPackage",
|
|
22238
22238
|
"optional": true,
|
|
@@ -22251,7 +22251,7 @@
|
|
|
22251
22251
|
"immutable": true,
|
|
22252
22252
|
"locationInModule": {
|
|
22253
22253
|
"filename": "src/package-sources/npmjs.ts",
|
|
22254
|
-
"line":
|
|
22254
|
+
"line": 103
|
|
22255
22255
|
},
|
|
22256
22256
|
"name": "canarySla",
|
|
22257
22257
|
"optional": true,
|
|
@@ -22269,7 +22269,7 @@
|
|
|
22269
22269
|
"immutable": true,
|
|
22270
22270
|
"locationInModule": {
|
|
22271
22271
|
"filename": "src/package-sources/npmjs.ts",
|
|
22272
|
-
"line":
|
|
22272
|
+
"line": 86
|
|
22273
22273
|
},
|
|
22274
22274
|
"name": "enableCanary",
|
|
22275
22275
|
"optional": true,
|
|
@@ -22287,7 +22287,7 @@
|
|
|
22287
22287
|
"immutable": true,
|
|
22288
22288
|
"locationInModule": {
|
|
22289
22289
|
"filename": "src/package-sources/npmjs.ts",
|
|
22290
|
-
"line":
|
|
22290
|
+
"line": 78
|
|
22291
22291
|
},
|
|
22292
22292
|
"name": "stagingBucket",
|
|
22293
22293
|
"optional": true,
|
|
@@ -22299,6 +22299,6 @@
|
|
|
22299
22299
|
"symbolId": "src/package-sources/npmjs:NpmJsProps"
|
|
22300
22300
|
}
|
|
22301
22301
|
},
|
|
22302
|
-
"version": "0.4.
|
|
22303
|
-
"fingerprint": "
|
|
22302
|
+
"version": "0.4.522",
|
|
22303
|
+
"fingerprint": "JMcRJP5n4oIU2h3WsTaiKhDDZVkhZx71Y1u/nkzhQJ4="
|
|
22304
22304
|
}
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/docs/operator-runbook.md
CHANGED
|
@@ -753,6 +753,21 @@ latest version was ingested out-of-SLA.
|
|
|
753
753
|
|
|
754
754
|
#### Investigation
|
|
755
755
|
|
|
756
|
+
Start with the *Package Canary* section of the backend dashboard. The *Stuck
|
|
757
|
+
Versions* widget lists the tracked package versions the canary is still waiting
|
|
758
|
+
for (with how long each has been outstanding), and the *Pipeline Trace* button
|
|
759
|
+
opens a Log Analytics query showing every follower and stager log line
|
|
760
|
+
mentioning the tracked package (a comment in the query shows how to narrow it
|
|
761
|
+
down to one stuck version). A healthy version shows the full sequence (follower
|
|
762
|
+
sends it for staging, stager downloads and stores the tarball, then notifies
|
|
763
|
+
the ingestion queue); the point where a stuck version's trail stops indicates
|
|
764
|
+
which component dropped it. Lines that do not mention the package name are not
|
|
765
|
+
part of the trace, so also check the surrounding log stream of the last
|
|
766
|
+
component that saw the version. For example, a `404` logged by the stager right
|
|
767
|
+
after the download line means the tarball was not yet available on npm's CDN
|
|
768
|
+
when the version was discovered, and the version was dropped (see the
|
|
769
|
+
Resolution below to re-stage it).
|
|
770
|
+
|
|
756
771
|
If the alarm went off due to insufficient data, the canary might not be emitting
|
|
757
772
|
metrics properly. In this case, start by ensuring the lambda function that
|
|
758
773
|
implements the canary is executing as intended. It is normally scheduled to run
|