Skip to content

Commit

Permalink
try concurrency=2 and no auto-clean
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
  • Loading branch information
starpit committed Dec 2, 2024
1 parent f5e1877 commit bfb79a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- ./tests/bin/ci.sh -i 'test7(b.*|c.*|d.*|e.*|g.*|h.*)'
- ./tests/bin/ci.sh -i 'test7f.*'
- ./tests/bin/ci.sh -i 'test8.*'
- /tmp/lunchpail bat demos/data-prep-kit --concurrency 1 --auto-clean --target=$LUNCHPAIL_TARGET # bat=Build and Test
- /tmp/lunchpail bat demos/data-prep-kit --concurrency 2 --target=$LUNCHPAIL_TARGET # bat=Build and Test
- ./tests/bin/go.sh
- ./tests/bin/pipelines.sh
os: [ubuntu-latest]
Expand Down
7 changes: 6 additions & 1 deletion pkg/runtime/needs/install_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ func installPython(ctx context.Context, version string, verbose bool) (string, e
sudo = ""
}
if _, err := exec.LookPath("apt"); err == nil {
cmdline = fmt.Sprintf("%s add-apt-repository -y ppa:deadsnakes/ppa && %s apt update && %s apt install -y python%s python%s-venv python%s-distutils && curl -sS https://bootstrap.pypa.io/get-pip.py | python%s && which python%s", sudo, sudo, sudo, version, version, version, version, version)
// Note: apt install supports waiting for the package lock, but apt update does not; hence the while loop
cmdline = fmt.Sprintf(`
%s add-apt-repository -y ppa:deadsnakes/ppa
while true; do (%s apt update && break || sleep 2); done
%s apt -o DPkg::Lock::Timeout=180 install -y python%s python%s-venv python%s-distutils
curl -sS https://bootstrap.pypa.io/get-pip.py | python%s && which python%s`, sudo, sudo, sudo, version, version, version, version, version)
}

if cmdline != "" {
Expand Down

0 comments on commit bfb79a8

Please sign in to comment.