Actions
Bug #22556
closed`run-tests.sh --only install` makes a bad GEMHOME by uninstalling arvados-google-api-client out from under arvados
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Story points:
-
Description
Summary: run-tests.sh --only install
can leave the arvados
gem in a half-installed state, where it appears in gem list
but cannot be removed with gem uninstall
, because its dependency arvados-google-api-client
has been uninstalled out from under it. This causes test failures later.
Attached is a log of running the tool with bash -x
. Here is the key bit that shows the problem happening:
+ gem_uninstall_if_exists arvados + gem list 'arvados$' + egrep '^\w' arvados (3.1.0.dev20241203191210) + gem uninstall --force --all --executables arvados ERROR: While executing gem ... (Gem::InstallError) gem "arvados" is not installed
I've also attached a minimal reproduction script. It assumes that $WORKSPACE
points to an arvados checkout where gems have already been built. It fails the same way:
$ bash -x gemtest.sh … + gem_uninstall arvados-google-api-client + gem uninstall --force --all --executables arvados-google-api-client Successfully uninstalled arvados-google-api-client-0.8.7.9 + gem list '^arv' *** LOCAL GEMS *** arvados (3.1.0.dev20241203191210) arvados-cli (3.1.0.dev20241204172535) + gem_uninstall arvados + gem uninstall --force --all --executables arvados Removing arv Removing arv-tag Successfully uninstalled arvados-cli-3.1.0.dev20241204172535 ERROR: While executing gem ... (Gem::InstallError) gem "arvados" is not installed
Files
Updated by Brett Smith about 2 months ago
- Blocks Feature #22489: Convert packer-build-jenkins-image-arvados-tests to use Ansible added
Updated by Brett Smith about 2 months ago
A fix for this is included and proposed in the arvados branch for #22489.
Updated by Peter Amstutz about 2 months ago
- Target version changed from Development 2025-02-12 to Development 2025-02-26
Updated by Brett Smith about 2 months ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|66c71b2076cde1771185d6225e0f1d2e9cce3dc3.
Actions