Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-20617 Only upload to cypress if on a pr, patch or mainline commit #361

Merged
merged 3 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
37 changes: 35 additions & 2 deletions src/gql/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ export type ClientConfig = {
latestRevision?: Maybe<Scalars["String"]>;
};

export enum CloneMethod {
LegacySsh = "LEGACY_SSH",
Oauth = "OAUTH",
}

export type CloudProviderConfig = {
__typename?: "CloudProviderConfig";
aws?: Maybe<AwsConfig>;
Expand Down Expand Up @@ -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"];
Expand All @@ -339,6 +344,28 @@ export type Distro = {
workDir: Scalars["String"];
};

export type DistroEvent = {
__typename?: "DistroEvent";
after?: Maybe<Scalars["Map"]>;
before?: Maybe<Scalars["Map"]>;
data?: Maybe<Scalars["Map"]>;
timestamp: Scalars["Time"];
user: Scalars["String"];
};

/** DistroEventsInput is the input to the distroEvents query. */
export type DistroEventsInput = {
before?: InputMaybe<Scalars["Time"]>;
distroId: Scalars["String"];
limit?: InputMaybe<Scalars["Int"]>;
};

export type DistroEventsPayload = {
__typename?: "DistroEventsPayload";
count: Scalars["Int"];
eventLogEntries: Array<DistroEvent>;
};

export type DistroInfo = {
__typename?: "DistroInfo";
bootstrapMethod?: Maybe<Scalars["String"]>;
Expand All @@ -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"];
Expand Down Expand Up @@ -1783,6 +1810,7 @@ export type Query = {
clientConfig?: Maybe<ClientConfig>;
commitQueue: CommitQueue;
distro?: Maybe<Distro>;
distroEvents: DistroEventsPayload;
distroTaskQueue: Array<TaskQueueItem>;
distros: Array<Maybe<Distro>>;
githubProjectConflicts: GithubProjectConflicts;
Expand Down Expand Up @@ -1840,6 +1868,10 @@ export type QueryDistroArgs = {
distroId: Scalars["String"];
};

export type QueryDistroEventsArgs = {
opts: DistroEventsInput;
};

export type QueryDistroTaskQueueArgs = {
distroId: Scalars["String"];
};
Expand Down Expand Up @@ -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;
Expand Down