Pipeline controller: plan 2 (hard +, error +50 %), backlog throttle, 2 trajectory workers, stop rules, summaries every 50; budget reserve

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 13:35:54 +02:00
parent 1c4667a0fc
commit 13360292dd
781 changed files with 50211 additions and 22 deletions

View File

@@ -0,0 +1,50 @@
{
"id": "G1028",
"pool": "train",
"object_type": "DDLS",
"category": "B",
"attempts": [
{
"stage": "bundle",
"errors": [
"reference/t20_test.clas.abap line 31: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 44: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 50: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 56: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\""
],
"by_check": {
"abaplint": 4
}
},
{
"stage": "bundle",
"errors": [
"reference/t20_test.clas.abap line 31: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 44: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 50: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 56: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\""
],
"by_check": {
"abaplint": 4
}
},
{
"stage": "bundle",
"errors": [
"reference/t20_test.clas.abap line 31: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 44: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 50: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\"",
"hidden/t20_hidden.clas.abap line 56: syntax error for release v758 (abaplint): Statement does not exist in the configured ABAP version(or a parser error), \"SELECT\""
],
"by_check": {
"abaplint": 4
}
},
{
"stage": "validate",
"oracle": 0,
"null": 0
}
],
"accepted": false
}

View File

@@ -0,0 +1,73 @@
CLASS {{p}}t20_hidden DEFINITION PUBLIC FINAL CREATE PUBLIC
FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
PRIVATE SECTION.
CLASS-DATA go_env TYPE REF TO if_cds_test_environment.
CLASS-METHODS class_setup.
CLASS-METHODS class_teardown.
METHODS setup.
METHODS all_departments FOR TESTING.
METHODS parent_name FOR TESTING.
METHODS top_has_no_parent FOR TESTING.
METHODS orphan_has_no_parent FOR TESTING.
METHODS own_data_shown FOR TESTING.
METHODS headcount_shown FOR TESTING.
ENDCLASS.
CLASS {{p}}t20_hidden IMPLEMENTATION.
METHOD class_setup.
go_env = cl_cds_test_environment=>create( i_for_entity = '{{P}}I_DEPT' ).
ENDMETHOD.
METHOD class_teardown.
go_env->destroy( ).
ENDMETHOD.
METHOD setup.
DATA lt_dept TYPE STANDARD TABLE OF {{p}}dept WITH EMPTY KEY.
go_env->clear_doubles( ).
lt_dept = VALUE #(
( dept_id = 'D100' dept_name = 'HEAD OFFICE' parent_id = '' headcount = 10 )
( dept_id = 'D200' dept_name = 'SALES' parent_id = 'D100' headcount = 25 )
( dept_id = 'D300' dept_name = 'PURCHASING' parent_id = 'D100' headcount = 12 )
( dept_id = 'D400' dept_name = 'EXPORT' parent_id = 'D200' headcount = 8 )
( dept_id = 'D500' dept_name = 'ORPHAN' parent_id = 'D999' headcount = 3 ) ).
go_env->insert_test_data( lt_dept ).
ENDMETHOD.
METHOD all_departments.
SELECT dept_id FROM {{p}}i_dept INTO TABLE @DATA(lt_ids).
cl_abap_unit_assert=>assert_equals( exp = 5 act = lines( lt_ids ) ).
ENDMETHOD.
METHOD parent_name.
SELECT SINGLE _parent~dept_name FROM {{p}}i_dept
WHERE dept_id = 'D200' INTO @DATA(lv_name).
cl_abap_unit_assert=>assert_equals( exp = 'HEAD OFFICE' act = lv_name ).
ENDMETHOD.
METHOD top_has_no_parent.
SELECT SINGLE _parent~dept_name FROM {{p}}i_dept
WHERE dept_id = 'D100' INTO @DATA(lv_name).
cl_abap_unit_assert=>assert_initial( act = lv_name ).
ENDMETHOD.
METHOD orphan_has_no_parent.
SELECT SINGLE _parent~dept_name FROM {{p}}i_dept
WHERE dept_id = 'D500' INTO @DATA(lv_name).
cl_abap_unit_assert=>assert_initial( act = lv_name ).
ENDMETHOD.
METHOD own_data_shown.
SELECT SINGLE dept_name parent_id FROM {{p}}i_dept
WHERE dept_id = 'D400' INTO @DATA(ls_row).
cl_abap_unit_assert=>assert_equals( exp = 'EXPORT' act = ls_row-dept_name ).
cl_abap_unit_assert=>assert_equals( exp = 'D200' act = ls_row-parent_id ).
ENDMETHOD.
METHOD headcount_shown.
SELECT SINGLE headcount FROM {{p}}i_dept
WHERE dept_id = 'D300' INTO @DATA(lv_count).
cl_abap_unit_assert=>assert_equals( exp = 12 act = lv_count ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,39 @@
{
"task": "T20",
"mutants": [
{
"object": "{{P}}I_DEPT",
"mutant": "line 5: association on: $projection.parent_id -> $projection.dept_id (assoc on)",
"status": "killed",
"hidden": "3/6",
"failed_tests": [
"ORPHAN_HAS_NO_PARENT",
"PARENT_NAME",
"TOP_HAS_NO_PARENT"
]
},
{
"object": "{{P}}I_DEPT",
"mutant": "line 10: headcount -> dept_id (element)",
"status": "killed",
"hidden": "5/6",
"failed_tests": [
"HEADCOUNT_SHOWN"
]
},
{
"object": "{{P}}I_DEPT",
"mutant": "line 8: dept_name -> dept_id (element)",
"status": "killed",
"hidden": "4/6",
"failed_tests": [
"OWN_DATA_SHOWN",
"PARENT_NAME"
]
}
],
"valid": 3,
"killed": 3,
"kill_rate": 1.0,
"ok": true
}

View File

@@ -0,0 +1,12 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Departments'
define view entity {{P}}I_DEPT
as select from {{p}}dept
association [0..1] to {{p}}dept as _parent on $projection.parent_id = _parent.dept_id
{
key dept_id,
dept_name,
parent_id,
headcount,
_parent
}

View File

@@ -0,0 +1,35 @@
CLASS {{p}}t20_test DEFINITION PUBLIC FINAL CREATE PUBLIC
FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
PRIVATE SECTION.
CLASS-DATA go_env TYPE REF TO if_cds_test_environment.
CLASS-METHODS class_setup.
CLASS-METHODS class_teardown.
METHODS setup.
METHODS parent_name_via_assoc FOR TESTING.
ENDCLASS.
CLASS {{p}}t20_test IMPLEMENTATION.
METHOD class_setup.
go_env = cl_cds_test_environment=>create( i_for_entity = '{{P}}I_DEPT' ).
ENDMETHOD.
METHOD class_teardown.
go_env->destroy( ).
ENDMETHOD.
METHOD setup.
DATA lt_dept TYPE STANDARD TABLE OF {{p}}dept WITH EMPTY KEY.
go_env->clear_doubles( ).
lt_dept = VALUE #(
( dept_id = 'D100' dept_name = 'HEAD OFFICE' parent_id = '' headcount = 10 )
( dept_id = 'D200' dept_name = 'SALES' parent_id = 'D100' headcount = 25 ) ).
go_env->insert_test_data( lt_dept ).
ENDMETHOD.
METHOD parent_name_via_assoc.
SELECT SINGLE _parent~dept_name FROM {{p}}i_dept
WHERE dept_id = 'D200' INTO @DATA(lv_name).
cl_abap_unit_assert=>assert_equals( exp = 'HEAD OFFICE' act = lv_name ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,12 @@
@EndUserText.label : 'Department'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}dept {
key client : abap.clnt not null;
key dept_id : abap.char(8) not null;
dept_name : abap.char(30);
parent_id : abap.char(8);
headcount : abap.int4;
}

View File

@@ -0,0 +1,20 @@
CLASS {{p}}seed_dept DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
ENDCLASS.
CLASS {{p}}seed_dept IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
DATA lt_dept TYPE STANDARD TABLE OF {{p}}dept WITH EMPTY KEY.
lt_dept = VALUE #(
( client = sy-mandt dept_id = 'D100' dept_name = 'HEAD OFFICE' parent_id = '' headcount = 10 )
( client = sy-mandt dept_id = 'D200' dept_name = 'SALES' parent_id = 'D100' headcount = 25 )
( client = sy-mandt dept_id = 'D300' dept_name = 'PURCHASING' parent_id = 'D100' headcount = 12 )
( client = sy-mandt dept_id = 'D400' dept_name = 'EXPORT' parent_id = 'D200' headcount = 8 )
( client = sy-mandt dept_id = 'D500' dept_name = 'ORPHAN' parent_id = 'D999' headcount = 3 ) ).
DELETE FROM {{p}}dept.
INSERT {{p}}dept FROM TABLE @lt_dept.
out->write( |Rows in {{P}}DEPT: { lines( lt_dept ) }| ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,46 @@
# 1. Goal
A company groups its departments in a hierarchy. Each department can have a
parent department. A report and an OData service read the departments and also
need the data of the parent department. The data must come from the database,
from a CDS view entity. An ABAP SQL consumer reads the parent data with a path
expression.
# 2. Open questions
None.
# 3. Context
- Table {{P}}DEPT (department), package $TMP. Key: DEPT_ID (CHAR 8).
Fields: DEPT_NAME (CHAR 30), PARENT_ID (CHAR 8), HEADCOUNT (INT4).
- PARENT_ID holds the DEPT_ID of the parent department. The top department has
an empty PARENT_ID. A PARENT_ID can also point to a department that does not
exist.
# 4. Contract
- Create the CDS view entity {{P}}I_DEPT in package $TMP.
- Elements, with these names: DEPT_ID (key), DEPT_NAME, PARENT_ID, HEADCOUNT.
- The view has an association with the name _PARENT. The association points to
the department data. Through the association, a consumer can read the
DEPT_NAME and the other elements of the parent department.
- No authorization check (#NOT_REQUIRED).
# 5. Business rules
1. The view shows one row for each department in {{P}}DEPT.
2. DEPT_ID is the key element of the view.
3. The association _PARENT matches the department whose DEPT_ID is the PARENT_ID
of the current department. A department has at most one parent department.
4. A department with an empty PARENT_ID has no parent department. Reading the
parent's DEPT_NAME through the association gives an empty value.
5. A department whose PARENT_ID does not match any department has no parent
department. Reading the parent's DEPT_NAME through the association gives an
empty value.
6. DEPT_NAME, PARENT_ID and HEADCOUNT show the values of the department itself.
# 6. Constraints
- Release target: 8.16.
- Coding standards: Clean ABAP.
- Out of scope: do not change {{P}}DEPT and {{P}}SEED_DEPT.
# 7. Acceptance
- The view is active and has no syntax error.
- The hidden tests pass.
- Write ABAP Unit tests with CL_CDS_TEST_ENVIRONMENT in a global test class.

View File

@@ -0,0 +1,67 @@
{
"id": "G1028",
"category": "B",
"object_type": "DDLS",
"difficulty": 2,
"release_target": "v816",
"expected_outcome": "implement",
"budget": {
"max_tool_calls": 60,
"max_activations": 15
},
"seed": [
{
"type": "TABL",
"name": "{{P}}DEPT",
"file": "seed/dept.tabl.asabap",
"description": "Department"
},
{
"type": "CLAS",
"name": "{{P}}SEED_DEPT",
"file": "seed/seed_dept.clas.abap",
"description": "Seed data for {{P}}DEPT",
"run": true
}
],
"contract": [
{
"type": "DDLS",
"name": "{{P}}I_DEPT",
"fields": [
"DEPT_ID",
"DEPT_NAME",
"PARENT_ID",
"HEADCOUNT",
"_PARENT"
]
}
],
"out_of_scope": [
"{{P}}DEPT",
"{{P}}SEED_DEPT"
],
"hidden_tests": [
{
"type": "CLAS",
"name": "{{P}}T20_HIDDEN",
"file": "hidden/t20_hidden.clas.abap",
"description": "T20 hidden tests"
}
],
"reference": [
{
"type": "DDLS",
"name": "{{P}}I_DEPT",
"file": "reference/i_dept.ddls.asddls",
"description": "Departments with parent association"
},
{
"type": "CLAS",
"name": "{{P}}T20_TEST",
"file": "reference/t20_test.clas.abap",
"description": "T20 own tests"
}
],
"craft_checks": []
}