]> git.arvados.org - arvados.git/log
arvados.git
6 months ago22008: Improve storage classes query API 22008-python-storage-options
Brett Smith [Tue, 4 Feb 2025 21:28:04 +0000 (16:28 -0500)]
22008: Improve storage classes query API

Make it more generalized so it's useful in more contexts.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22008: Improve csv_to_list API
Brett Smith [Tue, 4 Feb 2025 20:56:24 +0000 (15:56 -0500)]
22008: Improve csv_to_list API

Instead of having a single hardcoded function in util, have two
functions parse_seq and uniq in _internal. Add a UniqueSplit class to
commands._util for use as an argparse argument type to improve error
reporting.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22008: Make type declarations compatible with Python 3.8
Brett Smith [Tue, 28 Jan 2025 18:12:28 +0000 (13:12 -0500)]
22008: Make type declarations compatible with Python 3.8

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoCWL SDK: Do not hard-code default storage class in command-line tool
Zoë Ma [Mon, 1 Jul 2024 07:34:33 +0000 (15:34 +0800)]
CWL SDK: Do not hard-code default storage class in command-line tool

For arvados-cwl-runner, the options --storage-classes and
--intermediate-storage-classes used the hard-coded string `"default"`
internally as the stand-in for the storage class when none was given
when the tool was invoked.

This works when the storage class named "default" is the only default
storage class configured (i.e. with `Default: True` property). However,
this could be confusing, because, for example, there can be more than
one default storage classes in addition to the one _named_ "default".
Furthermore, the it's possible that the class named "default" may not
have the `Default: True` property (although the latter is certainly not
recommended).

By using the empty string, instead of the hard-coded "default", to
indicate that "no valid storage class is explicitly specified", testing
for the condition "we should use default storage classes" is actually
simplified, because the empty string is not ambiguous.

With this change, the decision about default intermediate storage
classes is made when container is requested. This can be beneficial, for
example, when the stages are run on different clusters with different
storage class configurations.

In addition, like in 8cb5ef17 (for Python SDK), the input option value
(comma-separated list of storage classes) is subjected to more robust
validation, to filter out any duplicate or empty values.

Arvados-DCO-1.1-Signed-off-by: Zoë Ma <zoe.ma@curii.com>

6 months agoPython SDK: more validation for options taking comma-separated values
Zoë Ma [Mon, 1 Jul 2024 07:17:49 +0000 (15:17 +0800)]
Python SDK: more validation for options taking comma-separated values

For command-line tools such as arv-put and arv-copy, options like
--storage-classes and --varying-url-params take a string of
comma-separated values. The current implementation may provide
insufficient validation for such input when, for example,

  - input contains duplicates values
  - input is empty or does not contain any valid value after removing
    leading and trailing space characters, e.g. --storage-class=", ,,,"

This is fixed by filtering the input string through a clean-up and
deduplication function. A test is added for the arv-put command to
illustrate the updated behavior.

For convenience, the filter function is added as
arvados.util.csv_to_list().

The minor changes to arvados/keep.py and arvados/http_to_keep.py are
for reusing the same code in certain internal string processing.

Arvados-DCO-1.1-Signed-off-by: Zoë Ma <zoe.ma@curii.com>

6 months ago22008: Add RangedValue argparse type
Brett Smith [Tue, 28 Jan 2025 16:50:30 +0000 (11:50 -0500)]
22008: Add RangedValue argparse type

This provides a generic way to check that an argument is within a range
of values and cause argparse to report an error if not.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoSupport setting replication level at destination in arv-copy options
Zoë Ma [Wed, 19 Jun 2024 03:01:11 +0000 (11:01 +0800)]
Support setting replication level at destination in arv-copy options

arv-copy effectively used a hard-coded replication level 2 for the
copied collections at the destination, bypassing the default replication
level set in the destination cluster's configuration file. There was no
command-line option to override this behavior.

A new command-line option, --replication, is added to the arv-copy
command, following the arv-put command's semantics. If left unspecified,
the destination's default replication setting is used. If that setting
cannot be found, use the fallback value of 2.

Arvados-DCO-1.1-Signed-off-by: Zoë Ma <zoe.ma@curii.com>

6 months agoMerge branch '22466-output-glob-fix' refs #22466
Peter Amstutz [Tue, 4 Feb 2025 14:59:05 +0000 (09:59 -0500)]
Merge branch '22466-output-glob-fix' refs #22466

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: A few more exception handling tweaks 22466-output-glob-fix
Peter Amstutz [Mon, 3 Feb 2025 22:05:34 +0000 (17:05 -0500)]
22466: A few more exception handling tweaks

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: Check if pattern is falsy instead of checking len()
Peter Amstutz [Mon, 3 Feb 2025 20:05:28 +0000 (15:05 -0500)]
22466: Check if pattern is falsy instead of checking len()

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: use a distinct OutputGlobError when setting output_glob
Peter Amstutz [Mon, 3 Feb 2025 20:03:55 +0000 (15:03 -0500)]
22466: use a distinct OutputGlobError when setting output_glob

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months agoMerge branch '22506-workspace-arg'
Tom Clegg [Mon, 3 Feb 2025 15:55:36 +0000 (10:55 -0500)]
Merge branch '22506-workspace-arg'

closes #22506

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22506: Don't support setting arbitrary env vars on command line. 22506-workspace-arg
Tom Clegg [Sat, 1 Feb 2025 00:46:12 +0000 (19:46 -0500)]
22506: Don't support setting arbitrary env vars on command line.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22433-test-fixes'
Tom Clegg [Thu, 30 Jan 2025 15:36:17 +0000 (10:36 -0500)]
Merge branch '22433-test-fixes'

refs #22433

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22466: Use better exception types
Peter Amstutz [Wed, 29 Jan 2025 20:58:22 +0000 (15:58 -0500)]
22466: Use better exception types

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: Reorganize block processing patterns to use exceptions
Peter Amstutz [Wed, 29 Jan 2025 20:48:28 +0000 (15:48 -0500)]
22466: Reorganize block processing patterns to use exceptions

Now uses exceptions to indicate any condition where it cannot
determine a correct value for output_glob, which should make the logic
a bit easier to follow.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months agoMerge branch '22420-file-update' refs #22420
Peter Amstutz [Wed, 29 Jan 2025 20:21:13 +0000 (15:21 -0500)]
Merge branch '22420-file-update' refs #22420

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Added "on next access" to "--refresh-time" help string.
Peter Amstutz [Wed, 29 Jan 2025 20:20:02 +0000 (15:20 -0500)]
22420: Added "on next access" to "--refresh-time" help string.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months agoMerge branch '22160-retry-container-req' refs #22160
Peter Amstutz [Wed, 29 Jan 2025 20:08:12 +0000 (15:08 -0500)]
Merge branch '22160-retry-container-req' refs #22160

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22160: Check all three possible return states 22160-retry-container-req
Peter Amstutz [Wed, 29 Jan 2025 20:05:26 +0000 (15:05 -0500)]
22160: Check all three possible return states

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22160: Add test
Peter Amstutz [Wed, 29 Jan 2025 19:49:52 +0000 (14:49 -0500)]
22160: Add test

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22433: DRY up download recipes 22433-test-fixes
Brett Smith [Wed, 29 Jan 2025 16:27:13 +0000 (11:27 -0500)]
22433: DRY up download recipes

Use Make's built-in variables to avoid duplicating paths.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Update package build to Node 14.21.3
Brett Smith [Wed, 29 Jan 2025 16:13:33 +0000 (11:13 -0500)]
22433: Update package build to Node 14.21.3

This matches lib/install/deps.go and tools/ansible/install-test-env.yml.
I don't want to parse it out of deps.go a la goversion because we're
looking to get rid of that soon-ish.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Switch from wget to curl for package-build-dockerfiles
Brett Smith [Wed, 29 Jan 2025 15:59:19 +0000 (10:59 -0500)]
22433: Switch from wget to curl for package-build-dockerfiles

