[Test failure] Regular training setup looks for a "Results" section; backend now seeds "Summary"
The test is wrong confidence medium · low priority · e2e-tests-production, last seen in build 860
The verdict
- Fix is in
- the automation suite (e2e): the test is wrong (already merged)
- Issue
- ENG-8918 · Completed
- Owner
- [email protected] (last changed studioApiUtility.js (4f4ad96e7))
- Filed in
- Backlog, Test Agent Automation
- History when filed
- regression, this error since build 838
- Already fixed by
- 6c24790b0 [E2E] Nightly 861 e2e fixes (#16601)
- Branches
- fails on production; on master (e2e-tests-master build 882) 0 of 1 fail the same way, 0 pass.
The failure is at the certificate step of setupRegularTrainingForms (studioApiUtility.js:1632 → findActivitySectionNode:258). It looks for a section named "Results" on the new training, and the activity has none.
The training default document set in studiosvc is now TRAINING_RESULTS_DOCSET_TITLE = "Summary" (main tildaobj/exec_obj_defs.go:793). e2e/knowledge/training.md says this was cherry-picked to production in main #17136.
Production's test data still names the certificate section "Results". Master's trainingData.json has trainingCertificate.sectionName "Summary", and master build 881 passes.
The fix is most likely 6c24790b0 (Nightly 861 e2e fixes). Its studioApiUtility.js diff changes the comment "Results / Training Certificate" to "Summary / Training Certificate". I did not see its trainingData.json diff, so I'm assuming the data change is in the same commit.
Bring the master rename to "Summary" to production; don't change the test again. The exportsvc findings are unrelated, and all the requests returned 2xx.
History of this root cause
- filed ENG-8918 · build 860 6d ago
The test is wrong, confidence medium; 1 test; to [email protected] in Backlog
- branches ENG-8918 6d ago
Tests 1
Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 860.
| Test | History | Newest run | Reading |
|---|---|---|---|
| Regular Training › TC-03: Verify regular training setup via training API regular |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.62, 24 lookups)
- Settled by
- the investigating model
- Cost
- $0.62
What it looked up (24, in order)
1. commits repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, since=2026-10-25T00:00:00Z, branch=master · 420 chars back
a8a98801e 2026-11-11T02:49 tilda-gitbot[bot]: [ENG-8560] UI coverage: Studio protocol builder journey (create, import, visit, publish, Schedule of Events) (#16637)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
4f4ad96e7 2026-10-26T04:48 sbadiger: [E2E]: Staff training test (#16106)
2. commits repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, since=2026-10-25T00:00:00Z, branch=production · 242 chars back
0fd9da70a 2026-10-29T15:43 Harsh-Tilda: [E2E] Prod e2e token search fixes (#16299)
1b4c2b2b8 2026-10-26T07:06 tilda-gitbot[bot]: [E2E]: Staff training test (#16109)
3790b1390 2026-10-25T16:03 tilda-gitbot[bot]: [E2E]: Trainning fixes (#16103)
3. read_file repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, start_line=1385, end_line=1420 · 1350 chars back
e2e/utils/apiUtility/studioApiUtility.js (1758 lines), lines 1385-1420:
1385
1386 async updateTbutTrainingSummaryDocId(
1387 orgName,
1388 activityId,
1389 docId,
1390 options = {}
1391 ) {
1392 const {
1393 sectionName = tbutTrainingData.trainingSummary.sectionName,
1394 docReviewName = tbutTrainingData.trainingSummary.docReviewName,
1395 reviewType = tbutTrainingData.trainingSummary.reviewType
1396 } = options;
1397 const docType = options.docType || tbutTrainingData.trainingSummary.docType;
1398
1399 logger.info(
1400 `Updating TBUT training summary doc id for activity ${activityId} in "${sectionName}"`
1401 );
1402
1403 const { activityDetails, sectionFormId, graphNode, blockObj } =
1404 await this.findActivitySectionBlock(orgName, activityId, sectionName, {
1405 objtype: 'DocReview',
1406 blockName: docReviewName
1407 });
1408 let typeId = '';
1409 if (docType) {
1410 const documentApiUtility = new DocumentApiUtility(this.request);
1411 typeId = await documentApiUtility.getDocumentTypeIdByName(
1412 orgName,
1413 docType
1414 );
1415 }
1416 const putPayload = this.buildDocReviewUpdatePayload(blockObj, docId, {
1417 reviewType,
1418 docType: typeId
1419 });
1420
4. search_code repo=cleopatra, text=sectionName:, path_prefix=e2e · 301 chars back
e2e/utils/apiUtility/studioApiUtility.js
1499: sectionName: videoSectionName,
1504: sectionName: quizSectionName
1514: sectionName: eyeTestSectionName,
1539: sectionName: options.summarySectionName,
e2e/tests/studio/createProtocolFromJson.spec.js
649: // sectionName: section.name,
5. search_code repo=cleopatra, text=trainingSummary, path_prefix=e2e · 394 chars back
e2e/utils/apiUtility/studioApiUtility.js
1418: sectionName = tbutTrainingData.trainingSummary.sectionName,
1419: docReviewName = tbutTrainingData.trainingSummary.docReviewName,
1420: reviewType = tbutTrainingData.trainingSummary.reviewType
1422: const docType = options.docType || tbutTrainingData.trainingSummary.docType;
e2e/pages/training/trainingData.json
44: "trainingSummary": {
6. read_file repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, start_line=1595, end_line=1660 · 2497 chars back
e2e/utils/apiUtility/studioApiUtility.js (1758 lines), lines 1595-1660:
1595 let documentDocType = options.documentDocType || options.docType || '';
1596 if (!documentDocType) {
1597 const document = await documentApiUtility.getDocumentById(
1598 orgName,
1599 documentTemplateId
1600 );
1601 documentDocType = document?.type ?? '';
1602 }
1603 if (!documentDocType) {
1604 documentDocType = regularTrainingData.trainingDocument.docType;
1605 }
1606
1607 let certificateDocType =
1608 options.certificateDocType || options.docType || '';
1609 if (!certificateDocType) {
1610 const certificate = await documentApiUtility.getDocumentById(
1611 orgName,
1612 certificateTemplateId
1613 );
1614 certificateDocType = certificate?.type ?? '';
1615 }
1616 if (!certificateDocType) {
1617 certificateDocType = regularTrainingData.trainingCertificate.docType;
1618 }
1619
1620 await this.updateTbutTrainingSummaryDocId(
1621 orgName,
1622 activityId,
1623 documentTemplateId,
1624 {
1625 docType: documentDocType,
1626 sectionName: documentSectionName,
1627 docReviewName: documentReviewName,
1628 reviewType: documentReviewType
1629 }
1630 );
1631
1632 await this.updateTbutTrainingSummaryDocId(
1633 orgName,
1634 activityId,
1635 certificateTemplateId,
1636 {
1637 docTyp
… (997 more characters not kept)
7. read_file repo=cleopatra, path=e2e/pages/training/trainingData.json, start_line=1, end_line=80 · 86 chars back
no file e2e/pages/training/trainingData.json in tildabio/cleopatra at the run's commit
8. read_file repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, start_line=1560, end_line=1596 · 1579 chars back
e2e/utils/apiUtility/studioApiUtility.js (1758 lines), lines 1560-1596:
1560 documentReviewName = regularTrainingData.trainingDocument.docReviewName,
1561 documentReviewType = regularTrainingData.trainingDocument.reviewType,
1562 certificateSectionName = regularTrainingData.trainingCertificate
1563 .sectionName,
1564 certificateReviewName = regularTrainingData.trainingCertificate
1565 .docReviewName,
1566 certificateReviewType = regularTrainingData.trainingCertificate.reviewType
1567 } = options;
1568
1569 logger.info(
1570 `Setting up regular training forms for activity ${activityId} (document=${documentTemplateId}, certificate=${certificateTemplateId})`
1571 );
1572
1573 await this.updateTbutTrainingVideoUrl(orgName, activityId, videoUrl, {
1574 sectionName: videoSectionName,
1575 mediaUpdates
1576 });
1577
1578 await this.setupTbutQuizAnswers(orgName, activityId, {
1579 sectionName: quizSectionName
1580 });
1581
1582 await this.addQuizQuestions(orgName, activityId, {
1583 sectionName: quizSectionName,
1584 questions: quizQuestions
1585 });
1586
1587 await this.updateQuizResultsPassingScore(orgName, activityId, {
1588 quizSectionName,
1589 resultsSectionName: quizResultsSectionName,
1590 passingScore
1591 });
1592
1593 const documentApiUtility = new DocumentApiUtility(this.request);
1594
1595 let documentDocType = opt
… (79 more characters not kept)
9. search_code repo=cleopatra, text=regularTrainingData, path_prefix=e2e/utils/apiUtility/studioApiUtility.js · 30 chars back
no match on the default branch
10. search_code repo=cleopatra, text="Results", path_prefix=e2e · 665 chars back
e2e/utils/apiUtility/edlActionApiUtility.js
e2e/publishResults.js
e2e/publish.js
61: `📊 Results file size: ${(resultsContent.length / 1024 / 1024).toFixed(2)} MB`
e2e/jenkins-readme.md
151: - **Stages**: Environment Check → Install Dependencies → Send Start Notification → Setup Cluster (conditional) → Update Environment (conditional) → Reset Database (conditional) → Bootstrap Cluster (co
167: - **Stages**: Environment Check → Install Dependencies → Send Start Notification → Setup Cluster (conditional) → Update Environment (conditional) → Reset Database (conditional) → Bootstrap Cluster (co
e2e/utils/moduleReporter/history.js
e2e/knowledge/documents.md
11. search_code repo=cleopatra, text=trainingCertificate, path_prefix=e2e · 1104 chars back
e2e/knowledge/training.md
126: - The final document set is seeded as **`Summary`**, not `Results` (`TRAINING_RESULTS_DOCSET_TITLE`; cherry-picked to production in main #17136). It holds the `Training Certificate` DocReview. `traini
e2e/utils/apiUtility/studioApiUtility.js
1587: certificateSectionName = regularTrainingData.trainingCertificate
1589: certificateReviewName = regularTrainingData.trainingCertificate
1591: certificateReviewType = regularTrainingData.trainingCertificate.reviewType
1642: certificateDocType = regularTrainingData.trainingCertificate.docType;
e2e/pages/training/trainingData.json
81: "trainingCertificate": {
e2e/pages/training/training.page.js
105: this.trainingCertificateData = this.trainingSlideover.locator(
228: await expect(this.trainingCertificateData).toContainText(
e2e/pages/visitExecution/visitExecStudy.page.js
192: this.trainingCertificateButton = page.getByTestId(
205: this.trainingCertificateSignedText = page.getByText(
5145: await expect(this.trainingCertificateButton).toHaveText(
5155: await this.trainingCertificateButton.click();
12. read_file repo=cleopatra, path=e2e/knowledge/training.md, start_line=105, end_line=145 · 52 chars back
e2e/knowledge/training.md (99 lines), lines 105-99:
13. read_file repo=cleopatra, path=e2e/pages/training/trainingData.json, start_line=60, end_line=100 · 86 chars back
no file e2e/pages/training/trainingData.json in tildabio/cleopatra at the run's commit
14. read_file repo=cleopatra, path=e2e/knowledge/training.md, start_line=1, end_line=99 · 8192 chars back
e2e/knowledge/training.md (99 lines), lines 1-99:
1 # Training — Module Knowledge Base
2
3 > **Purpose:** The training chain end to end: document templates built in the doc builder, a studio TRAINING or TBUT activity configured over the API, a training created and assigned in the Studio Trainings tab, and a tr
4 >
5 > **Last updated:** 2026-09-29 | Side panel no longer shows Allowed attempts; `getStudioActivities` is type-and-state filtered (`fix2809`). | Earlier: 2026-09-17 | Written for TA-138 from `tests/training/regular.spec.js`
6
7 ---
8
9 ## The study Trainings tab has two logs
10
11 Since main #16777 (ENG-8591, 13 Nov) the study Trainings tab's single Training Log is **Study Team Training Log** (`study-trainings-team-log-tab`) and **Site Training Log** (`study-trainings-site-log-tab`), beside Team T
12
13 ## Reading the training logs
14
15 Verified 2026-11-15 on `automation.master` (FE `main-b6287d4`, BE `master-7713ce2`) as Test Admin in the CRO org.
16
17 - **Which log:** a training with no site scope (the staff spec's `scope: 'team'`) is listed only in **Study Team Training Log**; a site-scoped one (regular, TBUT) only in **Site Training Log** (`getTrainingLogPath`, `tra
18 - **Grid vs Table:** the log always mounts as **Grid** (view state is in memory, not persisted), where each training is a column keyed by its id. `VisitStudiesPage.openTrainingLog` switches to **Table** (`trainings-log-v
19 - **Assert through `VisitStudiesPage.expectTrainingLogEntries`**:
… (6692 more characters not kept)
15. search_code repo=cleopatra, text=Summary, path_prefix=e2e/pages/training · 141 chars back
e2e/pages/training/trainingData.json
44: "trainingSummary": {
45: "sectionName": "TBUT Training Summary",
82: "sectionName": "Summary",
16. commits repo=cleopatra, path=e2e/pages/training/trainingData.json, since=2026-10-25T00:00:00Z, branch=master · 272 chars back
08b35d548 2026-11-16T13:33 tilda-gitbot[bot]: [E2E] Cover the study Trainings tabs: Team Trainings, Site Training Log and Study Team Training Log (ENG-8868) (#16854)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
17. commits repo=cleopatra, path=e2e/pages/training/trainingData.json, since=2026-10-25T00:00:00Z, branch=production · 38 chars back
no commits to that path in that window
18. commit_diff repo=cleopatra, sha=08b35d548, path=e2e/pages/training/trainingData.json · 706 chars back
08b35d548 2026-11-16T13:33 tilda-gitbot[bot]: [E2E] Cover the study Trainings tabs: Team Trainings, Site Training Log and Study Team Training Log (ENG-8868) (#16854)
3 files changed: e2e/pages/training/trainingData.json, e2e/tests/training/studyTrainingLogs.spec.js, e2e/utils/apiUtility/trainingApiUtility.js
--- e2e/pages/training/trainingData.json
@@ -4,6 +4,12 @@
"autoplay": true,
"forwardSeek": true
},
+ "studyLogs": {
+ "siteTrainingName": "Site Log Training",
+ "teamTrainingName": "Team Log Training",
+ "siteTrainee": "Test Pi",
+ "teamTrainee": "Cro Dm"
+ },
"staff": {
"trainingName": "Staff Training",
"documentTemplateName": "Staff training document"
19. search_code repo=main, text=TRAINING_RESULTS_DOCSET_TITLE · 198 chars back
studiosvc/pkg/repo/training.go
23: DefaultTrainingResultsDocumentSet = tildaobj.TRAINING_RESULTS_DOCSET_TITLE
tildaobj/exec_obj_defs.go
793: TRAINING_RESULTS_DOCSET_TITLE = "Summary"
20. commits repo=cleopatra, path=e2e/pages/training, since=2026-10-25T00:00:00Z, branch=production · 38 chars back
no commits to that path in that window
21. commits repo=cleopatra, path=e2e/pages/training, since=2026-10-25T00:00:00Z, branch=master · 762 chars back
08b35d548 2026-11-16T13:33 tilda-gitbot[bot]: [E2E] Cover the study Trainings tabs: Team Trainings, Site Training Log and Study Team Training Log (ENG-8868) (#16854)
f9b005e8b 2026-11-16T13:03 tilda-gitbot[bot]: [E2E] Cover the Trainings module's Study Trainings, Study Team and Site Training Logs and Reports (ENG-8870) (#16859)
41981241a 2026-11-16T12:53 tilda-gitbot[bot]: [E2E] Cover Trainings module: organization trainings list and the org training log (ENG-8869) (#16856)
450fde1f8 2026-11-14T15:03 Harsh-Tilda: [E2E] TA 232 own sets (#16823)
9595e30aa 2026-11-11T02:36 asatish: e2e: find toasts by the react-aria markup, not role="status" (#16634)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
22. commit_diff repo=cleopatra, sha=6c24790b0, path=e2e/utils/apiUtility/studioApiUtility.js · 4434 chars back
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
101 files changed: e2e/AGENTS.md, e2e/cleanup.js, e2e/knowledge/ai-review.md, e2e/knowledge/documents.md, e2e/knowledge/events.md, e2e/knowledge/license-visibility.md, e2e/knowledge/organizations.md, e2e/knowledge/studies.md, e2e/knowledge/studio.md, e2e/knowledge/testing-patterns.md, e2e/knowledge/training.md, e2e/knowledge/visit-execution.md, e2e/knowledge/work-orders-audit-log.md, e2e/knowledge/work-orders-language.md, e2e/knowledge/work-orders-wizard.md, e2e/knowledge/work-plans.md, e2e/pages/aiTeammates/aiTeammates.page.js, e2e/pages/aiTeammates/workOrderPage.js, e2e/pages/aiTeammates/workPlanPage.js, e2e/pages/base.page.js, e2e/pages/documents/documentData.js, e2e/pages/documents/documents.page.js, e2e/pages/documents/documentsCRO.page.js, e2e/pages/finance/budget.page.js, e2e/pages/patients/patients.page.js …
--- e2e/utils/apiUtility/studioApiUtility.js
@@ -1526,7 +1526,7 @@ export default class StudioApiUtility extends BaseApiUtility {
* - Video section uses the same TBUT training video
* - Quiz: correctness on default question + add questions from trainingData
* - documentTemplateId → Documents / Training Document 1
- * - certificateTemplateId → Results / Training Certificate
+ * - certificateTemplateId → Summary / Training Certificate
* @param {string} orgName
* @param {string} activityId
* @param {{ documentTemplateId: string, certificateTemplateId: string } |
… (2934 more characters not kept)
23. commit_diff repo=cleopatra, sha=6c24790b0, path=e2e/pages/training/trainingData.json · 10525 chars back
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
101 files changed: e2e/AGENTS.md, e2e/cleanup.js, e2e/knowledge/ai-review.md, e2e/knowledge/documents.md, e2e/knowledge/events.md, e2e/knowledge/license-visibility.md, e2e/knowledge/organizations.md, e2e/knowledge/studies.md, e2e/knowledge/studio.md, e2e/knowledge/testing-patterns.md, e2e/knowledge/training.md, e2e/knowledge/visit-execution.md, e2e/knowledge/work-orders-audit-log.md, e2e/knowledge/work-orders-language.md, e2e/knowledge/work-orders-wizard.md, e2e/knowledge/work-plans.md, e2e/pages/aiTeammates/aiTeammates.page.js, e2e/pages/aiTeammates/workOrderPage.js, e2e/pages/aiTeammates/workPlanPage.js, e2e/pages/base.page.js, e2e/pages/documents/documentData.js, e2e/pages/documents/documents.page.js, e2e/pages/documents/documentsCRO.page.js, e2e/pages/finance/budget.page.js, e2e/pages/patients/patients.page.js …
--- e2e/AGENTS.md
@@ -114,7 +114,7 @@ page
// ✅ Role query is fine when the label is stable and unique
page.getByRole('button', { name: 'Save Draft' });
-// ❌ Role query on an icon-only button — no accessible name, will time out
+// ❌ Role query on an icon-only button — its name ('Close') is shared, strict mode fails
page.getByRole('button', { name: /close/i });
// ❌ Fragile CSS attribute chain — add a testId instead
@@ -127,31 +127,31 @@ The `Icon` component always renders `data-testid="icon-{value}"` on its SVG. Use
```js
// ✅ Correct
-modal.locator('header').getByTestId('i
… (9025 more characters not kept)
24. answer json={"category":"test_bug","title":"Regular training setup looks for a... · 30 chars back
repo must be cleopatra or main
What it was shown (build 860, 37.3 KB)
The run
{
"job": "e2e-tests-production",
"build": 860,
"kind": "ui-tests",
"result": "UNSTABLE",
"started": "2026-11-16T20:36:09Z",
"tests": 600,
"failed": 18,
"test_commit": "ee3a2cbd4",
"branch": "production",
"cluster_prepared": {
"mode": "verify",
"result": "ready",
"product_commit": "a654678"
}
}
services
[
"docsvc",
"execsvc",
"patientsvc",
"schedsvc",
"enrollsvc",
"studiosvc",
"finsvc",
"notifsvc",
"dslsvc",
"authz",
"dashQL",
"dashRsvc",
"regsvc",
"advpsvc",
"workplansvc",
"datasvc",
"payoutsvc",
"tusker",
"authsvc",
"eventsvc",
"ehrsvc",
"docproc",
"studioai",
"sense"
]
The cluster during the run
{
"cluster": "automation",
"findings_opened_around_the_run": [
{
"kind": "error.novel",
"severity": "critical",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 157\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 81
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 14\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 97
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 7\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 133
}
],
"long_standing_findings_left_out": 16,
"pods_in_trouble_during_the_run": [],
"deploys_during_the_run": []
}
The group
{
"tests": 1,
"suite": "regular",
"members": [
{
"test": "regular::TC-03: Verify regular training setup via training API",
"pattern": "regression",
"meaning": "failed the last 14 runs in a row after passing 5 of the 10 before: something changed, so it is not flaky",
"newest_first": "F F F F F F F F F F F F F F P F F F P P P P F F",
"failing_in_a_row": 14,
"this_error_in_a_row": 14,
"this_error_since_build": 838,
"build_before_this_error": 831,
"failing_since_build": 838,
"last_passed_build": 831
}
]
}
The failure
{
"test": "regular::TC-03: Verify regular training setup via training API",
"status": "error",
"message": "Activity section \"Results\" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191",
"traceback_tail": " at utils/apiUtility/studioApiUtility.js:258\n\n 256 | );\n 257 | if (!sectionNode?.obj?.tildaid) {\n > 258 | throw new Error(\n | ^\n 259 | `Activity section \"${sectionName}\" not found on activity ${activityDetails?.tildaid}`\n 260 | );\n 261 | }\n at StudioApiUtility.findActivitySectionNode (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:258:13)\n at StudioApiUtility.findActivitySectionBlock (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:273:30)\n at StudioApiUtility.updateTbutTrainingSummaryDocId (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1404:7)\n at StudioApiUtility.setupRegularTrainingForms (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1632:5)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/training/regular.spec.js:122:5\n\n Error Context: reports/training-regular-Regular-T-bc0f3-ning-setup-via-training-API-main/error-context.md\n\n Retry #1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error: Activity section \"Results\" not found on activity ecb83df3-645d-48b7-8478-7958ea29527d\n\n at utils/apiUtility/studioApiUtility.js:258\n\n 256 | );\n 257 | if (!sectionNode?.obj?.tildaid) {\n > 258 | throw new Error(\n | ^\n 259 | `Activity section \"${sectionName}\" not found on activity ${activityDetails?.tildaid}`\n 260 | );\n 261 | }\n at StudioApiUtility.findActivitySectionNode (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:258:13)\n at StudioApiUtility.findActivitySectionBlock (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:273:30)\n at StudioApiUtility.updateTbutTrainingSummaryDocId (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1404:7)\n at StudioApiUtility.setupRegularTrainingForms (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1632:5)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/training/regular.spec.js:122:5\n\n Error Context: reports/training-regular-Regular-T-bc0f3-ning-setup-via-training-API-main-retry1/error-context.md\n\n attachment #3: trace (application/zip) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/training-regular-Regular-T-bc0f3-ning-setup-via-training-API-main-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/training-regular-Regular-T-bc0f3-ning-setup-via-training-API-main-retry1/trace.zip\n\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"requests": [
{
"trace_id": "e2e7e573b27ea450c34e31c5da1a9448",
"method": "GET",
"path": "/api/studio/forms/a3deca72-2d9b-45ae-a7a0-cda977a8d35c",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea450c34e31ca2ee57274",
"method": "GET",
"path": "/api/studio/forms/a3deca72-2d9b-45ae-a7a0-cda977a8d35c",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea450c34e31cfb7684c8b",
"method": "PUT",
"path": "/api/studio/docreviews/2d0f5a6e-c389-48e9-8c71-e3127fc40983",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea450c34e31cc318b1002",
"method": "POST",
"path": "/api/studio/graph/a3deca72-2d9b-45ae-a7a0-cda977a8d35c/nodeAction",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea450c34e31c9c778a7ba",
"method": "GET",
"path": "/api/studio/activities/ecb83df3-645d-48b7-8478-7958ea29527d",
"status": "200",
"error": "None"
}
],
"errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids",
"raised_at": "e2e/utils/apiUtility/studioApiUtility.js:258",
"code_frame": " at utils/apiUtility/studioApiUtility.js:258\n\n 256 | );\n 257 | if (!sectionNode?.obj?.tildaid) {\n> 258 | throw new Error(\n | ^\n 259 | `Activity section \"${sectionName}\" not found on activity ${activityDetails?.tildaid}`\n 260 | );\n 261 | }",
"attempts": {
"errors": [
"Error: Activity section \"Results\" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191",
"Error: Activity section \"Results\" not found on activity ecb83df3-645d-48b7-8478-7958ea29527d"
],
"note": "the attempts failed differently: the reported error is the last one's, read the first too"
}
}
The test's history
{
"pattern": "regression",
"meaning": "failed the last 14 runs in a row after passing 5 of the 10 before: something changed, so it is not flaky",
"newest_first": "F F F F F F F F F F F F F F P F F F P P P P F F",
"failing_in_a_row": 14,
"this_error_in_a_row": 14,
"this_error_since_build": 838,
"build_before_this_error": 831
}
other_branch
{
"branch": "master",
"job": "e2e-tests-master",
"build": 881,
"these_tests_there": {
"passing": 1
},
"reading": "fails on production only: the same test passes on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.",
"only_on_master": {
"path": "e2e/tests/training/regular.spec.js",
"commits": [
{
"sha": "450fde1f8",
"subject": "[E2E] TA 232 own sets (#16823)",
"login": "Harsh-Tilda",
"date": "2026-11-14T15:03"
},
{
"sha": "a4e9aea2b",
"subject": "[E2E] TA 230 shared state (#16769)",
"login": "Harsh-Tilda",
"date": "2026-11-12T17:57"
},
{
"sha": "29817b18b",
"subject": "[E2E] build the shared studies per study, only for the specs that ask (#16701)",
"login": "Harsh-Tilda",
"date": "2026-11-11T17:24"
},
{
"sha": "6fa3ebc48",
"subject": "[E2E]: Simplify execution (#16679)",
"login": "sbadiger",
"date": "2026-11-11T10:44"
},
{
"sha": "11c6b32b4",
"subject": "[E2E] changes folder structure and run to run module wise (#16639)",
"login": "Harsh-Tilda",
"date": "2026-11-10T11:42"
},
{
"sha": "6c24790b0",
"subject": "[E2E] Nightly 861 e2e fixes (#16601)",
"login": "Harsh-Tilda",
"date": "2026-11-08T18:16"
},
{
"sha": "02760955f",
"subject": "Update app header and app sidebar (#15925)",
"login": "avdkishore",
"date": "2026-10-25T02:37"
}
]
}
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "ee3a2cbd4",
"path": "e2e/tests/training/regular.spec.js",
"from_line": 100,
"failing_line": 100,
"code": "100> test('TC-03: Verify regular training setup via training API', async ({\n101 studioApiUtility,\n102 documentApiUtility\n103 }) => {\n104 const documentTemplateId = await documentApiUtility.getDocIdByName(\n105 croOrg,\n106 documentTemplateName\n107 );\n108 const certificateTemplateId = await documentApiUtility.getDocIdByName(\n109 croOrg,\n110 certificateTemplateName\n111 );\n112 \n113 trainingTemplateName = await studioApiUtility.createRegularTraining(\n114 croOrg,\n115 { studyName: studyName }\n116 );\n117 const activity = await studioApiUtility.getStudioActivities(\n118 croOrg,\n119 trainingTemplateName,\n120 { trainingFlag: true }\n121 );\n122 await studioApiUtility.setupRegularTrainingForms(croOrg, activity.tildaid, {\n123 documentTemplateId,\n124 certificateTemplateId\n125 });\n126 await studioApiUtility.publishActivity(croOrg, trainingTemplateName, {\n127 trainingFlag: true\n128 });\n129 logger.info(\n130 `Regular training published: ${trainingTemplateName} (doc=${documentTemplateName}, cert=${certificateTemplateName})`\n131 );\n132 });\n133 \n134 test('TC-04: Verify Regular Training appears in Trainings Table', async ({\n135 protocolPage\n136 }) => {\n137 await protocolPage.openTab('Trainings', croOrg);\n138 await expect(\n139 protocolPage.page\n140 .locator('[data-testid*=trainings-table-row-]')\n141 .getByText(trainingTemplateName)\n142 ).toBeVisible();\n143 });\n144 \n145 test('TC-05: Verify Creating Regular Training in study and auto assigning to PI users', async ({\n146 trainingPage\n147 }) => {\n148 await trainingPage.searchStudy(studyName);\n149 await trainingPage.studyTrainingsTab.click();\n150 await trainingPage.waitForTime(1000);\n151 trainingDetails = await trainingPage.createTraining(trainingTemplateName, {\n152 roles: ['principal investigator']\n153 });\n154 });\n155 \n156 test('TC-06: Verify auto assignment and training details', async ({\n157 trainingPage\n158 }) => {\n159 await trainingPage.searchStudy(studyName);\n160 await trainingPage.studyTrainingsTab.click();\n161 await trainingPage.allTrainingTab.click();\n162 await expect(trainingPage.trainingsSearchInput).toBeVisible();\n163 await trainingPage.openTraining(trainingDetails.name);\n164 await trainingPage.verifyTraineesInSidePanel([\n165 { name: piUser.userName, status: 'Pending' }\n166 ]);\n167 await trainingPage.verifyTrainingSidePanelDetails({\n168 trainingName: trainingDetails.name,\n169 template: trainingTemplateName,\n170 description: trainingDetails.description,"
}
The page when it failed
{
"what": "Playwright's accessibility snapshot of the page at the moment the test gave up (error-context.md): what was really on screen",
"snapshot": "# Instructions\n\n- Following Playwright test failed.\n- Explain why, be concise, respect Playwright best practices.\n- Provide a snippet of code with the fix, if possible.\n\n# Test info\n\n- Name: tests/training/regular.spec.js >> Regular Training >> TC-03: Verify regular training setup via training API\n- Location: tests/training/regular.spec.js:100:3\n\n# Error details\n\n```\nError: Activity section \"Results\" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191\n```\n\n# Test source\n\n```ts\n 158 | requestPayload\n 159 | );\n 160 | await FunctionHelper.handleApiResponse(\n 161 | createActivityResponse,\n 162 | 'Create TBUT activity'\n 163 | );\n 164 | const activity = await createActivityResponse.json();\n 165 | logger.info(\n 166 | `TBUT activity created successfully with id: ${activity.tildaid}`\n 167 | );\n 168 | await FunctionHelper.sleep(3000);\n 169 | return name;\n 170 | }\n 171 | \n 172 | async getStudioActivities(orgName, activityName, options = {}) {\n 173 | const { limit = 30, state = 'draft', trainingFlag = false } = options;\n 174 | logger.info(`Getting studio activities for ${activityName} `);\n 175 | const requestOptions = await this.getOptions(orgName);\n 176 | let requestUrl = `${this.baseURL}/activities?limit=${limit}&skip=0&state=${state}`;\n 177 | if (trainingFlag) {\n \u2026\n 188 | `Studio activity ${activityName} ${activity ? 'found' : 'not found'}`\n \u2026\n 255 | node.obj?.name === sectionName || node.obj?.title === sectionName\n 256 | );\n 257 | if (!sectionNode?.obj?.tildaid) {\n> 258 | throw new Error(\n | ^ Error: Activity section \"Results\" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191\n 259 | `Activity section \"${sectionName}\" not found on activity ${activityDetails?.tildaid}`\n 260 | );\n 261 | }\n 262 | return sectionNode;\n \u2026\n 302 | throw new Error(\n 303 | `Block not found in section \"${sectionName}\" (objtype=${objtype ?? 'any'}, blockName=${blockName ?? 'any'}, index=${blockIndex})`\n \u2026\n 320 | throw new Error(\n 321 | `Block details not found for ${block.objtype} ${block.objid} in section \"${sectionName}\"`\n \u2026\n 338 | throw new Error(`Unsupported studio resource type: ${objtype}`);"
}
The code where it failed
{
"path": "e2e/utils/apiUtility/studioApiUtility.js",
"failing_line": 258,
"code": "233 }\n234 if (objid) {\n235 query.set('objid', objid);\n236 }\n237 \n238 logger.info(\n239 `Getting activity section form ${sectionFormId}${objid ? ` (objid=${objid})` : ''}`\n240 );\n241 const response = await this.request.get(\n242 `${this.baseURL}/forms/${sectionFormId}?${query.toString()}`,\n243 await this.getOptions(orgName)\n244 );\n245 await FunctionHelper.handleApiResponse(\n246 response,\n247 'Get activity section form'\n248 );\n249 return response.json();\n250 }\n251 \n252 findActivitySectionNode(activityDetails, sectionName) {\n253 const sectionNode = (activityDetails?.graphnodes ?? []).find(\n254 (node) =>\n255 node.obj?.name === sectionName || node.obj?.title === sectionName\n256 );\n257 if (!sectionNode?.obj?.tildaid) {\n258> throw new Error(\n259 `Activity section \"${sectionName}\" not found on activity ${activityDetails?.tildaid}`\n260 );\n261 }\n262 return sectionNode;\n263 }\n264 \n265 async findActivitySectionBlock(\n266 orgName,\n267 activityId,\n268 sectionName,\n269 blockMatch = {}\n270 ) {"
}
Commits in the window
{
"between": "build 831 (last pass, started 2026-11-03T16:49:26Z) and build 838 (first failure of the streak, started 2026-11-05T07:46:35Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "2026-11-03T16:49 to 2026-11-05T07:46 UTC",
"note": "by date: the runs did not record their commits, so these are the commits to the files involved between the last passing run and the first failing one",
"commits": []
}
}
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong (already merged, see below).
**What failed:** `Activity section "Results" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191`
**The test is wrong**, confidence medium. Found in `e2e-tests-production` build 860: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-production/860).
**Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/7d6d7f599ac1a1)
**Branches:** fails on production only: the same test passes on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.
The failure is at the certificate step of setupRegularTrainingForms (studioApiUtility.js:1632 → findActivitySectionNode:258). It looks for a section named "Results" on the new training, and the activity has none.
The training default document set in studiosvc is now TRAINING_RESULTS_DOCSET_TITLE = "Summary" (main tildaobj/exec_obj_defs.go:793). e2e/knowledge/training.md says this was cherry-picked to production in main #17136.
Production's test data still names the certificate section "Results". Master's trainingData.json has trainingCertificate.sectionName "Summary", and master build 881 passes.
The fix is most likely 6c24790b0 (Nightly 861 e2e fixes). Its studioApiUtility.js diff changes the comment "Results / Training Certificate" to "Summary / Training Certificate". I did not see its trainingData.json diff, so I'm assuming the data change is in the same commit.
Bring the master rename to "Summary" to production; don't change the test again. The exportsvc findings are unrelated, and all the requests returned 2xx.
**Missing on production:** [6c24790b0](https://github.com/tildabio/cleopatra/commit/6c24790b017ed2fb9343031f5596fd5ba84a39b5) [E2E] Nightly 861 e2e fixes (#16601) (Harsh-Tilda, 2026-11-08T18:16). It is on master and not on production: bring it over, or wait for the next release.
**Assigned to:** [email protected] (last changed studioApiUtility.js (4f4ad96e7)).
**Failing tests (1):**
- [regular::TC-03: Verify regular training setup via training API](https://xray.tilda.pizza/tests/case/e22d5260ada81056) (failing since build 838)
**Error:**
```
Activity section "Results" not found on activity ed90c023-921b-4c9e-bd6f-98e46e41c191
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 24 lookups in the code and its history.
Group `triage:7d6d7f599ac1a1` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++