Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Cypress Cloud follow up fixes #255

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
26 changes: 18 additions & 8 deletions jobs/e2e-test-cycloud.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ def runAllTestClients() {
for (i = 0; i < NUM_WORKER_MACHINES; i++) {
def workerId = i; // avoid scoping problems
jobs["e2e-test-${workerId}"] = {
swallowExceptions({
onWorker(WORKER_TYPE, '2h') {
_setupWebapp();
runE2ETests(workerId);
}
}, onException);

onWorker(WORKER_TYPE, '2h') {
_setupWebapp();
runE2ETests(workerId);
}

};
}
parallel(jobs);
Expand All @@ -172,10 +172,20 @@ def runE2ETests(workerId) {

// NOTE: We hard-code the values here as it is an experiment that will be
// removed soon.
def runE2ETestsArgs = ["env", "CYPRESS_PROJECT_ID=2c1iwj", "CYPRESS_RECORD_KEY=4c530cf3-79e5-44b5-aedb-f6f017f38cb5", "./dev/cypress/e2e/tools/start-cypress-cloud-run.ts"];
def runE2ETestsArgs = [
"./dev/cypress/e2e/tools/start-cypress-cloud-run.ts",
"--cyConfig baseUrl=\"${E2E_URL}\""
];

dir('webapp/services/static') {
exec(runE2ETestsArgs);
// We build the secrets first, so that we can create test users in our
// tests.
sh("yarn cypress:secrets");

withEnv(["CYPRESS_PROJECT_ID=2c1iwj",
"CYPRESS_RECORD_KEY=4c530cf3-79e5-44b5-aedb-f6f017f38cb5"]) {
exec(runE2ETestsArgs);
}
}
}

Expand Down