Skip to content

native/decompress.py still uses deprecated --db-config-file argument instead of command-line database parameters. #1199

@junhaoliao

Description

@junhaoliao

Bug

The native/decompress.py script has inconsistent database configuration handling that leads to runtime errors. In #1148 , the core CLP components were refactored to use command-line arguments and environment variables for database configuration instead of YAML config files. However, the native/decompress.py script was not properly updated to match this change.

The script still attempts to:

  1. Generate a temporary YAML database config file
  2. Pass it to the clp command with --db-config-file
  3. Delete the temporary file afterward

But the core CLP components no longer accept the --db-config-file argument, causing the decompression to fail.

CLP version

4216b1e

Environment

junhao@ASUS-X870E:~/workspace/clp$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Reproduction steps

  1. Build the CLP package with task package
  2. Navigate to build/clp-package/sbin
  3. Run the decompress command to extract:
    ./decompress.sh x
    
  4. The command will fail because the clp binary no longer accepts the --db-config-file argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions