Project

General

Profile

Bug #25545

Updated by Clark ANDRIANASOLO about 2 months ago

I can no longer create a technique or change a technique that has no @compilation-config.yml@ with some @args@ : it causes an error on the technique editor every time I attempt to save (and even no "Compilation output" tab). 

 Since #25504 a new @args@ fields have been added for support in the @compilation-config.yml@ file for a technique, to build with additional command line arguments. 

 But when there is no such file the default argument is the empty string, which causes this @compilation-output.yml@ file to be written :   

 <pre> 
 compiler: rudderc 
 resultCode: 2 
 fileStatus: [] 
 msg: 'Exit code=2 for technique: ''/var/rudder/configuration-repository/techniques/ncf_techniques/mytechnique/1.0''.' 
 stdout: '' 
 stderr: | 
   error: unrecognized subcommand '' 

   Usage: rudderc [OPTIONS] <COMMAND> 

   For more information, try '--help'. 
 </pre> 

 The trace logs for the command that is executed does not suggest that an empty argument is passed as first argument or Rudderc :  
 <pre> 
 DEBUG techniques.writer.rudderc - Run rudderc: /opt/rudder/bin/rudderc    --directory /var/rudder/configuration-repository/techniques/ncf_techniques/mytechnique/1.0 build  
 </pre>

Back