Xray
all clusters 1h 6h 24h 48h 3d 5d 7d 14d 30d ‹
Last 1 hour▾
Ends now. Anything up to this cluster's 30-day retention.
Start and end times
Cancel
Interpreted in UTC (change it at the right of this bar). Earliest available: 2026-10-24 11:42:37.
› →|
updated 6d ago
Sample data. This database was generated by scripts/seed_dev_db.py — every service, deploy, person and figure on this page is synthetic. Names are sample.*@seed.invalid and image tags are prefixed SEED-. Nothing here happened.

‹ Test triage

[Test failure] Document-only training setup deletes Quiz Results after the Quiz already removed it

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-8914 · Ready for Development
Owner
[email protected] (last changed functionHelper.js (8785991e2))
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)
On screen
No page was involved: this is an API setup step that failed before any UI action.
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 test deletes a stale list of sections. In studioApiUtility.js:1730-1735 (setupDocumentOnlyTrainingForms) it reads the activity once, then deletes every section except Documents. Deleting the Quiz also removes its Quiz Results page, so the later delete of that page names a ref that no longer exists. studiosvc then replies 'ref … is not part of the named protocol/activity scope' (node_action_scope.go:185). Both attempts hit this on different activities. The failure is not an authorization problem. Master passes because commit 6c24790b0 (cleopatra, 'Nightly 861 e2e fixes') re-reads the activity after every delete. Its comment says 'deleting a quiz also removes its Quiz Results page'. Production lacks it. I did not confirm the cascade in the studiosvc delete code. It is inferred from that comment and the error text. Build 838 is when it started on production. The training seed order changed on production on 2026-11-04 (6eaaa4b3a, 601138cba), but those commits are not in the bundle's change list. Caution: 6c24790b0 also calls a certificateDisabled PATCH. Production's studiosvc (a654678c2) may not support it, because the training Results/certificate commit d93080df2 is on master only. Port only the re-read-after-each-delete loop to production, or bring the whole change over together with its product commit.

History of this root cause

  • filed ENG-8914 · build 860 6d ago
    The test is wrong, confidence medium; 1 test; to [email protected] in Backlog

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.

How the agent decided

Models
claude-sonnet-5-5 ($0.73, 22 lookups)
Settled by
the investigating model
Cost
$0.73

What it looked up (22, in order)

