@skyramp/testbot-core 0.13.0-v3.252 → 0.13.0-v3.253

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.
@@ -1963,7 +1963,9 @@ declare enum ActionRequiredReason {
1963
1963
  /** The model provider did not answer Testbot's calls, and the run's work is incomplete (SKYR-5193). */
1964
1964
  ModelProviderUnavailable = "model_provider_unavailable",
1965
1965
  /** The app sets it when GitHub or Azure DevOps never showed the job running; the runner never reports it (SKYR-5429). */
1966
- RunnerProviderNotReady = "runner_provider_not_ready"
1966
+ RunnerProviderNotReady = "runner_provider_not_ready",
1967
+ /** The app sets it when two revisions of one repository the run merges do not merge cleanly (SKYR-5061). */
1968
+ MergeConflict = "merge_conflict"
1967
1969
  }
1968
1970
  declare enum EvidenceKind {
1969
1971
  CiCheck = "ci_check",
@@ -2177,6 +2179,10 @@ declare enum TriggerKind {
2177
2179
  declare enum ChangeKind {
2178
2180
  PullRequest = "pull_request"
2179
2181
  }
2182
+ declare enum MergedRevisionKind {
2183
+ PullRequest = "pull_request",
2184
+ Branch = "branch"
2185
+ }
2180
2186
  declare enum CredentialPurpose {
2181
2187
  ModelProvider = "model_provider",
2182
2188
  SutAccess = "sut_access",
@@ -2213,7 +2219,8 @@ declare enum AttemptState {
2213
2219
  * model provider refused the run's calls, or did not answer them once Testbot's retries ran out, before any stage produced
2214
2220
  * usable work; the app derives an infrastructure error and does not retry it (SKYR-5193).
2215
2221
  * `RunnerProviderNotReady`: GitHub or Azure DevOps did not show the job as running while the runner waited for its token,
2216
- * so the app runs the attempt again (SKYR-5429).
2222
+ * so the app runs the attempt again (SKYR-5429). `MergeConflict`: two revisions of one repository the run merges do not
2223
+ * merge cleanly, so the run stops before build or deploy for a person to resolve; it is no checkout failure (SKYR-5061).
2217
2224
  */
2218
2225
  export declare enum NoReportCause {
2219
2226
  TimedOut = "timed_out",
@@ -2225,7 +2232,8 @@ export declare enum NoReportCause {
2225
2232
  EnvironmentUnverified = "environment_unverified",
2226
2233
  ModelProviderDenied = "model_provider_denied",
2227
2234
  ModelProviderUnavailable = "model_provider_unavailable",
2228
- RunnerProviderNotReady = "runner_provider_not_ready"
2235
+ RunnerProviderNotReady = "runner_provider_not_ready",
2236
+ MergeConflict = "merge_conflict"
2229
2237
  }
2230
2238
  declare const SourceRefSchema: z.ZodDiscriminatedUnion<"provider", [
2231
2239
  z.ZodObject<{
@@ -2521,6 +2529,25 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2521
2529
  revision: string;
2522
2530
  ref: string;
2523
2531
  }>>;
2532
+ merge: z.ZodOptional<z.ZodArray<z.ZodObject<{
2533
+ kind: z.ZodNativeEnum<typeof MergedRevisionKind>;
2534
+ number: z.ZodOptional<z.ZodString>;
2535
+ ref: z.ZodString;
2536
+ revision: z.ZodString;
2537
+ reason: z.ZodNativeEnum<typeof SelectionReason>;
2538
+ }, "strict", z.ZodTypeAny, {
2539
+ kind: MergedRevisionKind;
2540
+ reason: SelectionReason;
2541
+ revision: string;
2542
+ ref: string;
2543
+ number?: string | undefined;
2544
+ }, {
2545
+ kind: MergedRevisionKind;
2546
+ reason: SelectionReason;
2547
+ revision: string;
2548
+ ref: string;
2549
+ number?: string | undefined;
2550
+ }>, "many">>;
2524
2551
  }, "strict", z.ZodTypeAny, {
2525
2552
  repository: {
2526
2553
  name: string;
@@ -2550,6 +2577,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2550
2577
  revision: string;
2551
2578
  ref: string;
2552
2579
  } | undefined;
2580
+ merge?: {
2581
+ kind: MergedRevisionKind;
2582
+ reason: SelectionReason;
2583
+ revision: string;
2584
+ ref: string;
2585
+ number?: string | undefined;
2586
+ }[] | undefined;
2553
2587
  }, {
2554
2588
  repository: {
2555
2589
  name: string;
@@ -2579,6 +2613,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2579
2613
  revision: string;
2580
2614
  ref: string;
2581
2615
  } | undefined;
2616
+ merge?: {
2617
+ kind: MergedRevisionKind;
2618
+ reason: SelectionReason;
2619
+ revision: string;
2620
+ ref: string;
2621
+ number?: string | undefined;
2622
+ }[] | undefined;
2582
2623
  }>, "many">;
2583
2624
  execution: z.ZodObject<{
2584
2625
  provider: z.ZodNativeEnum<typeof SourceProvider>;
@@ -2850,6 +2891,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2850
2891
  revision: string;
2851
2892
  ref: string;
2852
2893
  } | undefined;
2894
+ merge?: {
2895
+ kind: MergedRevisionKind;
2896
+ reason: SelectionReason;
2897
+ revision: string;
2898
+ ref: string;
2899
+ number?: string | undefined;
2900
+ }[] | undefined;
2853
2901
  }[];
2854
2902
  runId: string;
2855
2903
  skyrampOrgId: string;
@@ -2978,6 +3026,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2978
3026
  revision: string;
2979
3027
  ref: string;
2980
3028
  } | undefined;
3029
+ merge?: {
3030
+ kind: MergedRevisionKind;
3031
+ reason: SelectionReason;
3032
+ revision: string;
3033
+ ref: string;
3034
+ number?: string | undefined;
3035
+ }[] | undefined;
2981
3036
  }[];
2982
3037
  runId: string;
2983
3038
  skyrampOrgId: string;
@@ -3106,6 +3161,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3106
3161
  revision: string;
3107
3162
  ref: string;
3108
3163
  } | undefined;
3164
+ merge?: {
3165
+ kind: MergedRevisionKind;
3166
+ reason: SelectionReason;
3167
+ revision: string;
3168
+ ref: string;
3169
+ number?: string | undefined;
3170
+ }[] | undefined;
3109
3171
  }[];