This is the only place in our build process where we depend on wget, so
removing it in favor of curl simplifies things.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Update package test scripts to accommodate Rails postinst failing
Brett Smith [Wed, 29 Jan 2025 15:58:13 +0000 (10:58 -0500)]
22433: Update package test scripts to accommodate Rails postinst failing

These scripts were relying on the previous behavior of the postinst
reporting success even if the package wasn't fully installed.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Remove stray local statements from Rails postinst
Brett Smith [Wed, 29 Jan 2025 15:57:16 +0000 (10:57 -0500)]
22433: Remove stray local statements from Rails postinst

These should've been removed in 4bdf19541cf8775f3c60042f511f63827c5a9f34.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoMerge branch '22433-rails-postinst-exit-code'
Brett Smith [Tue, 28 Jan 2025 21:28:48 +0000 (16:28 -0500)]
Merge branch '22433-rails-postinst-exit-code'

Refs #22433. Closes #22448.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoMerge branch '22051-integrate-resource-to-menu-kind'
Lisa Knox [Tue, 28 Jan 2025 21:07:44 +0000 (16:07 -0500)]
Merge branch '22051-integrate-resource-to-menu-kind'

refs #22051

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22420: rename the --poll-time option to --refresh-time 22420-file-update
Peter Amstutz [Tue, 28 Jan 2025 20:37:22 +0000 (15:37 -0500)]
22420: rename the --poll-time option to --refresh-time

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22051: changed isRoleGroupResource to use isUserGroup 22051-integrate-resource-to-menu-kind
Lisa Knox [Tue, 28 Jan 2025 20:19:08 +0000 (15:19 -0500)]
22051: changed isRoleGroupResource to use isUserGroup

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months agoMerge branch '22437-ansible-dir'
Brett Smith [Tue, 28 Jan 2025 19:34:10 +0000 (14:34 -0500)]
Merge branch '22437-ansible-dir'

Refs #22437. Closes #22447.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoMerge branch '21547-retryable-db-error' refs #21547
Peter Amstutz [Tue, 28 Jan 2025 14:40:58 +0000 (09:40 -0500)]
Merge branch '21547-retryable-db-error' refs #21547

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago21547: Fix reference to db connection 21547-retryable-db-error
Peter Amstutz [Mon, 27 Jan 2025 16:56:33 +0000 (11:56 -0500)]
21547: Fix reference to db connection

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago21547: Fix ruby syntax and add tests.
Tom Clegg [Mon, 27 Jan 2025 15:50:07 +0000 (10:50 -0500)]
21547: Fix ruby syntax and add tests.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22467-extra-fulltext-index'
Tom Clegg [Mon, 27 Jan 2025 15:25:21 +0000 (10:25 -0500)]
Merge branch '22467-extra-fulltext-index'

fixes #22467

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago21547: Don't retry row_lock_for_priority_update deadlocks
Peter Amstutz [Sun, 26 Jan 2025 03:25:23 +0000 (22:25 -0500)]
21547: Don't retry row_lock_for_priority_update deadlocks

It seems like retrying a deadlock is counter productive -- it ties up
a request slot and holds a transaction open.  I believe returning a
500 error and having the client retry will be more robust.

This also adjusts the locking query to select and order by the primary
key (id).  This is speculative and based on a stack overflow comment
suggesting that the doing lock ordering on a field other than the
primary key causes rows to be first acquired with share locks (out of
order) and then subsequently converted to exclusive locks (in order),
and this can be avoided by using the primary key.

Since I haven't been able to determine any other reason the ordered
locking, which is specifically implemented to prevent deadlocks but
deadlocks anyway, it's worth a shot.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago21547: Return certain database errors as 500 for retry
Peter Amstutz [Sun, 26 Jan 2025 03:17:39 +0000 (22:17 -0500)]
21547: Return certain database errors as 500 for retry

