Brett Smith [Sun, 25 Feb 2024 22:00:48 +0000 (17:00 -0500)]
21504: Rewrite arv-mount help for more consistent style
Some key points:
* Prefer describing the effect with a phrase over a sentence
* Only use periods when there are multiple sentences
* Defaults in parentheses
* Consistent text where needed (particularly across --by-* and
--mount-by-* options and different --unmount options)
We don't really have a style guide for documentation like this. I'm not
trying to establish one by fiat. I'd be open to discussing basically all
these points. But until that discussion happens, consistency is
valuable, so I'm using the rules that I tend to follow naturally.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Sun, 25 Feb 2024 04:17:53 +0000 (23:17 -0500)]
21504: Organize arv-mount options into groups
Groups are ordered roughly from more to less important, although
different users will have different needs. Options within a group are
mostly alphabetical except when organization requires otherwise.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
This is purely a code style change: every argparse argument is created
with one argument per line. This is preparation for readability
reorganization I'm about to do.
Remove arguments that match the argparse defaults as part of this.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Fri, 23 Feb 2024 16:54:34 +0000 (11:54 -0500)]
21494: Clean test_doc
* Use local variables and `env -C` to preserve global state, instead of
a subshell.
* Remove outdated python-epydoc comment.
* Remove PYTHONPATH setting. It's unnecessary now that we run inside a
virtualenv with PySDK installed.
Refs #21494.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Thu, 22 Feb 2024 19:25:05 +0000 (14:25 -0500)]
21494: Run linkchecker task unconditionally
This better matches the new behavior of SDK doc build tasks. It also
just makes sense IMO: linkchecker never runs implicitly, only when you
request it, so if it can't do what you asked I think that should count
as failure.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Wed, 21 Feb 2024 16:14:58 +0000 (11:14 -0500)]
21494: Let documentation build specify what SDKs should be included
This is to support Jenkins. It also lets us ensure that we actually
build the documentation we intend, and avoid situations where the build
quietly skips an SDK because of a missing dependency.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Thu, 15 Feb 2024 22:45:42 +0000 (17:45 -0500)]
21453: Clean imports in arvados.http_to_keep
This is to force Jenkins to build a new PySDK package. Right now it's
trying to run the test updated in the previous commit without updating
the package first, and failing. But this should still be a nice change.
Refs #21453.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Thu, 15 Feb 2024 22:09:07 +0000 (17:09 -0500)]
21321: Use CRAN cloud redirect
The wustl.edu mirror has been unreliable lately, sending incomplete
packages and causing test run failures. The hope is that this will be
more reliable.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Tue, 13 Feb 2024 15:36:54 +0000 (10:36 -0500)]
21453: Install Python package virtualenvs under /usr/lib
Installing under /usr/share/python3 is a remnant from when we built
library packages that integrated with the distribution. Now that we
install an entire virtualenv that's tied to a specific minor version of
Python, installing under /usr/lib makes more sense.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Mon, 12 Feb 2024 03:16:55 +0000 (22:16 -0500)]
21452: Update test for new ProjectDirectory API
I ran the FUSE tests on my laptop before I ran them on Jenkins. This
test did not report failure. I don't understand why it
didn't. Unfortunately the test log runs past the end of my scrollback,
so that's a mystery lost to history.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Mon, 12 Feb 2024 02:02:19 +0000 (21:02 -0500)]
21452: Add --filters option to arv-mount
This allows users to specify arbitrary API filters to queries arv-mount
uses to build directory listings. This gives users a way to filter out
unwanted entries from a mount, similar to the filtering in Workbench.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Thu, 8 Feb 2024 17:05:44 +0000 (12:05 -0500)]
21230: Clean up venv diagnostic output
This output stopped making sense in the transition from using virtualenv
to the venv module. The module doesn't really have a version separate
from Python, so just report a boolean result. Refs #21230.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Wed, 7 Feb 2024 15:54:10 +0000 (10:54 -0500)]
21384: Update arvados-google-api-client in RailsAPI
There's no functional need for this. The main motivation is to make sure
this release and the associated stack gets thoroughly tested, to give us
more confidence it works for clients too.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Brett Smith [Fri, 2 Feb 2024 07:26:26 +0000 (02:26 -0500)]
21417: Update arv-keepdocker for OCI-layout archives
Docker started saving image archives with this layout in version 25. Use
a more correct implementation that reads manifest.json as the archive
entry point and supports both layouts without branching.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
Peter Amstutz [Thu, 1 Feb 2024 21:43:06 +0000 (16:43 -0500)]
21304: Check for nil from set_initial_username
If set_initial_username comes back as nil (this happens when calling
update_remote_user on a remote system user), don't set username in
'needupdate', in order to avoid a spurious user record update.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>