Commit Graph
1805 Commits
Author SHA1 Message Date
John Davis 84743c4786 Add --repair argument to upgrade/downgrade commands on db_dev script 2023-04-26 08:53:35 -04:00
Nicola Soranzo 64af46c4ae Fix new B018 errors raised by ruff 0.0.260 2023-04-13 16:53:01 +01:00
Dannon Baker af8154126e Merge branch 'release_23.0' into 'release_23.1' 2023-04-11 09:10:43 -04:00
Dannon Baker f94e5521ba Fix release script to be compatible with YY.X dates
TODO: make this flexible enough to handle 24.X, but we need to
discuss the rest of the process
2023-04-10 16:51:05 -04:00
Nicola Soranzo c655360e4e Merge branch 'release_23.0' into dev 2023-04-05 12:39:43 +01:00
Nicola Soranzo bee3d2e7ac Merge branch 'release_22.05' into release_23.0 2023-04-03 16:31:48 +01:00
Nicola Soranzo c3139f246d Fix UP031 errors reported by ruff 2023-03-29 08:55:54 +01:00
Dannon Baker 9b1301e6ae Apply black to forward merge 2023-03-27 10:51:25 -04:00
Dannon Baker caaa3e4f62 Joinedload replaces eagerload 22.05 forward 2023-03-27 10:17:11 -04:00
Dannon Baker f959f05b97 Merge remote-tracking branch 'upstream/release_22.01' into release_22.05 2023-03-27 10:01:59 -04:00
mvdbeek 756d047e1c Merge branch 'release_23.0' into dev 2023-03-06 18:08:05 +01:00
mvdbeek d97adf6359 Fix slugified dataset display
Fixes https://github.com/galaxyproject/galaxy/issues/15676.
2023-03-03 18:39:34 +01:00
John Chilton 6d91292beb Lint fixes... 2023-02-21 14:18:57 -05:00
John Chilton f7a4992b4b Implement quota tracking options per ObjectStore. 2023-02-19 10:33:21 -05:00
John Davis a402107486 Drop old TS scripts 2023-02-08 00:36:56 -05:00
John Davis 1dd03218bd Edit db wrapper scripts for consistency, add TS script 2023-02-08 00:33:48 -05:00
John Davis e08e1aaa9f Drop tool shed bootstrapping scripts and references to them 2023-02-08 00:33:48 -05:00
Nicola Soranzo bc15e2c63b Merge branch 'release_23.0' into dev 2023-02-02 01:28:48 +00:00
Nicola Soranzo 30f60493c3 Format Python code with black 23.1.0
with manual fixes to 3 files to make them compatible with black 22.12.0 .

We need to keep black pinned at `<23` until we vendorise `packaging`, since
the new version of black depends on `packaging >=22.0` which is the version
where `LegacyVersion` (which we use for tool lineages) was removed.
2023-02-01 23:51:03 +00:00
John Chilton 235ef39f16 deployment testing 2023-01-26 13:45:42 -05:00
Dannon Baker 9b6dd967c2 Basic client installation command added 2023-01-20 10:19:48 -05:00
Nicola Soranzo 9ddea92375 Update lists of non-passing CWL conformance tests
for the cwl-1.0 branch.

- `dynamic_initial_workdir` and `dynamic_resreq_filesizes` now pass.
- 7 non-passing tests have been given a label upstream.
2023-01-17 17:40:11 +00:00
Nicola Soranzo 39c0000c1b Bump minimum pip version to 20.3 . Ignore `--replace-pip and --no-replace-pip` startup options
Pip 20.3 added support for PEP 600, i.e. manylinux wheels using platform
tags of the form "manylinux_${GLIBCMAJOR}_${GLIBCMINOR}_${ARCH}". Fix
installation of dependencies like pysam 0.20.0 wheels, which otherwise need
to be built from source and can fail as reported by @assuntad23 in
https://gist.github.com/assuntad23/3022db63a6878f044a209961dd40e592

Also:
- Install `wheel` to fix warning like `Using legacy setup.py install for
  beaker, since package 'wheel' is not installed.`
- Drop unnecessary `defaults` channel from conda commands.
- Fix "SC2223: This default assignment may cause DoS due to globbing. Quote
  it." errors reported by `shellcheck -x` .