ActiveRecord errors which are related to locking or communicating with
the database should be returned as code 500 so the client knows to
retry.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22160: If error committing a container request, re-check it
Peter Amstutz [Sat, 25 Jan 2025 20:18:05 +0000 (15:18 -0500)]
22160: If error committing a container request, re-check it

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22051: added canManage and canWrite defaults because they are possibly undefined
Lisa Knox [Fri, 24 Jan 2025 18:29:15 +0000 (13:29 -0500)]
22051: added canManage and canWrite defaults because they are possibly undefined

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: added missing user group filter
Lisa Knox [Fri, 24 Jan 2025 15:56:43 +0000 (10:56 -0500)]
22051: added missing user group filter

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: changed groups-panel to use resourceToMenuKind
Lisa Knox [Fri, 24 Jan 2025 15:28:04 +0000 (10:28 -0500)]
22051: changed groups-panel to use resourceToMenuKind

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: smoothed out type predicates
Lisa Knox [Fri, 24 Jan 2025 14:47:43 +0000 (09:47 -0500)]
22051: smoothed out type predicates

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22466: Handle case where we get the 2ndary filename from the expression
Peter Amstutz [Wed, 22 Jan 2025 19:54:10 +0000 (14:54 -0500)]
22466: Handle case where we get the 2ndary filename from the expression

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: Additional improvements identifying secondary files
Peter Amstutz [Wed, 22 Jan 2025 18:14:55 +0000 (13:14 -0500)]
22466: Additional improvements identifying secondary files

In circumstances where we can safely identify the primary and
secondary file (the filenames are sufficiently well characterized in
advance) then we can use output_glob.  If not, capture everything, and
make sure we don't throw any spurious errors.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: compute output_glob for secondary files after expression eval
Peter Amstutz [Thu, 16 Jan 2025 17:46:49 +0000 (12:46 -0500)]
22466: compute output_glob for secondary files after expression eval

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22466: Test for bug 22466
Peter Amstutz [Thu, 16 Jan 2025 18:15:52 +0000 (13:15 -0500)]
22466: Test for bug 22466

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22437: Fix markup typo 22437-ansible-dir
Brett Smith [Wed, 22 Jan 2025 19:38:43 +0000 (14:38 -0500)]
22437: Fix markup typo

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22437: Add missing playbook path to documentation
Brett Smith [Wed, 22 Jan 2025 19:14:56 +0000 (14:14 -0500)]
22437: Add missing playbook path to documentation

You must pass a playbook to `ansible-playbook`, the documentation was
plain buggy before.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22437: Move Ansible playbooks and roles to a dedicated directory
Brett Smith [Wed, 22 Jan 2025 19:14:01 +0000 (14:14 -0500)]
22437: Move Ansible playbooks and roles to a dedicated directory

We already have playbooks for things besides the compute image build,
and we expect to develop more.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Report a failure status if RailsAPI postinst does not complete 22433-rails-postinst-exit-code
Brett Smith [Wed, 22 Jan 2025 18:00:34 +0000 (13:00 -0500)]
22433: Report a failure status if RailsAPI postinst does not complete

In the past, we specifically wanted to return exit code 0 if RailsAPI
couldn't be installed because of missing configuration or supporting
database. This meant the message we reported about it was the last
thing users saw, and they could get to work fixing it.

However, we are really pushing to get people to use higher-level
installers like Salt and Ansible. In this scenario, the exit code 0 is a
problem: it means the installer will assume RailsAPI is good to go even
if it isn't.

Now we prioritize this case over the by-hand install and exit with an
error code if postinst cannot complete.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22433: Flatten RailsAPI postinst script
Brett Smith [Wed, 22 Jan 2025 17:51:47 +0000 (12:51 -0500)]
22433: Flatten RailsAPI postinst script

