sapcli icon indicating copy to clipboard operation
sapcli copied to clipboard

ATC Priorities: SAP GUI vs SAPCLI

Open lucasborin opened this issue 1 year ago • 5 comments

Given I have a class with a syntax error: image

When I run the ATC via SAP GUI, it reports two entries: image

However, when I run it via sapcli: ./sapcli atc run class z_borinlu_sapcli

It reports the same two ATCs, but the first finding has a distinct priority: * 2 :: Test Environment (SLIN_UMFLD) :: Program contains syntax errors (0000) * 2 :: ABAP Unit: Tests of Runtime Category "Short" (BC_AUNIT) :: Critical Error reported from test class (CRIT)

You can simulate it in the [CENSORED] (SAP internal).

Ps: It uses the default/standard checkman variant, and the user parameter is empty (the one that forces code inspector).

lucasborin avatar Jun 13 '23 12:06 lucasborin

In the profile dump: ./sapcli atc profile dump --checkman

... it came as Prio: 1:

"class": "CL_CHK_SLIN_CONS_ABAP",
"description": "Test Environment",
"note": "",
"priorities": {
  "0000": {
    "check_message_id": "0000",
    "default_prio": "1",
    "description": "Program contains syntax errors",
    "prio": "1"
  },

lucasborin avatar Jun 13 '23 12:06 lucasborin

Strangely, the system returned it as priority: 2:

image

lucasborin avatar Jun 13 '23 12:06 lucasborin

@jfilak: any clue?

lucasborin avatar Jun 13 '23 13:06 lucasborin

@lucasborin Haven't you fixed this already?

jfilak avatar Aug 03 '23 08:08 jfilak

Actually, I have not. If I call sapcli terminal (local), I see this divergence between the priorities. However, if I use the internal docker image, it is ok there.

As now I am using the docker img, and I do not see this problem anymore, feel free to close this issue.

lucasborin avatar Aug 07 '23 16:08 lucasborin