jfilak / sapcli

Command Line Interface for interaction with SAP tools
Apache License 2.0
56 stars 24 forks source link

ATC Priorities: SAP GUI vs SAPCLI #108

Open lucasborin opened 1 year ago

lucasborin commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Strangely, the system returned it as priority: 2:

image

lucasborin commented 1 year ago

@jfilak: any clue?

jfilak commented 1 year ago

@lucasborin Haven't you fixed this already?

lucasborin commented 1 year ago

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.