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

Commit

Permalink
DEVPROD-5665 Update cypress e2e task to not report to cypress cloud (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 authored Mar 20, 2024
1 parent 9bf58ac commit dce9afb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,14 @@ functions:
shell: bash
script: |
${PREPARE_SHELL}
# 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 "${parsley_cypress_record_key}" --reporter junit
# Allow spec filtering for an intentional patch.
if [[ "${requester}" == "patch" ]]; then
yarn cy:run --reporter junit --spec "${cypress_spec}"
else
yarn cy:run --reporter junit
fi
yarn-eslint:
command: shell.exec
params:
Expand Down Expand Up @@ -582,3 +583,8 @@ post:
- func: attach-logkeeper-logs
- func: attach-test-results
- func: attach-codegen-diff

parameters:
- key: cypress_spec
value: cypress/integration/**/*
description: Specify the Cypress spec files to run for user submitted patches running the e2e_test task.
26 changes: 26 additions & 0 deletions src/gql/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ export type Host = {
instanceType?: Maybe<Scalars["String"]["output"]>;
lastCommunicationTime?: Maybe<Scalars["Time"]["output"]>;
noExpiration: Scalars["Boolean"]["output"];
persistentDnsName: Scalars["String"]["output"];
provider: Scalars["String"]["output"];
runningTask?: Maybe<TaskInfo>;
startedBy: Scalars["String"]["output"];
Expand Down Expand Up @@ -1057,6 +1058,7 @@ export type Mutation = {
unschedulePatchTasks?: Maybe<Scalars["String"]["output"]>;
unscheduleTask: Task;
updateHostStatus: Scalars["Int"]["output"];
updateParsleySettings?: Maybe<UpdateParsleySettingsPayload>;
updatePublicKey: Array<PublicKey>;
updateSpawnHostStatus: Host;
updateUserSettings: Scalars["Boolean"]["output"];
Expand Down Expand Up @@ -1315,6 +1317,10 @@ export type MutationUpdateHostStatusArgs = {
status: Scalars["String"]["input"];
};

export type MutationUpdateParsleySettingsArgs = {
opts: UpdateParsleySettingsInput;
};

export type MutationUpdatePublicKeyArgs = {
targetKeyName: Scalars["String"]["input"];
updateInfo: PublicKeyInput;
Expand Down Expand Up @@ -1406,6 +1412,16 @@ export type ParsleyFilterInput = {
expression: Scalars["String"]["input"];
};

/** ParsleySettings contains information about a user's settings for Parsley. */
export type ParsleySettings = {
__typename?: "ParsleySettings";
sectionsEnabled: Scalars["Boolean"]["output"];
};

export type ParsleySettingsInput = {
sectionsEnabled?: InputMaybe<Scalars["Boolean"]["input"]>;
};

/** Patch is a manually initiated version submitted to test local code changes. */
export type Patch = {
__typename?: "Patch";
Expand Down Expand Up @@ -2866,6 +2882,15 @@ export type UiConfig = {
userVoice?: Maybe<Scalars["String"]["output"]>;
};

export type UpdateParsleySettingsInput = {
parsleySettings: ParsleySettingsInput;
};

export type UpdateParsleySettingsPayload = {
__typename?: "UpdateParsleySettingsPayload";
parsleySettings?: Maybe<ParsleySettings>;
};

/**
* UpdateVolumeInput is the input to the updateVolume mutation.
* Its fields determine how a given volume will be modified.
Expand Down Expand Up @@ -2912,6 +2937,7 @@ export type User = {
displayName: Scalars["String"]["output"];
emailAddress: Scalars["String"]["output"];
parsleyFilters: Array<ParsleyFilter>;
parsleySettings: ParsleySettings;
patches: Patches;
permissions: Permissions;
subscriptions?: Maybe<Array<GeneralSubscription>>;
Expand Down

0 comments on commit dce9afb

Please sign in to comment.