vaticle / typedb-common

TypeDB Common Libraries and Scripts
GNU Affero General Public License v3.0
7 stars 15 forks source link

Upgrade Python in deploy-apt-* CI jobs #116

Open vmax opened 2 years ago

vmax commented 2 years ago

Description

Currently, using Python 3.8 or newer when deploying APT packages might result in a package that's not installable.

Environment

  1. OS (where TypeDB server runs): Ubuntu 21.04 (or any other APT-based distribution)
  2. TypeDB version (and platform): 2.3.0
  3. TypeDB client: -
  4. Other environment details: -

Reproducible Steps

sudo apt install typedb-all

Expected Output

Package installed

Actual Output

An error thrown:

Unpacking typedb-console (2.3.0) ...
dpkg: error processing archive /var/cache/apt/archives/typedb-console_2.3.0_all.deb (--unpack):
 corrupted filesystem tarfile in package archive: unsupported PAX tar header type 'x'
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/typedb-console_2.3.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Additional information

This is happening because of bazelbuild/rules_pkg#397

flyingsilverfin commented 1 year ago

To solve this, we currently explicitly set Python 3.7.9 in apt deployments. However, it may also be solved by upgrading rules_pkg to at least version 0.7.1 (fixed in https://github.com/bazelbuild/rules_pkg/pull/601)