The previous version had most of the work in a giant `configure_version`
function and then just did a little status reporting at the end. Reverse
that relationship: have the main functionality be the top level of the
script, and move incomplete install reporting to a dedicated function.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22420: Update collection.notify documentation string.
Peter Amstutz [Wed, 22 Jan 2025 16:11:55 +0000 (11:11 -0500)]
22420: Update collection.notify documentation string.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Added --poll-time and tweaked some tests
Peter Amstutz [Wed, 22 Jan 2025 16:06:16 +0000 (11:06 -0500)]
22420: Added --poll-time and tweaked some tests

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Apply the stale-then-update pattern to files
Peter Amstutz [Wed, 22 Jan 2025 03:52:43 +0000 (22:52 -0500)]
22420: Apply the stale-then-update pattern to files

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Correctly distinguish TOK and MOD events
Peter Amstutz [Tue, 21 Jan 2025 20:37:08 +0000 (15:37 -0500)]
22420: Correctly distinguish TOK and MOD events

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Check if file needs kernel cache refresh on open
Peter Amstutz [Tue, 21 Jan 2025 19:28:24 +0000 (14:28 -0500)]
22420: Check if file needs kernel cache refresh on open

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Check "can_write" instead of "writable_by"
Peter Amstutz [Wed, 15 Jan 2025 17:39:55 +0000 (12:39 -0500)]
22420: Check "can_write" instead of "writable_by"

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Flushing files flushes update the parent collection
Peter Amstutz [Wed, 15 Jan 2025 14:59:16 +0000 (09:59 -0500)]
22420: Flushing files flushes update the parent collection

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Fix TOK events causing conflicts-file-update
Peter Amstutz [Tue, 14 Jan 2025 22:04:46 +0000 (17:04 -0500)]
22420: Fix TOK events causing conflicts-file-update

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Refactor Collection automatic update and merge
Peter Amstutz [Tue, 14 Jan 2025 21:35:13 +0000 (16:35 -0500)]
22420: Refactor Collection automatic update and merge

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Set correct polling time based on collection id type
Peter Amstutz [Fri, 3 Jan 2025 04:07:39 +0000 (23:07 -0500)]
22420: Set correct polling time based on collection id type

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22420: Fix file invalidation when updated upstream
Peter Amstutz [Mon, 30 Dec 2024 15:42:46 +0000 (10:42 -0500)]
22420: Fix file invalidation when updated upstream

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

6 months ago22051: smoothed out types
Lisa Knox [Fri, 17 Jan 2025 17:07:34 +0000 (12:07 -0500)]
22051: smoothed out types

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: removed getResourceWithEditableStatus and associated unit test
Lisa Knox [Fri, 17 Jan 2025 16:03:08 +0000 (11:03 -0500)]
22051: removed getResourceWithEditableStatus and associated unit test

* removed test's functionality is covered in resource-to-menukind.cy.js

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: refactored getResourceWithEditableStatus
Lisa Knox [Fri, 17 Jan 2025 15:02:02 +0000 (10:02 -0500)]
22051: refactored getResourceWithEditableStatus

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: context menu comp tests pass
Lisa Knox [Fri, 17 Jan 2025 14:24:50 +0000 (09:24 -0500)]
22051: context menu comp tests pass

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: replaced all resourceToContextMenuKinds with resourceToMenuKind
Lisa Knox [Thu, 16 Jan 2025 19:42:08 +0000 (14:42 -0500)]
22051: replaced all resourceToContextMenuKinds with resourceToMenuKind

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months ago22051: created new resourceToMenuKind function
Lisa Knox [Thu, 16 Jan 2025 18:29:53 +0000 (13:29 -0500)]
22051: created new resourceToMenuKind function

* also applied some memoization to resource getters

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

6 months agoMerge branch '22414-max-rails-requests'
Tom Clegg [Thu, 16 Jan 2025 16:10:43 +0000 (11:10 -0500)]
Merge branch '22414-max-rails-requests'

fixes #22414

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22435-no-migration-timeouts'
Tom Clegg [Thu, 16 Jan 2025 16:08:07 +0000 (11:08 -0500)]
Merge branch '22435-no-migration-timeouts'

fixes #22435

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22467: Remove unneeded search index. 22467-extra-fulltext-index
Tom Clegg [Thu, 16 Jan 2025 16:04:16 +0000 (11:04 -0500)]
22467: Remove unneeded search index.

Removed in 7f4d69cf43a7a743a491105665b3b878a3cfd11c and re-added by
20240402162733_add_output_glob_index_to_containers.rb in
dcdf385b2852acf95f41e2340d07cd68cb34e371.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22435: Allow database connection options to be missing. 22435-no-migration-timeouts
Tom Clegg [Wed, 15 Jan 2025 20:18:13 +0000 (15:18 -0500)]
22435: Allow database connection options to be missing.

