infofile¶

                                                                                
 Usage: lftools-uv infofile [OPTIONS] COMMAND [ARGS]...                         
                                                                                
 INFO.yaml file management tools                                                
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ create-info-file     Create an initial INFO file.                            │
│ get-committers       Get committers from LDAP and update INFO file.          │
│ validate-info-file   Validate INFO.yaml file format and content.             │
│ check-committers     Check committers in INFO file against LDAP.             │
│ match-ldap           Match LDAP information to INFO file.                    │
╰──────────────────────────────────────────────────────────────────────────────╯

Commands¶

check-votes¶

Usage: lftools-uv infofile [OPTIONS] COMMAND [ARGS]...
Try 'lftools-uv infofile --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such command 'check-votes'. Did you mean 'check-committers'?              │
╰──────────────────────────────────────────────────────────────────────────────╯

get-committers¶

                                                                                
 Usage: lftools-uv infofile get-committers [OPTIONS] {gerrit_url}               
                                           {gerrit_project} {ldap_group}        
                                           {info_file}                          
                                                                                
 Get committers from LDAP and update INFO file.                                 
                                                                                
 Args: gerrit_url: Gerrit URL gerrit_project: Gerrit project path ldap_group:   
 LDAP group name info_file: Path to INFO.yaml file directory: Custom gerrit     
 directory                                                                      
                                                                                
 Examples: lftools-uv infofile get-committers gerrit.example.com project/name   
 ldap-group INFO.yaml                                                           
                                                                                
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    gerrit_url          <str>  Gerrit URL                                   │
│                                 [required]                                   │
│ *    gerrit_project      <str>  Gerrit project path                          │
│                                 [required]                                   │
│ *    ldap_group          <str>  LDAP group name                              │
│                                 [required]                                   │
│ *    info_file           <str>  Path to INFO.yaml file                       │
│                                 [required]                                   │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --directory        <str>  Custom gerrit directory                            │
│                           [default: r]                                       │
│ --help                    Show this message and exit.                        │
╰──────────────────────────────────────────────────────────────────────────────╯

sync-committers¶

Usage: lftools-uv infofile [OPTIONS] COMMAND [ARGS]...
Try 'lftools-uv infofile --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such command 'sync-committers'. Did you mean 'check-committers',          │
│ 'get-committers'?                                                            │
╰──────────────────────────────────────────────────────────────────────────────╯

Creating an info file requires a connection to the VPN and a working openldap configuration

$ cat /etc/openldap/ldap.conf
TLS_REQCERT never
or
prereqs: For ldap lookups to work you must be on the VPN and have the cert to get the cert: log in to any collab system and grab /etc/ipa/ca.crt in /etc/openldap/ldap.conf, add 'TLS_CACERT /path/to/ipa.ca'

create-info-file¶

                                                                                
 Usage: lftools-uv infofile create-info-file [OPTIONS] {gerrit_url}             
                                             {gerrit_project}                   
                                                                                
 Create an initial INFO file.                                                   
                                                                                
 Args: gerrit_url: Gerrit URL (e.g., gerrit.umbrella.com) gerrit_project:       
 Gerrit project path (e.g., project/full-name) directory: Custom gerrit         
 directory (e.g., /gerrit/ rather than /r/) empty: Create info file for         
 uncreated project tsc_approval: TSC approval link                              
                                                                                
 Examples: lftools-uv infofile create-info-file gerrit.example.com project/name 
 lftools-uv infofile create-info-file gerrit.example.com project/name --empty   
                                                                                
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    gerrit_url          <str>  Gerrit URL (e.g., gerrit.example.com)        │
│                                 [required]                                   │
│ *    gerrit_project      <str>  Gerrit project path (e.g.,                   │
│                                 project/full-name)                           │
│                                 [required]                                   │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --directory           <str>  Custom gerrit directory, e.g. not /r/           │
│                              [default: r]                                    │
│ --empty                      Create info file for uncreated project          │
│ --tsc-approval        <str>  Optionally provide a TSC approval link          │
│                              [default: missing]                              │
│ --help                       Show this message and exit.                     │
╰──────────────────────────────────────────────────────────────────────────────╯

API for check votes requires a [github] section in ~/.config/lftools-uv/lftools-uv.ini:

[github]
token = REDACTED