1. read_file repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, start_line=1670, end_line=1760 · 3450 chars back
e2e/utils/apiUtility/studioApiUtility.js (1758 lines), lines 1670-1758: 1670 `Setting "${resultsSectionName}" passing score to ${passingScore} for "${quizSectionName}" on activity ${activityId}` 1671 ); 1672 const requestPayload = await this.getOptions(orgName); 1673 requestPayload.data = { 1674 reportsOn: [quizNode.objid], 1675 passingScore 1676 }; 1677 const response = await this.request.put( 1678 `${this.baseURL}/graph/${activityId}/results/${resultsNode.objid}`, 1679 requestPayload 1680 ); 1681 await FunctionHelper.handleApiResponse( 1682 response, 1683 'Update quiz results passing score' 1684 ); 1685 } 1686 1687 async deleteActivitySection(orgName, activityId, sectionNode) { 1688 logger.info( 1689 `Deleting section "${sectionNode.obj?.name}" from activity ${activityId}` 1690 ); 1691 const requestPayload = await this.getOptions(orgName); 1692 requestPayload.data = { 1693 action: 'del', 1694 objid: sectionNode.objid, 1695 objtype: sectionNode.objtype, 1696 activityid: activityId, 1697 parentmap: { activityid: activityId } 1698 }; 1699 const response = await this.request.post( 1700 `${this.baseURL}/graph/${activityId}/nodeAction`, 1701 requestPayload 1702 ); 1703 await FunctionHelper.handleApiResponse(response, 'Delete activity section'); 1704 return response.json(); 1705 } 1706 1707 /** 1708 * Configures … (1950 more characters not kept)
2. commits repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, branch=production, since=2026-10-25T00:00:00Z · 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. search_code repo=main, text=is not part of the named protocol/activity scope · 151 chars back
studiosvc/pkg/repo/node_action_scope.go 185: return fmt.Errorf("ref %s is not part of the named protocol/activity scope: %w", id, ErrOrgAccessDenied)
4. read_file repo=main, path=studiosvc/pkg/repo/node_action_scope.go, start_line=100, end_line=220 · 4409 chars back
studiosvc/pkg/repo/node_action_scope.go (189 lines), lines 100-189: 100 if protocolRooted { 101 prop = "{protocolid:$protocolId}" 102 } 103 return fmt.Sprintf(`match(r:%s)-[:%s%s]->(:%s) where r.tildaid in $refIds return collect(distinct r.tildaid)`, 104 tildaobj.DBTypeGraphNodeRef, tildaobj.REL_GRAPH_NODE_REF_TO_GRAPH_NODE, prop, tildaobj.DBTypeGraphNode) 105 } 106 107 // A question-owned response set (e.g. a training quiz's) hangs only off its question's spec by 108 // QUESTION_SPEC_TO_RESPONSE_SET, so it is in scope when that question is reachable from a root or the org. 109 // 110 // Roots are ActivityV2 / ProtocolVersionV2 nodes, which all carry FormV2; the placed object has no common label, so 111 // the root label is what gives the planner an index -- unlabeled, `root.tildaid in $roots` is an AllNodesScan. 112 // r3 names the question edges so the expand skips a question's answer edges; the WHERE still applies the edge lists. 113 func nodeActionObjectScopeCypher() string { 114 return fmt.Sprintf(`unwind $objIds as id 115 optional match (root:%[1]s)-[r1]->(o{tildaid:id}) where root.tildaid in $roots and type(r1) in $rootEdges 116 optional match (:%[2]s{tildaid:$orgId})-[r2]->(o2{tildaid:id}) where type(r2) in $orgEdges 117 optional match (qroot:%[1]s|%[2]s)-[r3:%[8]s|%[9]s|%[10]s]->(:%[3]s)-[:%[4]s]->(:%[5]s)-[:%[6]s]->(:%[7]s{tildaid:id}) 118 where (qroot.tildaid in $roots and type(r3) in $rootEdges) or (qroot.tildaid = $orgId and type(r3) in $orgEdges) 119 w … (2909 more characters not kept)
5. commits repo=main, path=studiosvc/pkg/repo/node_action_scope.go · 623 chars back
a6636ab23 2026-11-11T04:47 sureshboddapati: chat-agent: study configuration chat takes structure changes, plain-English conditions, plans, import leaves and uploaded video; studiosvc places an org's to-do 9fbee5e15 2026-10-11T06:37 mmukkama: fix(studiosvc): label nodeAction scope-check roots to avoid AllNodesScan (ENG-7137) (#16526) 94ed0edbc 2026-10-08T23:58 taylorfutral: fix(studiosvc): allow question-owned ResponseSets in nodeAction scope check (ENG-7137) (#16485) 975e51bc0 2026-10-06T17:18 sureshboddapati: security: cross-tenant fixes for workplansvc, studiosvc, patientsvc, notifsvc and authz (ENG-7137) (#16395)
6. commits repo=main, path=studiosvc/pkg/repo/node_action_scope.go, branch=production · 418 chars back
9fbee5e15 2026-10-11T06:37 mmukkama: fix(studiosvc): label nodeAction scope-check roots to avoid AllNodesScan (ENG-7137) (#16526) 94ed0edbc 2026-10-08T23:58 taylorfutral: fix(studiosvc): allow question-owned ResponseSets in nodeAction scope check (ENG-7137) (#16485) 975e51bc0 2026-10-06T17:18 sureshboddapati: security: cross-tenant fixes for workplansvc, studiosvc, patientsvc, notifsvc and authz (ENG-7137) (#16395)
7. read_file repo=main, path=studiosvc/pkg/repo/node_action_scope.go, start_line=1, end_line=100 · 4852 chars back
studiosvc/pkg/repo/node_action_scope.go (189 lines), lines 1-100: 1 package repo 2 3 import ( 4 "context" 5 "fmt" 6 "slices" 7 8 "github.com/tildabio/main/tildaobj" 9 ) 10 11 // Everything created under a protocol or activity root gets an edge from that root: forms hang off 12 // PROTOCOL_TO_FORM / ACTIVITY_TO_FORM, leaf objects off PROTOCOL_TO_<LEAF> / ACTIVITY_TO_<LEAF>. 13 var nodeActionRootEdges = []string{ 14 tildaobj.REL_PROTOCOL_TO_FORM, tildaobj.REL_PROTOCOL_TO_QUESTION, tildaobj.REL_PROTOCOL_TO_RESPONSE_SET, 15 tildaobj.REL_PROTOCOL_TO_STATEMENT, tildaobj.REL_PROTOCOL_TO_DOC_UPLOAD, tildaobj.REL_PROTOCOL_TO_TIMER, 16 tildaobj.REL_ACTIVITY_TO_FORM, tildaobj.REL_ACTIVITY_TO_QUESTION, tildaobj.REL_ACTIVITY_TO_RESPONSE_SET, 17 tildaobj.REL_ACTIVITY_TO_STATEMENT, tildaobj.REL_ACTIVITY_TO_DOC_UPLOAD, tildaobj.REL_ACTIVITY_TO_TIMER, 18 tildaobj.REL_ACTIVITY_TO_MEDIA, tildaobj.REL_ACTIVITY_TO_DOCREVIEW, tildaobj.REL_ACTIVITY_TO_ESIGN, 19 } 20 21 // nodeActionOrgEdges is the fallback ground for an existing org-library object that is being added to a root 22 // for the first time: the node action itself is what creates its root edge, so none exists yet. 23 var nodeActionOrgEdges = []string{ 24 tildaobj.OrganizationToFormEdgeLabel, tildaobj.OrganizationToQuestionEdgeLabel, 25 tildaobj.OrganizationToResponseSetEdgeLabel, tildaobj.OrganizationToStatementEdgeLabel, 26 tildaobj.OrganizationToDocUploadEdgeLabel, tildaobj.OrganizationToTimerEdgeLabel, 27 tildaobj.Org … (3352 more characters not kept)
8. commits repo=cleopatra, path=e2e/utils/apiUtility/studioApiUtility.js, branch=master, since=2026-10-25T00:00:00Z · 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)
9. commits repo=main, path=studiosvc, branch=production, since=2026-11-01T00:00:00Z · 1563 chars back
a654678c2 2026-11-15T14:50 nkommuri: feat(execsvc,studiosvc): auto queries apply across protocol versions (ENG-7994) (#17446) (#17461) 6f1f11b23 2026-11-09T14:40 tilda-gitbot[bot]: feat(execsvc,studiosvc): return explicit visit anchor on SoE and visit reads (ENG-3096) (#17278) (#17326) cee99a538 2026-11-06T17:02 mmukkama: feat(execlib): store choice answers as a list on ParticipantQuestion (ENG-8210) (#16965) (#17293) 69d3ab2f8 2026-11-06T15:28 asatish: production: cherry-pick per-service schema convergence (#16243, #16833) (#17286) 9ac7682ef 2026-11-06T15:01 tilda-gitbot[bot]: studiosvc: auto query keeps every condition group when reopened (#17229) (#17285) f219659f9 2026-11-05T15:36 Shashank-Agrawal12: Added removed API's needed for preview form (#16616) (#17193) 57f725a89 2026-11-04T18:35 tilda-gitbot[bot]: ENG-7313: explicit visit anchors (criss-cross and future anchors) (#17092) 6eaaa4b3a 2026-11-04T18:02 taylorfutral: fix(studiosvc): seed Documents before the Quiz in new trainings (ENG-8030) (#16848) (#17197) 601138cba 2026-11-04T05:15 taylorfutral: Cherry-pick training work from master since the 2026-10-22 production cut (#17136) 0144b1e6e 2026-11-04T03:53 susheelkumar-cmyk: studiosvc: Study Configuration All tab no longer lists archived rows (ENG-8244) (#17066) (#17109) c7905d47f 2026-11-03T13:26 tilda-gitbot[bot]: studiosvc: export visit/activity system variables when the protocol has none of its own (#17108) (#17110) 1ed7aae59 2026-11-02T16:42 tilda-gitbot[bot]: Do … (63 more characters not kept)
10. commits repo=main, path=studiosvc, branch=master, since=2026-11-01T00:00:00Z · 2769 chars back
4cf808b2a 2026-11-16T15:33 danherberttilda: fix(studiosvc): put the org in the Timer and ESign NODE KEY so org-level titles are unique per org (ENG-8586, ENG-8741) (#17391) b1bea8218 2026-11-16T01:23 sureshboddapati: chat-agent: study setup from documents, and standalone forms in chat (ENG-3080) (#17466) bea983e34 2026-11-15T01:23 nkommuri: feat(execsvc,studiosvc): auto queries apply across protocol versions (ENG-7994) (#17446) 03f9c2d6b 2026-11-13T17:58 Shashank-Agrawal12: authz: organization archive (soft delete) and purge (ENG-7837) (#17340) 3e5ce671e 2026-11-13T12:32 poojalodhi: feat(studiosvc): add GET /api/studio/activities/{id}/objectCounts (ENG-4808) (#17428) 862429c0a 2026-11-13T11:57 sanchitmishra08: studiosvc: flag rules whose compared choices no longer exist when a question's choices change (ENG-6755) (#17179) 89e9249fc 2026-11-13T05:38 susheelkumar-cmyk: studiosvc: show in-protocol and codelist edits in the Studio audit log (ENG-7019) (#17365) 9976e91e8 2026-11-12T21:44 danherberttilda: fix(studiosvc): return the statement's variable name and state in the list API (ENG-7501) (#17411) 681f8cc47 2026-11-12T21:14 sureshboddapati: studiosvc: import the protocol studioai extracts from a study's documents, on pub/sub (ENG-3080) (#17410) c300b8c51 2026-11-12T18:44 danherberttilda: fix(studiosvc): reject blank and whitespace-only variable names server-side (ENG-7694) (#17404) 9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across … (1269 more characters not kept)
11. commit_diff repo=main, sha=6eaaa4b3a · 2802 chars back
6eaaa4b3a 2026-11-04T18:02 taylorfutral: fix(studiosvc): seed Documents before the Quiz in new trainings (ENG-8030) (#16848) (#17197) 1 files changed: studiosvc/pkg/repo/training.go --- studiosvc/pkg/repo/training.go @@ -98,7 +98,7 @@ func (s *DBstorage) InitActivityTraining(ctx context.Context, user *tildaobj.Use } logger.DebugCtx(ctx, "training: created document sets") - // Chain: activity → Intro → Video → Quiz → Quiz Results → Documents → Results + // Chain: activity → Intro → Video → Documents → Quiz → Quiz Results → Results nodeActionCfg := seedNodeActionCfg(org, activityId) nodeActionResp := model.GraphNodeActionResponse{} @@ -119,11 +119,21 @@ func (s *DBstorage) InitActivityTraining(ctx context.Context, user *tildaobj.Use videoRefId := nodeActionResp.Id logger.DebugCtx(ctx, fmt.Sprintf("training: added video questionnaire ref %s", videoRefId)) - nodeActionCfg.ObjId = questionnaireIds[DefaultTrainingQuizQuestionnaire] + nodeActionCfg.ObjId = documentSetIds[DefaultTrainingDocumentsDocumentSet] + nodeActionCfg.ObjType = tildaobj.DBTypeDocumentSetV2 nodeActionCfg.PrevId = videoRefId if err = s.HandleGraphNodeAction(ctx, activityId, nodeActionCfg, &nodeActionResp); err != nil { return err } + documentsRefId := nodeActionResp.Id + logger.DebugCtx(ctx, fmt.Sprintf("training: added documents docset ref %s", documentsRefId)) + + nodeActionCfg.ObjId = questionnaireIds[DefaultTrainingQuizQuestionnaire] + nodeActionCfg.ObjType = tildaobj.DBTypeQuestio … (1302 more characters not kept)
12. commit_diff repo=main, sha=601138cba · 7608 chars back
601138cba 2026-11-04T05:15 taylorfutral: Cherry-pick training work from master since the 2026-10-22 production cut (#17136) 300 files changed: .github/workflows/build-all.yaml, .github/workflows/dependabot-verify.yaml, authz/pkg/canned/policies_eng7147_test.go, authz/pkg/canned/policies_eng8185_test.go, authz/pkg/handlers/delegation.go, authz/pkg/handlers/delegation_publish_test.go, authz/pkg/health/memberlabel.go, authz/pkg/health/org_member_change_test.go, authz/pkg/health/organization.go, authz/pkg/health/site.go, authz/pkg/health/study_actor_changes_test.go, authz/pkg/health/user.go, authz/pkg/health/util.go, authz/pkg/repo/cypher/smo_org_members_test.go, authz/pkg/repo/cypher/staff.go, authz/pkg/repo/delegation.go, authz/pkg/repo/site.go, authz/pkg/repo/smo_org_member_publish_test.go, authz/pkg/repo/staff.go, authz/pkg/repo/training.go, authz/policies/canned.json, common/authlib/requestContext.go, common/authlib/scope.go, common/authlib/scope_capability_test.go, common/authlib/study_ids_test.go … --- .github/workflows/build-all.yaml @@ -263,7 +263,6 @@ jobs: {"name": "studioaisvc", "file": "data-science/studioai/Dockerfile", "context": "data-science", "needs_common": False, "filter_key": "studioaisvc", "base": ""}, {"name": "virtual-assistant","file": "data-science/virtual_assistant/Dockerfile","context": "data-science", "needs_common": False, "filter_key": "virtual_assistant","base": ""}, … (6108 more characters not kept)
13. commits repo=main, path=studiosvc/pkg/repo/training.go, branch=master, since=2026-10-20T00:00:00Z · 423 chars back
d93080df2 2026-10-30T13:20 danherberttilda: feat(studiosvc, execsvc): training Results block, quiz Results pages, Results / certificate switches (ENG-7013) (#16885) efe1bc098 2026-10-29T16:28 taylorfutral: Platform certificate template: applied from a bucket folder, linked to every org (#16722) 987c179f1 2026-10-23T18:16 danherberttilda: fix(studiosvc): seed Documents before the Quiz in new trainings (ENG-8030) (#16848)
14. commits repo=main, path=studiosvc/pkg/repo/training.go, branch=production, since=2026-10-20T00:00:00Z · 257 chars back
6eaaa4b3a 2026-11-04T18:02 taylorfutral: fix(studiosvc): seed Documents before the Quiz in new trainings (ENG-8030) (#16848) (#17197) 601138cba 2026-11-04T05:15 taylorfutral: Cherry-pick training work from master since the 2026-10-22 production cut (#17136)
15. read_file repo=cleopatra, path=e2e/tests/training/staff.spec.js, start_line=1, end_line=72 · 2780 chars back
e2e/tests/training/staff.spec.js (294 lines), lines 1-72: 1 import fs from 'fs'; 2 import FunctionHelper from '../../helpers/functionHelper'; 3 import logger from '../../lib/logger/log'; 4 import { expect, test } from '../../utils/fixtures/visitExec'; 5 6 const data = JSON.parse(fs.readFileSync('./data.json')); 7 const { staff: staffTrainingData } = JSON.parse( 8 fs.readFileSync('./pages/studioData/trainingData.json') 9 ); 10 11 test.describe.configure({ mode: 'serial' }); 12 test.describe('Staff Doc Training', () => { 13 let trainingTemplateName; 14 let documentTemplateName; 15 let documentFileName; 16 let dmUser; 17 let monitorUser; 18 let pmUser; 19 let adminTrainer; 20 const studyName = data.croStudyName; 21 const croOrg = data.croOrg; 22 let trainingDetails = {}; 23 24 test.beforeAll(async ({ userApiUtility }) => { 25 dmUser = await userApiUtility.findUserDetails('Cro Dm'); 26 monitorUser = await userApiUtility.findUserDetails('Cro Monitor'); 27 pmUser = await userApiUtility.findUserDetails('Cro Pm'); 28 adminTrainer = await userApiUtility.findUserDetails('Test Admin'); 29 }); 30 31 test('TC-01: Upload and categorize staff training document', async ({ 32 docCroPage 33 }) => { 34 const documentPath = FunctionHelper.appendFileNameToUpload( 35 'pages/documents/files/HRRF_template.pdf' 36 ); 37 documentFileName = await docCroPage.uploadOrgFile( 38 documentPath, 39 'Training Certificate' 40 … (1280 more characters not kept)
16. commit_diff repo=main, sha=d93080df2, path=studiosvc/pkg/repo/training.go · 6643 chars back
d93080df2 2026-10-30T13:20 danherberttilda: feat(studiosvc, execsvc): training Results block, quiz Results pages, Results / certificate switches (ENG-7013) (#16885) 39 files changed: data-science/chat-agent/src/chat_agent/studio_ops/training_payload.py, data-science/chat-agent/src/chat_agent/tools/training_setup/tr_publish_training.py, data-science/chat-agent/src/chat_agent/tools/training_setup/tr_remove_part.py, data-science/chat-agent/tests/chat_agent/studio_ops/test_training_payload.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/_reader_fakes.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_certificate_part.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_simulate_matches_reader.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_tr_publish_training.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_tr_remove_part.py, data-science/chat-agent/tests/fixtures/training/seeded_training_export.json, execsvc/pkg/handlers/activityV2.go, execsvc/pkg/handlers/training.go, studiosvc/pkg/handlers/form.go, studiosvc/pkg/handlers/graph.go, studiosvc/pkg/handlers/training_results.go, studiosvc/pkg/model/model.go, studiosvc/pkg/repo/form.go, studiosvc/pkg/repo/graph.go, studiosvc/pkg/repo/training.go, studiosvc/pkg/repo/training_certificate.go, studiosvc/pkg/repo/training_certificate_integration_test.go, studiosvc/pkg/repo/training_certificate_test.go, studiosvc/pkg/repo/training_fixed_re … (5143 more characters not kept)
17. commit_diff repo=main, sha=d93080df2, path=studiosvc/pkg/repo/graph.go · 2056 chars back
d93080df2 2026-10-30T13:20 danherberttilda: feat(studiosvc, execsvc): training Results block, quiz Results pages, Results / certificate switches (ENG-7013) (#16885) 39 files changed: data-science/chat-agent/src/chat_agent/studio_ops/training_payload.py, data-science/chat-agent/src/chat_agent/tools/training_setup/tr_publish_training.py, data-science/chat-agent/src/chat_agent/tools/training_setup/tr_remove_part.py, data-science/chat-agent/tests/chat_agent/studio_ops/test_training_payload.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/_reader_fakes.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_certificate_part.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_simulate_matches_reader.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_tr_publish_training.py, data-science/chat-agent/tests/chat_agent/tools/training_setup/test_tr_remove_part.py, data-science/chat-agent/tests/fixtures/training/seeded_training_export.json, execsvc/pkg/handlers/activityV2.go, execsvc/pkg/handlers/training.go, studiosvc/pkg/handlers/form.go, studiosvc/pkg/handlers/graph.go, studiosvc/pkg/handlers/training_results.go, studiosvc/pkg/model/model.go, studiosvc/pkg/repo/form.go, studiosvc/pkg/repo/graph.go, studiosvc/pkg/repo/training.go, studiosvc/pkg/repo/training_certificate.go, studiosvc/pkg/repo/training_certificate_integration_test.go, studiosvc/pkg/repo/training_certificate_test.go, studiosvc/pkg/repo/training_fixed_re … (556 more characters not kept)
18. search_code repo=main, text=RequireNodeActionInScope · 914 chars back
studiosvc/pkg/repo/node_action_scope.go 125: // RequireNodeActionInScope fails with ErrOrgAccessDenied unless every protocol/activity root the node action names 128: func (s *DBstorage) RequireNodeActionInScope(ctx context.Context, org *tildaobj.Organization, graphId string, cfg tildaobj.GraphNodeActionCfg) error { studiosvc/AGENTS.md 81: - the Studio graph action (`HandleGraphNodeAction`, `RequireNodeActionInScope`) and the CRUD routes 106: 4. nodeAction: `RequireNodeActionInScope` checks roots, placed objects and targeted refs. A new placeable objtype is added to `nodeActionRootEdges` / `nodeActionOrgEdges` or `nodeActionUnscopedObjType studiosvc/pkg/studio/graph.go 44: if err = db.RequireNodeActionInScope(ctx, org, graphId, cfg); err != nil { studiosvc/pkg/repo/node_action_todo_scope_integration_test.go 45: return s.RequireNodeActionInScope(ctx, org, "nt-P", tildaobj.GraphNodeActionCfg{
19. commits repo=main, path=studiosvc/pkg/handlers/graph.go, branch=master, since=2026-10-20T00:00:00Z · 381 chars back
d93080df2 2026-10-30T13:20 danherberttilda: feat(studiosvc, execsvc): training Results block, quiz Results pages, Results / certificate switches (ENG-7013) (#16885) d49243e3f 2026-10-29T15:38 arzatskis: Fix swagger annotations that do not match what handlers register or return (#16928) d1794af2f 2026-10-23T10:04 nkommuri: Support for blocking Delete during Protocol Edit (#16707)
20. commits repo=main, path=studiosvc/pkg/handlers/graph.go, branch=production, since=2026-10-20T00:00:00Z · 236 chars back
601138cba 2026-11-04T05:15 taylorfutral: Cherry-pick training work from master since the 2026-10-22 production cut (#17136) 03487f4b0 2026-10-23T10:28 tilda-gitbot[bot]: Support for blocking Delete during Protocol Edit (#16707) (#16837)
21. read_file repo=main, path=studiosvc/pkg/repo/training.go, start_line=60, end_line=200 · 6488 chars back
studiosvc/pkg/repo/training.go (371 lines), lines 60-200: 60 } 61 } 62 63 // scoredQuizQuestionNodeAction adds a question+response set with a correctness check worth one 64 // point. Adding it to a training section is what provisions the quiz variables. 65 func scoredQuizQuestionNodeAction(org *tildaobj.Organization, activityId, responseSetId, questionId, prevId string, flags ...string) tildaobj.GraphNodeActionCfg { 66 cfg := seedNodeActionCfg(org, activityId) 67 cfg.ObjId = responseSetId 68 cfg.QuestionId = questionId 69 cfg.ObjType = tildaobj.DBTypeResponseSet 70 cfg.PrevId = prevId 71 cfg.Flags = append(append([]string{}, flags...), tildaobj.GRAPH_OBJ_FLAG_CORRECTNESS_CHECK) 72 cfg.Score = 1 73 return cfg 74 } 75 76 // The seeded first question is scored so the section is a quiz from the start; the 77 // author picks the correct answer in Studio (the Results settings warn until then). 78 func trainingFirstQuizQuestionNodeAction(org *tildaobj.Organization, activityId, responseSetId, questionId, prevId string) tildaobj.GraphNodeActionCfg { 79 return scoredQuizQuestionNodeAction(org, activityId, responseSetId, questionId, prevId, 80 tildaobj.GRAPH_OBJ_FLAG_EDC_ENABLED, tildaobj.GRAPH_OBJ_FLAG_OPTIONAL) 81 } 82 83 func (s *DBstorage) InitActivityTraining(ctx context.Context, user *tildaobj.User, org *tildaobj.Organization, activityId string) error { 84 err := graphlib.GraphNodeInit(ctx, s.Tx, tildaobj.DBTypeActivityV2, activityId) 85 if err != nil { 86 retur … (4988 more characters not kept)
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)

What it was shown (build 860, 43.7 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": "staff", "members": [ { "test": "staff::TC-03: Verify document only staff 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": "staff::TC-03: Verify document only staff training setup via training API", "status": "failed", "message": "Delete activity section API call failed with error: {\"message\":\"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the requested organization\"}", "traceback_tail": " 374 | isSuccess,\n 375 | `${operationName} API call failed with error: ${responseBody}`\n > 376 | ).toBeTruthy();\n | ^\n 377 | }\n 378 | return response;\n 379 | }\n at FunctionHelper.handleApiResponse (/home/jenkins/agent/workspace/ui-tests-production/e2e/helpers/functionHelper.js:376:9)\n at StudioApiUtility.deleteActivitySection (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1703:5)\n at StudioApiUtility.setupDocumentOnlyTrainingForms (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1734:7)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/training/staff.spec.js:93:5\n\n Error Context: reports/training-staff-Staff-Doc-T-aeef2-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: Delete activity section API call failed with error: {\"message\":\"ref 5712faa0-1af3-4081-ba3a-8f323545c36f is not part of the named protocol/activity scope: caller org is not authorized against the requested organization\"}\n\n expect(received).toBeTruthy()\n\n Received: false\n\n at helpers/functionHelper.js:376\n\n 374 | isSuccess,\n 375 | `${operationName} API call failed with error: ${responseBody}`\n > 376 | ).toBeTruthy();\n | ^\n 377 | }\n 378 | return response;\n 379 | }\n at FunctionHelper.handleApiResponse (/home/jenkins/agent/workspace/ui-tests-production/e2e/helpers/functionHelper.js:376:9)\n at StudioApiUtility.deleteActivitySection (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1703:5)\n at StudioApiUtility.setupDocumentOnlyTrainingForms (/home/jenkins/agent/workspace/ui-tests-production/e2e/utils/apiUtility/studioApiUtility.js:1734:7)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/training/staff.spec.js:93:5\n\n Error Context: reports/training-staff-Staff-Doc-T-aeef2-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-staff-Staff-Doc-T-aeef2-ning-setup-via-training-API-main-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/training-staff-Staff-Doc-T-aeef2-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": "e2e7e573b27ea454650243d18ca0a0f7", "method": "POST", "path": "/api/studio/graph/08d056a5-f896-45d7-b1ac-1d6d7c8dc81d/nodeAction", "status": "404", "error": "None" }, { "trace_id": "e2e7e573b27ea454650243d2c096aacd", "method": "GET", "path": "/api/studio/activities/08d056a5-f896-45d7-b1ac-1d6d7c8dc81d", "status": "200", "error": "None" }, { "trace_id": "e2e7e573b27ea454650243dd9f5ae3c6", "method": "POST", "path": "/api/studio/graph/08d056a5-f896-45d7-b1ac-1d6d7c8dc81d/nodeAction", "status": "200", "error": "None" }, { "trace_id": "e2e7e573b27ea454650243d7b9c330f2", "method": "POST", "path": "/api/studio/graph/08d056a5-f896-45d7-b1ac-1d6d7c8dc81d/nodeAction", "status": "200", "error": "None" }, { "trace_id": "e2e7e573b27ea454650243dfeb64dab3", "method": "POST", "path": "/api/studio/graph/08d056a5-f896-45d7-b1ac-1d6d7c8dc81d/nodeAction", "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/helpers/functionHelper.js:376", "code_frame": " at helpers/functionHelper.js:376\n\n 374 | isSuccess,\n 375 | `${operationName} API call failed with error: ${responseBody}`\n> 376 | ).toBeTruthy();\n | ^\n 377 | }\n 378 | return response;\n 379 | }", "attempts": { "errors": [ "Error: Delete activity section API call failed with error: {\"message\":\"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the requested organiz", "Error: Delete activity section API call failed with error: {\"message\":\"ref 5712faa0-1af3-4081-ba3a-8f323545c36f is not part of the named protocol/activity scope: caller org is not authorized against the requested organiz" ], "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/staff.spec.js", "commits": [ { "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": "4f2467f3d", "subject": "Turn on the new filters toolbar everywhere and update e2e for it (#16330)", "login": "arzatskis", "date": "2026-11-03T07:45" } ] } }
The test's source
{ "repo": "tildabio/cleopatra", "at": "ee3a2cbd4", "path": "e2e/tests/training/staff.spec.js", "from_line": 73, "failing_line": 73, "code": "73> test('TC-03: Verify document only staff training setup via training API', async ({\n74 studioApiUtility,\n75 documentApiUtility\n76 }) => {\n77 const documentTemplateId = await documentApiUtility.getDocIdByName(\n78 croOrg,\n79 documentTemplateName\n80 );\n81 trainingTemplateName = await studioApiUtility.createRegularTraining(\n82 croOrg,\n83 {\n84 name: `${staffTrainingData.trainingName} ${FunctionHelper.getRandomNumber()}`,\n85 studyName\n86 }\n87 );\n88 const activity = await studioApiUtility.getStudioActivities(\n89 croOrg,\n90 trainingTemplateName,\n91 { trainingFlag: true }\n92 );\n93 await studioApiUtility.setupDocumentOnlyTrainingForms(\n94 croOrg,\n95 activity.tildaid,\n96 documentTemplateId\n97 );\n98 await studioApiUtility.publishActivity(croOrg, trainingTemplateName, {\n99 trainingFlag: true\n100 });\n101 logger.info(\n102 `Staff training published: ${trainingTemplateName} (doc=${documentTemplateName})`\n103 );\n104 });\n105 \n106 test('TC-04: Verify Staff Training appears in Training Templates table', async ({\n107 protocolPage\n108 }) => {\n109 await protocolPage.openTab('Trainings', croOrg);\n110 await expect(\n111 protocolPage.page\n112 .locator('[data-testid*=trainings-table-row-]')\n113 .getByText(trainingTemplateName)\n114 ).toBeVisible();\n115 });\n116 \n117 test('TC-05: Verify creating Staff Training for CRO team members', async ({\n118 trainingPage\n119 }) => {\n120 await trainingPage.searchStudy(studyName);\n121 await trainingPage.studyTrainingsTab.click();\n122 await trainingPage.allTrainingTab.click();\n123 await expect(trainingPage.trainingsSearch).toBeVisible();\n124 trainingDetails = await trainingPage.createTraining(trainingTemplateName, {\n125 name: staffTrainingData.trainingName,\n126 scope: 'team',\n127 autoAssignment: false\n128 });\n129 await trainingPage.openTraining(trainingDetails.name);\n130 await trainingPage.assignTrainingManually(trainingDetails.name, [\n131 dmUser.userName,\n132 monitorUser.userName,\n133 pmUser.userName\n134 ]);\n135 await trainingPage.trainingSlideoverClose.click();\n136 await trainingPage.openTraining(trainingDetails.name);\n137 await trainingPage.verifyTraineesInSidePanel([\n138 { name: dmUser.userName, status: 'Pending' },\n139 { name: monitorUser.userName, status: 'Pending' },\n140 { name: pmUser.userName, status: 'Pending' }\n141 ]);\n142 });\n143 " }
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/staff.spec.js >> Staff Doc Training >> TC-03: Verify document only staff training setup via training API\n- Location: tests/training/staff.spec.js:73:3\n\n# Error details\n\n```\nError: Delete activity section API call failed with error: {\"message\":\"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the requested organiz\n\nexpect(received).toBeTruthy()\n\nReceived: false\n```\n\n# Test source\n\n```ts\n 276 | return {\n 277 | headers,\n 278 | timeout: timeout || 60000\n 279 | };\n 280 | }\n 281 | \n 282 | static generatePastDate(maxDaysBack = 365) {\n 283 | const daysBack = this.getRandomNumberWithinRange(1, maxDaysBack);\n 284 | const d = new Date();\n 285 | d.setDate(d.getDate() - daysBack);\n 286 | const pad2 = (n) => (n < 10 ? `0${n}` : `${n}`);\n 287 | const yyyy = d.getFullYear();\n 288 | const mm = pad2(d.getMonth() + 1);\n 289 | const dd = pad2(d.getDate());\n 290 | return `${yyyy}-${mm}-${dd}`;\n 291 | }\n \u2026\n 346 | static apiError(response, reponseBody) {\n 347 | if (response.status() !== 200) {\n 348 | return `Response URL: ${response.url()}\n 349 | Error code: ${response.status()}\n 350 | Error message: ${reponseBody}`;\n 351 | }\n 352 | }\n 353 | \n 354 | static async handleApiResponse(response, operationName) {\n \u2026\n 357 | const errorBody = await response\n \u2026\n 360 | const status = response.status();\n 361 | logger.error(\n 362 | `API ${operationName} failed with status ${status}. Response: ${errorBody}`\n \u2026\n 367 | logger.warn(`Non-blocking: ${operationName} API call failed`);\n \u2026\n 373 | expect(\n 374 | isSuccess,\n 375 | `${operationName} API call failed with error: ${responseBody}`\n> 376 | ).toBeTruthy();\n | ^ Error: Delete activity section API call failed with error: {\"message\":\"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the\n 377 | }\n 378 | return response;\n 379 | }\n 380 | \n \u2026\n 390 | throw new Error('No worksheets found in the Excel file');\n \u2026\n 440 | }\n 441 | \n 442 | return csvBySheetName;\n 443 | } catch (error) {\n 444 | logger.error(`Error converting Excel to CSV: ${error.message}`);\n 445 | throw error;\n 446 | }\n 447 | }\n 448 | \n \u2026\n 465 | response = await request[method](url, finalOptions);\n 466 | if (await response.ok()) break;\n 467 | } catch (err) {\n 468 | logger.warn(\n 469 | `Request error on attempt ${attempt} for ${url}: ${err?.message || err}`\n 470 | );\n 471 | }\n 472 | if (attempt < maxAttempts) {\n 473 | await FunctionHelper.sleep(delayMs);" }
The code where it failed
{ "path": "e2e/helpers/functionHelper.js", "failing_line": 376, "code": "351 }\n352 }\n353 \n354 static async handleApiResponse(response, operationName) {\n355 const isSuccess = await response.ok();\n356 if (!isSuccess) {\n357 const errorBody = await response\n358 .text()\n359 .catch(() => 'Unable to get response body');\n360 const status = response.status();\n361 logger.error(\n362 `API ${operationName} failed with status ${status}. Response: ${errorBody}`\n363 );\n364 }\n365 if (process.env.SOFT_EXPECTS === 'true') {\n366 if (!isSuccess) {\n367 logger.warn(`Non-blocking: ${operationName} API call failed`);\n368 return false;\n369 }\n370 } else if (!isSuccess) {\n371 const responseBody = await response.body();\n372 \n373 expect(\n374 isSuccess,\n375 `${operationName} API call failed with error: ${responseBody}`\n376> ).toBeTruthy();\n377 }\n378 return response;\n379 }\n380 \n381 static async convertExcelToCSV(excelFilePath) {\n382 try {\n383 // Create a new workbook instance\n384 const workbook = new ExcelJS.Workbook();\n385 \n386 // Read the Excel file\n387 await workbook.xlsx.readFile(excelFilePath);\n388 " }
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:** `Delete activity section API call failed with error: {"message":"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the requested organization"}` **On screen when it failed:** No page was involved: this is an API setup step that failed before any UI action. **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/02dc2ff9ae8dfc) **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 test deletes a stale list of sections. In studioApiUtility.js:1730-1735 (setupDocumentOnlyTrainingForms) it reads the activity once, then deletes every section except Documents. Deleting the Quiz also removes its Quiz Results page, so the later delete of that page names a ref that no longer exists. studiosvc then replies 'ref … is not part of the named protocol/activity scope' (node_action_scope.go:185). Both attempts hit this on different activities. The failure is not an authorization problem. Master passes because commit 6c24790b0 (cleopatra, 'Nightly 861 e2e fixes') re-reads the activity after every delete. Its comment says 'deleting a quiz also removes its Quiz Results page'. Production lacks it. I did not confirm the cascade in the studiosvc delete code. It is inferred from that comment and the error text. Build 838 is when it started on production. The training seed order changed on production on 2026-11-04 (6eaaa4b3a, 601138cba), but those commits are not in the bundle's change list. Caution: 6c24790b0 also calls a certificateDisabled PATCH. Production's studiosvc (a654678c2) may not support it, because the training Results/certificate commit d93080df2 is on master only. Port only the re-read-after-each-delete loop to production, or bring the whole change over together with its product commit. **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 functionHelper.js (8785991e2)). **Failing tests (1):** - [staff::TC-03: Verify document only staff training setup via training API](https://xray.tilda.pizza/tests/case/db91494c2cc540e6) (failing since build 838) **Error:** ``` Delete activity section API call failed with error: {"message":"ref c9cff7cd-2949-4fa2-87f0-ae2c39cbd234 is not part of the named protocol/activity scope: caller org is not authorized against the requested organization"} ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 22 lookups in the code and its history. Group `triage:02dc2ff9ae8dfc` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++