These were silently accepted before and accidentally became mandatory
in 1b9c6f10d4f9786ac574dfaa3f7e43295c0e90f1.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22435: Refine shell style in new migrate commands
Brett Smith [Wed, 15 Jan 2025 15:45:20 +0000 (10:45 -0500)]
22435: Refine shell style in new migrate commands

* Prefer `env -C` over `cd` to avoid changing global state.
* Declare local variables where possible.
* Remove needless eval.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months agoMerge branch '22434-spot-check-warning'
Tom Clegg [Tue, 14 Jan 2025 16:25:55 +0000 (11:25 -0500)]
Merge branch '22434-spot-check-warning'

fixes #22434

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22434: Reword spot check error message: "inconclusive". 22434-spot-check-warning
Tom Clegg [Mon, 13 Jan 2025 21:42:08 +0000 (16:42 -0500)]
22434: Reword spot check error message: "inconclusive".

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22435: URL-encode All The Strings in database connection string.
Tom Clegg [Mon, 13 Jan 2025 19:17:28 +0000 (14:17 -0500)]
22435: URL-encode All The Strings in database connection string.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22435: Add "migrate" command to run-tests.sh
Tom Clegg [Mon, 13 Jan 2025 19:17:12 +0000 (14:17 -0500)]
22435: Add "migrate" command to run-tests.sh

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22435: Disable statement timeout during db migrations.
Tom Clegg [Mon, 13 Jan 2025 19:17:08 +0000 (14:17 -0500)]
22435: Disable statement timeout during db migrations.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22411-keepstore-index-timeout'
Tom Clegg [Mon, 13 Jan 2025 16:46:11 +0000 (11:46 -0500)]
Merge branch '22411-keepstore-index-timeout'

fixes #22411

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22434: Fix spot check error message that lies about retrying.
Tom Clegg [Fri, 10 Jan 2025 20:11:19 +0000 (15:11 -0500)]
22434: Fix spot check error message that lies about retrying.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22431-tunnel-log-spam'
Tom Clegg [Fri, 10 Jan 2025 19:38:26 +0000 (14:38 -0500)]
Merge branch '22431-tunnel-log-spam'

fixes #22431

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22431: Add comments about runTunnel return value. 22431-tunnel-log-spam
Tom Clegg [Fri, 10 Jan 2025 18:42:36 +0000 (13:42 -0500)]
22431: Add comments about runTunnel return value.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months agoMerge branch '22428-run-tests-targets'
Brett Smith [Fri, 10 Jan 2025 14:41:58 +0000 (09:41 -0500)]
Merge branch '22428-run-tests-targets'

Refs #22428.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22431: Remove spammy/debug logs.
Tom Clegg [Thu, 9 Jan 2025 21:53:05 +0000 (16:53 -0500)]
22431: Remove spammy/debug logs.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22434: Reword spot check error messages to be less spooky.
Tom Clegg [Thu, 9 Jan 2025 20:41:37 +0000 (15:41 -0500)]
22434: Reword spot check error messages to be less spooky.

Also, update logic to avoid emitting confusing logs/runtime_status if
we get an interruption notice followed by an error.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

6 months ago22428: Guard target list against undefined/incorrect WORKSPACE 22428-run-tests-targets
Brett Smith [Thu, 9 Jan 2025 16:52:28 +0000 (11:52 -0500)]
22428: Guard target list against undefined/incorrect WORKSPACE

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22428: Better anchor excluded test function regexp
Brett Smith [Thu, 9 Jan 2025 16:51:12 +0000 (11:51 -0500)]
22428: Better anchor excluded test function regexp

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

6 months ago22414: Increase default MaxConcurrentRailsRequests. 22414-max-rails-requests
Tom Clegg [Thu, 9 Jan 2025 16:21:28 +0000 (11:21 -0500)]
22414: Increase default MaxConcurrentRailsRequests.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

