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

DEVPROD-5665 Update cypress e2e task to not report to cypress cloud #515

Merged
merged 4 commits into from
Mar 20, 2024
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
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}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this already works without it, but should we add the parameters block like we have in spruce? I'm not really sure what benefit the block gives though 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure just added it for consistency!
I was kind of curious about what it did too since I didn't see it in the docs.
I think it does 2 things; applies default values for patch params that are loaded in as expansions and also provides a description when using the evergreen list command in the cli.

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
Loading