@skyramp/testbot-core 0.13.1-v3.466 → 0.13.1-v3.467
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/dist/VERSION.json +1 -1
- package/dist/main.js +467 -467
- package/dist/post.js +67 -67
- package/dist/runner-client.cjs +2 -2
- package/dist/setup-failure.cjs +1 -1
- package/dist/setup-failure.d.cts +2 -0
- package/package.json +1 -1
package/dist/setup-failure.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var a=(e,o)=>i(e,"name",{value:o,configurable:!0});var p=(e,o)=>{for(var n in o)i(e,n,{get:o[n],enumerable:!0})},m=(e,o,n,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of f(o))!b.call(e,t)&&t!==n&&i(e,t,{get:()=>o[t],enumerable:!(s=d(o,t))||s.enumerable});return e};var E=e=>m(i({},"__esModule",{value:!0}),e);var v={};p(v,{ENVIRONMENT_FAILURE:()=>l,FETCHES:()=>u,FETCH_FAILURE:()=>c,isEnvironmentFailureText:()=>g,isPackageSourceOutage:()=>h});module.exports=E(v);var l=/toomanyrequests|failed to resolve reference|pull access denied|manifest unknown|manifest for \S+ not found|error pulling image|could not resolve host|temporary failure in name resolution|no such host|getaddrinfo ENOTFOUND|EAI_AGAIN|no space left on device|Temporary failure resolving '|Could not resolve '[\w.-]+'|Could not connect to [\w.-]+:\d+ \(|Connection failed \[IP: |Unable to fetch some archives|Failed to fetch \S+\s+50\d\s.*\[IP: /i,c=/\b50[234]\b|Bad Gateway|Service Unavailable|Gateway Time-?out|i\/o timeout|TLS handshake timeout|connection reset by peer|ECONNRESET|ETIMEDOUT/i,u=/\b(?:pull|build|install|download)\b|--build\b|\bnpm ci\b|\bapk add\b/i;function g(e,o){return l.test(e)||o!==void 0&&u.test(o)&&c.test(e)}a(g,"isEnvironmentFailureText");function h(e){let o=/Temporary failure resolving '[\w.-]+'|Could not resolve '[\w.-]+'|Could not connect to [\w.-]+:\d+ \(|Connection failed \[IP: |Failed to fetch \S+\s+50\d\s.*\[IP: /i,n=/\btoomanyrequests\b/i,s=/(?:could not resolve host:?\s+|getaddrinfo (?:ENOTFOUND|EAI_AGAIN)\s+|lookup\s+(?=[^\r\n]*\bno such host\b))([\w.-]+)/gi;return o.test(e)||n.test(e)?!0:[...e.matchAll(s)].some(([,t])=>{let r=t.replace(/\.$/,"");return/^[a-z0-9-]+(?:\.[a-z0-9-]+)*\.[a-z]{2,}$/i.test(r)&&!/\.(?:local|localhost|internal|test|invalid|example|lan|corp|svc|cluster)$/i.test(r)})}a(h,"isPackageSourceOutage");
|
package/dist/setup-failure.d.cts
CHANGED
|
@@ -26,5 +26,7 @@ export declare const FETCHES: RegExp;
|
|
|
26
26
|
* environment's: it may be the SUT's own.
|
|
27
27
|
*/
|
|
28
28
|
export declare function isEnvironmentFailureText(text: string, command?: string): boolean;
|
|
29
|
+
/** Evidence strong enough to withhold a Validation Run report and retry the attempt. */
|
|
30
|
+
export declare function isPackageSourceOutage(text: string): boolean;
|
|
29
31
|
|
|
30
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyramp/testbot-core",
|
|
3
|
-
"version": "0.13.1-v3.
|
|
3
|
+
"version": "0.13.1-v3.467",
|
|
4
4
|
"description": "Skyramp Testbot engine: AI-powered deterministic test generation, execution and maintenance",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"//files": "An explicit allowlist, never a glob. `dist/` is gitignored, so without this key npm's .gitignore fallback would publish a package with no engine in it; with a glob it would publish the sourcemaps, whose sourcesContent embeds every src/*.ts verbatim. dist/VERSION.json exists only in a release-engine.yml build.",
|