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          TEXT  Gerrit URL                                    │
│                                [required]                                    │
│ *    gerrit_project      TEXT  Gerrit project path                           │
│                                [required]                                    │
│ *    ldap_group          TEXT  LDAP group name                               │
│                                [required]                                    │
│ *    info_file           TEXT  Path to INFO.yaml file                        │
│                                [required]                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --directory        TEXT  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          TEXT  Gerrit URL (e.g., gerrit.example.com)         │
│                                [required]                                    │
│ *    gerrit_project      TEXT  Gerrit project path (e.g., project/full-name) │
│                                [required]                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --directory           TEXT  Custom gerrit directory, e.g. not /r/            │
│                             [default: r]                                     │
│ --empty                     Create info file for uncreated project           │
│ --tsc-approval        TEXT  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