7 months ago22411: Fix hardcoded port number in test. 22411-keepstore-index-timeout
Tom Clegg [Tue, 7 Jan 2025 19:56:17 +0000 (14:56 -0500)]
22411: Fix hardcoded port number in test.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

7 months ago22411: Update Hijack usage in websocket server.
Tom Clegg [Mon, 6 Jan 2025 20:52:28 +0000 (15:52 -0500)]
22411: Update Hijack usage in websocket server.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

7 months ago22411: Do not apply RequestTimeout to keepstore index handler.
Tom Clegg [Mon, 6 Jan 2025 16:08:55 +0000 (11:08 -0500)]
22411: Do not apply RequestTimeout to keepstore index handler.

This updates our code to account for the ResponseController pattern
(see https://tip.golang.org/doc/go1.20#http_responsecontroller):

Update prometheus client library to a newer version whose middleware
supports Unwrap.

Use http.NewResponseController(w).Hijack() instead of probing for the
Hijack() interface.

Use a explicit function call to disable the request timeout when
needed, instead of magically detecting whether the connection has been
hijacked.

(Our old way of detecting hijacking doesn't work if it's done via
ResponseController.  Since we're adding an explicit "disable timeout"
mechanism anyway, it's much simpler to just write "hijack and cancel
timeout" when needed, rather than implement a new way to detect
hijacking.)

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

7 months ago22411: Test that keepstore index is exempt from RequestTimeout.
Tom Clegg [Thu, 2 Jan 2025 22:41:31 +0000 (17:41 -0500)]
22411: Test that keepstore index is exempt from RequestTimeout.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

7 months ago22428: Make run-tests.sh target lists complete
Brett Smith [Mon, 6 Jan 2025 22:06:25 +0000 (17:06 -0500)]
22428: Make run-tests.sh target lists complete

* Remove the static target list from helpmessage.

* Move all top-level code below all function definitions so it's easier
  to follow the flow of execution.

* Automatically generate testfuncargs based on defined test functions.

* Use testfuncargs as the source of available targets.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months ago22318: Restore libgnutls28-dev to ubuntu2004 Docker image
Brett Smith [Mon, 6 Jan 2025 20:29:32 +0000 (15:29 -0500)]
22318: Restore libgnutls28-dev to ubuntu2004 Docker image

On this distro only, libgnutls28-dev is required to build pycurl. We can
build without it on every other distro. Refs #22318.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months agoMerge branch '22318-ansible-test-node'
Brett Smith [Mon, 6 Jan 2025 16:41:59 +0000 (11:41 -0500)]
Merge branch '22318-ansible-test-node'

Refs #22318. Closes #22335.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months ago22318: Add `become: yes` to privilege-nspawn-vm 22318-ansible-test-node
Brett Smith [Fri, 3 Jan 2025 21:30:26 +0000 (16:30 -0500)]
22318: Add `become: yes` to privilege-nspawn-vm

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months ago22318: Remove s3cmd from deps.go
Brett Smith [Fri, 3 Jan 2025 21:28:01 +0000 (16:28 -0500)]
22318: Remove s3cmd from deps.go

run-tests.sh already installs it in a virtualenv, which is easier and
more reliable.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months ago22318: Remove obsolete dependencies from various builds
Brett Smith [Fri, 3 Jan 2025 21:16:06 +0000 (16:16 -0500)]
22318: Remove obsolete dependencies from various builds

The rationale for all these removals is in
6a2b9dfc3813a4086c71dce9a8732789262fb27f.
This commit just removes the same dependencies from other build processes.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

7 months agoMerge branch '22159-data-explorer-refactor'
Lisa Knox [Fri, 3 Jan 2025 15:53:16 +0000 (10:53 -0500)]
Merge branch '22159-data-explorer-refactor'

closes #22159

Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii.com>

7 months agoMerge branch '22424-api-package-version-test'
Brett Smith [Fri, 3 Jan 2025 15:01:19 +0000 (10:01 -0500)]
Merge branch '22424-api-package-version-test'

Closes #22424, #22425.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>