Project

General

Profile

Actions

Bug #25611

open

We see rudderc error 4 times in logs

Added by François ARMAND about 2 months ago. Updated 15 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Technique editor
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When a technique is in error, we have the compilation error 4 times in webapp logs:

RROR rudderc: 
   | version: '1.0'
   | category: ncf_techniques
   | items:
 6 |   - id: a298244a-fb49-4aad-a8f0-1653aba196ee
   |   ^ items: unknown variant `worst-case-percent`, expected one of `worst-case-weighted-sum`, `worst-case-weighted-one`, `focus`, `weighted`, `disabled` at line 6 column 3
   |     name: test block
   |     reporting:
   |       mode: worst-case-percent

2024-10-04 16:55:59+0200 WARN  techniques.writer.rudderc -   -> stdout :         Read 183 methods
ERROR rudderc: 
   | version: '1.0'
   | category: ncf_techniques
   | items:
 6 |   - id: a298244a-fb49-4aad-a8f0-1653aba196ee
   |   ^ items: unknown variant `worst-case-percent`, expected one of `worst-case-weighted-sum`, `worst-case-weighted-one`, `focus`, `weighted`, `disabled` at line 6 column 3
   |     name: test block
   |     reporting:
   |       mode: worst-case-percent

2024-10-04 16:55:59+0200 WARN  techniques.writer.rudderc -         Read 183 methods
ERROR rudderc: 
   | version: '1.0'
   | category: ncf_techniques
   | items:
 6 |   - id: a298244a-fb49-4aad-a8f0-1653aba196ee
   |   ^ items: unknown variant `worst-case-percent`, expected one of `worst-case-weighted-sum`, `worst-case-weighted-one`, `focus`, `weighted`, `disabled` at line 6 column 3
   |     name: test block
   |     reporting:
   |       mode: worst-case-percent

2024-10-04 16:55:59+0200 WARN  techniques.writer.rudderc -   -> stdout :         Read 183 methods
ERROR rudderc: 
   | version: '1.0'
   | category: ncf_techniques
   | items:
 6 |   - id: a298244a-fb49-4aad-a8f0-1653aba196ee
   |   ^ items: unknown variant `worst-case-percent`, expected one of `worst-case-weighted-sum`, `worst-case-weighted-one`, `focus`, `weighted`, `disabled` at line 6 column 3
   |     name: test block
   |     reporting:
   |       mode: worst-case-percent

2024-10-04 16:55:59+0200 INFO  api-processing.response-error - error when committing Technique 'test_block_in_technique/1.0'; cause was: Unexpected: Error when trying to compile technique '/var/rudder/configuration-repository-8.2/techniques/ncf_techniques/test_block_in_technique/1.0'. Error details are available in `compilation-output.yml` file in the same directory. Error message: 'Exit code=1 for technique: '/var/rudder/configuration-repository-8.2/techniques/ncf_techniques/test_block_in_technique/1.0'.'

Perhaps it means we are actually calling the compiler 4 times, which is not a very reasonnable usage of resources.

Actions

Also available in: Atom PDF