3110
3172
  runId: string;
3111
3173
  skyrampOrgId: string;
@@ -3234,6 +3296,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3234
3296
  revision: string;
3235
3297
  ref: string;
3236
3298
  } | undefined;
3299
+ merge?: {
3300
+ kind: MergedRevisionKind;
3301
+ reason: SelectionReason;
3302
+ revision: string;
3303
+ ref: string;
3304
+ number?: string | undefined;
3305
+ }[] | undefined;
3237
3306
  }[];
3238
3307
  runId: string;
3239
3308
  skyrampOrgId: string;
@@ -4038,6 +4107,63 @@ declare enum AttemptClosure {
4038
4107
  Expired = "expired",
4039
4108
  Ended = "ended"
4040
4109
  }
4110
+ declare const MergeConflictV1Schema: z.ZodObject<{
4111
+ repository: z.ZodDiscriminatedUnion<"provider", [
4112
+ z.ZodObject<{
4113
+ provider: z.ZodLiteral<SourceProvider.GitHub>;
4114
+ providerAccountId: z.ZodString;
4115
+ providerRepositoryId: z.ZodString;
4116
+ }, "strict", z.ZodTypeAny, {
4117
+ provider: SourceProvider.GitHub;
4118
+ providerAccountId: string;
4119
+ providerRepositoryId: string;
4120
+ }, {
4121
+ provider: SourceProvider.GitHub;
4122
+ providerAccountId: string;
4123
+ providerRepositoryId: string;
4124
+ }>,
4125
+ z.ZodObject<{
4126
+ provider: z.ZodLiteral<SourceProvider.AzureDevOps>;
4127
+ providerAccountId: z.ZodString;
4128
+ providerRepositoryId: z.ZodString;
4129
+ }, "strict", z.ZodTypeAny, {
4130
+ provider: SourceProvider.AzureDevOps;
4131
+ providerAccountId: string;
4132
+ providerRepositoryId: string;
4133
+ }, {
4134
+ provider: SourceProvider.AzureDevOps;
4135
+ providerAccountId: string;
4136
+ providerRepositoryId: string;
4137
+ }>
4138
+ ]>;
4139
+ revisions: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
4140
+ files: z.ZodArray<z.ZodString, "many">;
4141
+ }, "strict", z.ZodTypeAny, {
4142
+ repository: {
4143
+ provider: SourceProvider.GitHub;
4144
+ providerAccountId: string;
4145
+ providerRepositoryId: string;
4146
+ } | {
4147
+ provider: SourceProvider.AzureDevOps;
4148
+ providerAccountId: string;
4149
+ providerRepositoryId: string;
4150
+ };
4151
+ revisions: number[];
4152
+ files: string[];
4153
+ }, {
4154
+ repository: {
4155
+ provider: SourceProvider.GitHub;
4156
+ providerAccountId: string;
4157
+ providerRepositoryId: string;
4158
+ } | {
4159
+ provider: SourceProvider.AzureDevOps;
4160
+ providerAccountId: string;
4161
+ providerRepositoryId: string;
4162
+ };
4163
+ revisions: number[];
4164
+ files: string[];
4165
+ }>;
4166
+ export type MergeConflictV1 = z.infer<typeof MergeConflictV1Schema>;
4041
4167
  declare enum CommitLookup {
4042
4168
  Found = "found",
4043
4169
  Missing = "missing",
@@ -4368,6 +4494,8 @@ export interface V3AttemptState {
4368
4494
  revisionsUploaded?: boolean;
4369
4495
  /** None recorded: the agent stopped without a report for a reason the main step did not see. */
4370
4496
  cause?: V3EndCause;
4497
+ /** What did not merge, when the cause is `merge_conflict` (SKYR-5061). */
4498
+ conflict?: MergeConflictV1;
4371
4499
  }
4372
4500
  /**
4373
4501
  * The attempt end, sent by the post step. The app derives the outcome from it and from the accepted report; the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/testbot-core",
3
- "version": "0.13.0-v3.252",
3
+ "version": "0.13.0-v3.253",
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.",