2023-01-17 15:01:38 +00:00
John Davis dd553e805f Fix maintenance script bug 2022-12-16 10:15:21 -05:00
John Chilton 4a619eacad Small fixes to YAML export of OpenAPI schema. 2022-12-12 19:44:19 -05:00
Nicola Soranzo ee7d51f2f5 Merge branch 'release_22.05' into dev 2022-12-09 11:36:00 +00:00
mvdbeek 6f1fb8640f Update release-process with building package instructions 2022-12-08 14:57:05 +01:00
Marius van den Beek 2a6f9c2a29 Merge pull request #15017 from natefoo/gravity-1.0
Update Gravity version to 1.0.0 pre-release
2022-12-07 07:37:59 +01:00
mvdbeek b7c62d0ac8 Add script that can dump openapi schema without a running galaxy 2022-12-06 12:59:01 +01:00
Nate Coraor 1684da5c15 Don't modify venv activate to set $GRAVITY_STATE_DIR 2022-12-05 12:52:11 -05:00
mvdbeek eec177839f Drop scripts/function_tests.py 2022-11-01 18:45:08 +00:00
mvdbeek ba593057c2 Use `galaxy_driver_class` to create tool shed driver
Use ``autouse`` fixture to configure test driver
2022-11-01 18:45:07 +00:00
Nicola Soranzo 0391cd4b62 Rename FooBarTestCase test classes as TestFooBar in API, framework, performance, Selenium and ToolShed tests
These are collected by pytest only because they are `unittest.TestCase` derived,
but normally pytest collects only test classes whose name starts with `Test`, see
https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes

Also:
- Some type annotations
2022-10-15 17:54:31 +01:00
Nicola Soranzo a81d680cca Merge branch 'release_22.05' into dev 2022-10-11 21:34:31 +01:00
John Davis 3f44ac633b Add shell wrapper for alembic CLI, improve inline docs 2022-09-30 10:34:58 -04:00
John Davis f1dc53e51e Remove duplication 2022-09-28 15:45:00 -04:00
John Davis bd56131ebd Split script into admin and dev
TODO: remove duplication between db.py and db_dev.py (split into
multiple commits is intentional)
2022-09-28 15:45:00 -04:00
John Davis 6c64a44a10 Remove run_alembic.sh from root; user scripts/run_alembic.py instead.
Rationale: move developer-focused scripts out of galaxy root.
2022-09-28 15:45:00 -04:00
John Davis e43552fdc5 Rename db.sh > manage_db.sh, following code review feedback 2022-09-28 15:45:00 -04:00
John Davis 503adcdf3b Override script name to display correct usage in cli help 2022-09-28 15:32:16 -04:00
John Davis dfd32a2ee8 Add type hints 2022-09-28 15:32:01 -04:00
John Davis b0a3c013ab Remove manage_db_adapter.py
We no longer need to translate the arguments of manage_db.sh into
arguments for alembic. The new facade script for alembic (db.sh)
accesses the alembic api programmatically.
2022-09-28 15:27:50 -04:00
John Davis 5e8add0e46 Rename migrate_db.py > run_alembic.py
This is consistent with other similar pairs of files:
[script-name].sh invoking scripts/[script-name].py (check_model, create_roolshed_db, db)

Also, the python file does not require exec permissions.
2022-09-28 15:25:51 -04:00
John Davis 5d376fdacc Drop create_db.sh, create_db.py (see note)
For ToolShed, we have create_toolshed_db.sh.

For galaxy and toolshed install databases (gxy and tsi branches under
alembic), we use the `init` subcommand of the `db.sh` script (`./db.sh
init`), which has exactly the same functionality as these deleted
scripts.

To the best of my knowledge, these are not used anywhere else (unlike,
for example, scripts/manage_db.py, which is called from the
ansible-galaxy role).
2022-09-28 15:25:43 -04:00
John Davis d8e8a8efb6 Add --raiseerr option; hide error traceback by default 2022-09-28 15:25:14 -04:00
John Davis 40249133cc Revise db.sh cli command aliases
1. Remove aliases from subcommands that change things (upgrade, downgrade,
revision, init) to reduce risk of accidental usage.

2. Add aliases to readonly subcommands (history, show, version,
   dbversion)

3. Minor edits
2022-09-28 15:24:57 -04:00
John Davis 889a8445bd Change parsing of --galaxy-config option
Rationale: alternate config file applies to all subcommands, so, I
think, it is more correct to run this:

> ./db.sh -c mygalaxy.yml upgrade some-revision-id

than this:

> ./db.sh upgrade some-revision-id -c mygalaxy.yml

That's also consistent with how alembic handles this option.
2022-09-28 15:24:49 -04:00
John Davis 0c9b087543 Add init command 2022-09-28 15:24:09 -04:00
John Davis ab1854f3a7 Test against 1 or 2 databases 2022-09-28 15:23:50 -04:00
John Davis d1c9342eca Add logging to script 2022-09-28 15:23:32 -04:00