diff --git a/.evergreen.yml b/.evergreen.yml index b50126a0..37b8832e 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -247,7 +247,12 @@ functions: shell: bash script: | ${PREPARE_SHELL} - yarn cy:run --record --key ${cypress_record_key} --reporter junit + # Only record to cypress cloud if this is a pr or a mainline commit. + if [[ "${requester}" == "github_pr" || "${requester}" == "commit" || "$requester" == "patch" ]]; then + yarn cy:run --record --key "${cypress_record_key}" --reporter junit + else + yarn cy:run --reporter junit + fi yarn-eslint: command: shell.exec diff --git a/src/gql/generated/types.ts b/src/gql/generated/types.ts index 5d4ab343..9f89f893 100644 --- a/src/gql/generated/types.ts +++ b/src/gql/generated/types.ts @@ -179,6 +179,11 @@ export type ClientConfig = { latestRevision?: Maybe; }; +export enum CloneMethod { + LegacySsh = "LEGACY_SSH", + Oauth = "OAUTH", +} + export type CloudProviderConfig = { __typename?: "CloudProviderConfig"; aws?: Maybe; @@ -312,7 +317,7 @@ export type Distro = { arch: Scalars["String"]; authorizedKeysFile: Scalars["String"]; bootstrapSettings: BootstrapSettings; - cloneMethod: Scalars["String"]; + cloneMethod: CloneMethod; containerPool: Scalars["String"]; disableShallowClone: Scalars["Boolean"]; disabled: Scalars["Boolean"]; @@ -339,6 +344,28 @@ export type Distro = { workDir: Scalars["String"]; }; +export type DistroEvent = { + __typename?: "DistroEvent"; + after?: Maybe; + before?: Maybe; + data?: Maybe; + timestamp: Scalars["Time"]; + user: Scalars["String"]; +}; + +/** DistroEventsInput is the input to the distroEvents query. */ +export type DistroEventsInput = { + before?: InputMaybe; + distroId: Scalars["String"]; + limit?: InputMaybe; +}; + +export type DistroEventsPayload = { + __typename?: "DistroEventsPayload"; + count: Scalars["Int"]; + eventLogEntries: Array; +}; + export type DistroInfo = { __typename?: "DistroInfo"; bootstrapMethod?: Maybe; @@ -354,7 +381,7 @@ export type DistroInput = { arch: Scalars["String"]; authorizedKeysFile: Scalars["String"]; bootstrapSettings: BootstrapSettingsInput; - cloneMethod: Scalars["String"]; + cloneMethod: CloneMethod; containerPool: Scalars["String"]; disableShallowClone: Scalars["Boolean"]; disabled: Scalars["Boolean"]; @@ -1783,6 +1810,7 @@ export type Query = { clientConfig?: Maybe; commitQueue: CommitQueue; distro?: Maybe; + distroEvents: DistroEventsPayload; distroTaskQueue: Array; distros: Array>; githubProjectConflicts: GithubProjectConflicts; @@ -1840,6 +1868,10 @@ export type QueryDistroArgs = { distroId: Scalars["String"]; }; +export type QueryDistroEventsArgs = { + opts: DistroEventsInput; +}; + export type QueryDistroTaskQueueArgs = { distroId: Scalars["String"]; }; @@ -2101,6 +2133,7 @@ export type ResourceLimitsInput = { virtualMemoryKb: Scalars["Int"]; }; +/** SaveDistroInput is the input to the saveDistro mutation. */ export type SaveDistroInput = { distro: DistroInput; onSave: DistroOnSaveOperation;