]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
3 years agoMerge pull request #1774 from ceph/nuke-typerror
Kamoltat Sirivadhna [Wed, 3 Aug 2022 18:00:37 +0000 (14:00 -0400)]
Merge pull request #1774 from ceph/nuke-typerror

nuke: Tolerate null node description
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
3 years agonuke: Tolerate null node description 1774/head
Zack Cerza [Thu, 23 Jun 2022 21:03:27 +0000 (15:03 -0600)]
nuke: Tolerate null node description

Fixes a TypeError

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1783 from zdover23/wip-doc-2022-08-04-fragment-merging-typo
Kamoltat Sirivadhna [Wed, 3 Aug 2022 15:34:33 +0000 (11:34 -0400)]
Merge pull request #1783 from zdover23/wip-doc-2022-08-04-fragment-merging-typo

docs/frag...merging.rst - s/contructed/constructed
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
3 years agodocs/frag...merging.rst - s/contructed/constructed 1783/head
Zac Dover [Wed, 3 Aug 2022 15:13:01 +0000 (01:13 +1000)]
docs/frag...merging.rst - s/contructed/constructed

This PR corrects "contructed" to "constructed".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #1781 from Ngwind/patch-1
kyr [Wed, 3 Aug 2022 09:31:48 +0000 (11:31 +0200)]
Merge pull request #1781 from Ngwind/patch-1

Update COMPONENTS.rst

3 years agoMerge pull request #1782 from ceph/jammy
Zack Cerza [Thu, 28 Jul 2022 20:46:38 +0000 (14:46 -0600)]
Merge pull request #1782 from ceph/jammy

opsys.py: Add Ubuntu 22.04

3 years agoopsys.py: Add Ubuntu 22.04 1782/head
David Galloway [Thu, 28 Jul 2022 19:23:10 +0000 (15:23 -0400)]
opsys.py: Add Ubuntu 22.04

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #1779 from ceph/dc-suite-fix
Zack Cerza [Tue, 26 Jul 2022 15:27:26 +0000 (09:27 -0600)]
Merge pull request #1779 from ceph/dc-suite-fix

Fix scheduling regression

3 years agodocs/docker-compose: Use Ubuntu Focal for testnode 1779/head
Zack Cerza [Mon, 25 Jul 2022 17:29:22 +0000 (11:29 -0600)]
docs/docker-compose: Use Ubuntu Focal for testnode

I'm seeing ceph-cm-ansible failures w/ Jammy because of python-apt vs.
python3-apt. We'll revisit this soon.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1778 from ceph/no-mails-with-dryrun
Kamoltat Sirivadhna [Mon, 25 Jul 2022 14:30:30 +0000 (10:30 -0400)]
Merge pull request #1778 from ceph/no-mails-with-dryrun

suite: Do not send emails with --dry-run at schedule_fail
Reviewed by: Kamoltat Sirivadhna <ksirivad@redhat.com>

3 years agoUpdate COMPONENTS.rst 1781/head
KB.M [Mon, 25 Jul 2022 07:50:02 +0000 (15:50 +0800)]
Update COMPONENTS.rst

Fix `components.rst` file not being rendered

3 years agosuite: add pytests for schedule_fail 1778/head
Vallari Agrawal [Tue, 19 Jul 2022 17:14:29 +0000 (22:44 +0530)]
suite: add pytests for schedule_fail

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agochoose_teuthology_branch: Choose main later on
Zack Cerza [Fri, 22 Jul 2022 21:12:42 +0000 (15:12 -0600)]
choose_teuthology_branch: Choose main later on

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agodocs/docker-compose: Tolerate empty TEUTH_BRANCH
Zack Cerza [Fri, 22 Jul 2022 20:36:54 +0000 (14:36 -0600)]
docs/docker-compose: Tolerate empty TEUTH_BRANCH

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoschedule_suite(): Make 'configs' a list
Zack Cerza [Fri, 22 Jul 2022 18:27:53 +0000 (12:27 -0600)]
schedule_suite(): Make 'configs' a list

The var being left as a generator led to all jobs being filtered out of
some suites, rendering them broken.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agodocs/docker-compose: Ensure we actually schedule
Zack Cerza [Fri, 22 Jul 2022 17:51:19 +0000 (11:51 -0600)]
docs/docker-compose: Ensure we actually schedule

This should have failed: https://github.com/ceph/teuthology/pull/1776/checks

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobeanstalk: Print tube stats in JSON format
Zack Cerza [Fri, 22 Jul 2022 17:46:53 +0000 (11:46 -0600)]
beanstalk: Print tube stats in JSON format

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1776 from batrick/yaml-preprocessor
Zack Cerza [Thu, 21 Jul 2022 15:58:40 +0000 (09:58 -0600)]
Merge pull request #1776 from batrick/yaml-preprocessor

teuthology: add pre/post fragment merge hooks

3 years agodocs: document fragment merging 1776/head
Patrick Donnelly [Fri, 1 Jul 2022 01:05:12 +0000 (21:05 -0400)]
docs: document fragment merging

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: add tests for fragment merging
Patrick Donnelly [Fri, 1 Jul 2022 20:42:52 +0000 (16:42 -0400)]
teuthology/suite/test: add tests for fragment merging

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology: add lua based fragment merge scripting
Patrick Donnelly [Tue, 28 Jun 2022 20:29:40 +0000 (16:29 -0400)]
teuthology: add lua based fragment merge scripting

As part of this change, there is a new generator design for producing
job configs. YAML fragments are memoized and merged manually to avoid
expensive and unnecessary parsing of the merged fragments. This provides
for a dramatic speedup in processing matrices with large numbers of
jobs. For rados suite with --subset 1/1000, this branch is 5x faster
(77s vs. 15s). (Note: the difference shrinks when there are fewer or
jobs or larger subsets are used due to cycling and the matrix generation
dominating runtime.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/misc: support MappingProxyType in deep_merge
Patrick Donnelly [Mon, 18 Jul 2022 13:50:02 +0000 (09:50 -0400)]
teuthology/misc: support MappingProxyType in deep_merge

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/misc: avoid copying references of b when list or dict
Patrick Donnelly [Tue, 28 Jun 2022 20:27:14 +0000 (16:27 -0400)]
teuthology/misc: avoid copying references of b when list or dict

Otherwise, if b persists in memory (in a cache), it may wrongly
accumulate future merges.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #1777 from VallariAg/log-total-jobs
Zack Cerza [Wed, 13 Jul 2022 17:05:28 +0000 (11:05 -0600)]
Merge pull request #1777 from VallariAg/log-total-jobs

3 years agosuite/run: Log total number of jobs scheduled 1777/head
Vallari Agrawal [Sun, 3 Jul 2022 09:06:31 +0000 (14:36 +0530)]
suite/run: Log total number of jobs scheduled

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agosuite: Do not send emails with --dry-run at schedule_fail
Vallari Agrawal [Mon, 11 Jul 2022 12:55:46 +0000 (18:25 +0530)]
suite: Do not send emails with --dry-run at schedule_fail

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
3 years agoMerge pull request #1769 from zmc/docs-missing-commands
Kamoltat Sirivadhna [Wed, 6 Jul 2022 15:30:18 +0000 (11:30 -0400)]
Merge pull request #1769 from zmc/docs-missing-commands

docs/commands: Add missing commands
Reviewed by: Kamoltat Sirivadhna <ksirivad@redhat.com>

3 years agoMerge pull request #1775 from ceph/update-reqs
Zack Cerza [Tue, 28 Jun 2022 19:26:02 +0000 (13:26 -0600)]
Merge pull request #1775 from ceph/update-reqs

Update pip-tools and sentry-sdk

3 years agoUpdate sentry-sdk 1775/head
Zack Cerza [Tue, 28 Jun 2022 18:36:31 +0000 (18:36 +0000)]
Update sentry-sdk

We've started seeing what appear to be duplicate issues:
https://tracker.ceph.com/issues/56410
Hoping a simple update will resolve this...

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoUpdate pip-tools
Zack Cerza [Tue, 28 Jun 2022 18:36:07 +0000 (18:36 +0000)]
Update pip-tools

Fixes https://github.com/jazzband/pip-tools/issues/1617

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge PR #1772 into master
Patrick Donnelly [Thu, 23 Jun 2022 14:18:08 +0000 (10:18 -0400)]
Merge PR #1772 into master

* refs/pull/1772/head:
Revert "Merge pull request #1624 from batrick/get-valgrind-args"

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
3 years agoRevert "Merge pull request #1624 from batrick/get-valgrind-args" 1772/head
Patrick Donnelly [Wed, 22 Jun 2022 23:54:37 +0000 (19:54 -0400)]
Revert "Merge pull request #1624 from batrick/get-valgrind-args"

This reverts commit 40fff4b2911949847a302adfe2f4714cfaccb58e, reversing
changes made to 93d2b653facc0e5a7a532b39d9ff91a044f2c4a9.

3 years agoMerge pull request #1770 from ceph/plow
Zack Cerza [Wed, 15 Jun 2022 21:05:22 +0000 (15:05 -0600)]
Merge pull request #1770 from ceph/plow

3 years agoopsys.py: Add RHEL9 1770/head
David Galloway [Wed, 15 Jun 2022 20:43:53 +0000 (16:43 -0400)]
opsys.py: Add RHEL9

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #1765 from ceph/wip-45512
Zack Cerza [Wed, 15 Jun 2022 19:04:45 +0000 (13:04 -0600)]
Merge pull request #1765 from ceph/wip-45512

3 years agodocs/commands: Add missing commands 1769/head
Zack Cerza [Wed, 15 Jun 2022 16:52:14 +0000 (10:52 -0600)]
docs/commands: Add missing commands

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1764 from kshtsk/wip-watch-fix-typeerror
Zack Cerza [Wed, 8 Jun 2022 21:36:20 +0000 (15:36 -0600)]
Merge pull request #1764 from kshtsk/wip-watch-fix-typeerror

3 years agoMerge pull request #1766 from ceph/rhel86
Zack Cerza [Wed, 8 Jun 2022 21:14:33 +0000 (15:14 -0600)]
Merge pull request #1766 from ceph/rhel86

3 years agoMerge pull request #1767 from ceph/bs-missing-pip
Zack Cerza [Wed, 8 Jun 2022 21:11:46 +0000 (15:11 -0600)]
Merge pull request #1767 from ceph/bs-missing-pip

3 years agobootstrap: If pip is missing, rebuild virtualenv 1767/head
Zack Cerza [Wed, 8 Jun 2022 20:03:30 +0000 (14:03 -0600)]
bootstrap: If pip is missing, rebuild virtualenv

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoopsys.py: Default to RHEL8.6 1766/head
David Galloway [Wed, 8 Jun 2022 19:14:18 +0000 (15:14 -0400)]
opsys.py: Default to RHEL8.6

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agonuke.nuke: Rework lock-checking logic 1765/head
Zack Cerza [Wed, 8 Jun 2022 18:41:37 +0000 (12:41 -0600)]
nuke.nuke: Rework lock-checking logic

Previously, we would call list_locks(), then iterate over the response,
each time iterating over the list of targets. If list_locks()
encountered an error and returned an empty response, we'd never actually
verify what we intended to. Instead, we should specifically query for
each target. This is far safer and faster.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agosuite: fix type error when description is none 1764/head
Kyr Shatskyy [Wed, 8 Jun 2022 11:28:15 +0000 (13:28 +0200)]
suite: fix type error when description is none

teuthology-watch fails when run is complete and jobs' description
gets None value

Example:

2022-06-07 16:41:22,538.538 INFO:teuthology.suite:waiting for the run runner-2022-06-07_16:41:04-suse:tier0-ses7p-none-default-ecp to complete
2022-06-07 16:41:22,539.539 DEBUG:teuthology.suite:the list of unfinished jobs will be displayed every 5.0 minutes
2022-06-07 16:46:22,599.599 DEBUG:teuthology.suite:wait for jobs ['654']
2022-06-07 16:51:22,633.633 DEBUG:teuthology.suite:wait for jobs ['654']
2022-06-07 16:51:22,686.686 INFO:teuthology.suite:wait is done
Traceback (most recent call last):
  File "/home/runner/src/teuthology_master/virtualenv/bin/teuthology-wait", line 33, in <module>
    sys.exit(load_entry_point('teuthology', 'console_scripts', 'teuthology-wait')())
  File "/home/runner/src/teuthology_master/scripts/wait.py", line 30, in main
    return teuthology.suite.wait(name, config.max_job_time, None)
  File "/home/runner/src/teuthology_master/teuthology/suite/__init__.py", line 234, in wait
    log.info(job['status'] + " " + url + " " + job['description'])
TypeError: must be str, not NoneType

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
3 years agoMerge pull request #1624 from batrick/get-valgrind-args
Zack Cerza [Tue, 7 Jun 2022 21:17:14 +0000 (15:17 -0600)]
Merge pull request #1624 from batrick/get-valgrind-args

3 years agoMerge pull request #1762 from ceph/nested-subset-fix
Zack Cerza [Mon, 6 Jun 2022 21:17:40 +0000 (15:17 -0600)]
Merge pull request #1762 from ceph/nested-subset-fix

qa: correct line processing logic

3 years agoqa: correct line processing logic 1762/head
Patrick Donnelly [Mon, 6 Jun 2022 18:12:09 +0000 (14:12 -0400)]
qa: correct line processing logic

Most runs don't use --no-nested-subset and for those that used --subset,
the if conditions would correctly pickup "seed" (when it mattered).
However, when --subset was not specified in the original run, the "seed"
was not correctly picked up. Therefore, the result of inserting the "if
no_nested_subset is None:" before the "elif seed is None:" caused it to
never read the seed for most folks teuthology runs.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #1761 from ceph/git-clone-errors
David Galloway [Wed, 1 Jun 2022 20:25:07 +0000 (16:25 -0400)]
Merge pull request #1761 from ceph/git-clone-errors

repo_utils: Always log git clone failure output

3 years agorepo_utils: Always log git clone failure output 1761/head
Zack Cerza [Wed, 1 Jun 2022 19:23:29 +0000 (13:23 -0600)]
repo_utils: Always log git clone failure output

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1753 from ceph/dc-venv
Zack Cerza [Tue, 31 May 2022 19:19:09 +0000 (13:19 -0600)]
Merge pull request #1753 from ceph/dc-venv

3 years agoMerge pull request #1760 from ceph/wip-private-branch
David Galloway [Fri, 27 May 2022 20:18:55 +0000 (16:18 -0400)]
Merge pull request #1760 from ceph/wip-private-branch

suite: Allow 'git@' repo URLs

3 years agosuite: Allow 'git@' repo URLs 1760/head
Zack Cerza [Fri, 27 May 2022 17:47:40 +0000 (11:47 -0600)]
suite: Allow 'git@' repo URLs

We were accidentally mangling them.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1757 from ceph/master-to-main
David Galloway [Tue, 24 May 2022 21:05:19 +0000 (17:05 -0400)]
Merge pull request #1757 from ceph/master-to-main

Inclusive Language Update

3 years agotest_util.git_repository: Create main branch 1757/head
Zack Cerza [Tue, 24 May 2022 20:20:21 +0000 (14:20 -0600)]
test_util.git_repository: Create main branch

(if necessary)

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agotest_repo_utils: Don't break with main branch
Zack Cerza [Thu, 21 Apr 2022 17:44:30 +0000 (11:44 -0600)]
test_repo_utils: Don't break with main branch

More generally, if git was configured to use a default branch other
than 'master', this test would fail.

Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit 9ab6d0a50e4821dccaeef024485986792e60a57b)

3 years agoReplace non-branch occurrences of 'master'
Zack Cerza [Tue, 24 May 2022 19:02:56 +0000 (13:02 -0600)]
Replace non-branch occurrences of 'master'

Signed-off-by: Zack Cerza <zack@cerza.org>
3 years agoReplace 'master' branch references with 'main'
Zack Cerza [Tue, 24 May 2022 17:26:42 +0000 (11:26 -0600)]
Replace 'master' branch references with 'main'

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge PR #1704 into master
Patrick Donnelly [Tue, 24 May 2022 16:14:04 +0000 (12:14 -0400)]
Merge PR #1704 into master

* refs/pull/1704/head:
teuthology/suite/test: test nested subsets
teuthology: add option to disable nested subsets
teuthology/suite: create nested matrix subsets
teuthology/suite: patch builtin open method
teuthology/test: use correct exception type
teuthology/suite/test: make sure patchers are cleaned up on exception
teuthology/suite/test: clarify variable name

Reviewed-by: Zack Cerza <zmc@redhat.com>
3 years agoteuthology/suite/test: test nested subsets 1704/head
Patrick Donnelly [Wed, 9 Feb 2022 22:59:23 +0000 (17:59 -0500)]
teuthology/suite/test: test nested subsets

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology: add option to disable nested subsets
Patrick Donnelly [Thu, 10 Feb 2022 01:27:48 +0000 (20:27 -0500)]
teuthology: add option to disable nested subsets

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite: create nested matrix subsets
Patrick Donnelly [Fri, 14 Jan 2022 20:25:14 +0000 (15:25 -0500)]
teuthology/suite: create nested matrix subsets

The general idea is to allow the `%` convolution operator to also subset
the resulting matrix. This is done by specifying a number of divisions
for the subset in the `%` file. Such as:

dir/%:

    8

This commit maps a matrix index range of `[0, Subset.size())` to the
matrix it is taking a subset of, `[0, Matrix.size())`. To get full
coverage, a random number is used to specify "which" subset to use.
Contrast with the `--subset` argument to `teuthology-suite` which lets
you specify which subset.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite: patch builtin open method
Patrick Donnelly [Fri, 21 Jan 2022 18:59:28 +0000 (13:59 -0500)]
teuthology/suite: patch builtin open method

teuthology.suite.open does not patch properly.

Fixes: 0b822b8455a8b2903759776ff3c4ea05c416b44e
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/test: use correct exception type
Patrick Donnelly [Fri, 21 Jan 2022 19:01:22 +0000 (14:01 -0500)]
teuthology/test: use correct exception type

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: make sure patchers are cleaned up on exception
Patrick Donnelly [Fri, 21 Jan 2022 18:58:39 +0000 (13:58 -0500)]
teuthology/suite/test: make sure patchers are cleaned up on exception

Otherwise, test infrastructure blows up on use of the fake file system
methods.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoteuthology/suite/test: clarify variable name
Patrick Donnelly [Fri, 21 Jan 2022 19:22:17 +0000 (14:22 -0500)]
teuthology/suite/test: clarify variable name

"den" for denominator is not that intuitive.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #1756 from ljflores/wip-teuthology-suite-priority-table
Laura Flores [Fri, 6 May 2022 20:37:01 +0000 (15:37 -0500)]
Merge pull request #1756 from ljflores/wip-teuthology-suite-priority-table

scripts: add priority table to teuthology-suite --help

3 years agoscripts: add priority table to teuthology-suite --help 1756/head
Laura Flores [Wed, 4 May 2022 19:34:50 +0000 (14:34 -0500)]
scripts: add priority table to teuthology-suite --help

Table copied from https://docs.ceph.com/en/latest/dev/developer_guide/testing_integration_tests/tests-integration-testing-teuthology-intro/.

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #1754 from ceph/deps-upgrade-test
Zack Cerza [Fri, 29 Apr 2022 16:15:03 +0000 (10:15 -0600)]
Merge pull request #1754 from ceph/deps-upgrade-test

Add new GitHub Action to test deps on upgrade

3 years agobootstrap: Do ansible version check inside venv 1754/head
Zack Cerza [Thu, 28 Apr 2022 19:28:33 +0000 (13:28 -0600)]
bootstrap: Do ansible version check inside venv

We need access to the packaging module to do so.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoAdd new GitHub Action to test deps on upgrade
Zack Cerza [Thu, 28 Apr 2022 17:23:44 +0000 (11:23 -0600)]
Add new GitHub Action to test deps on upgrade

We've seen a couple regressions that are only visible when upgrading
and existing virtualenv.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1752 from tchaikov/repo-utils-cleanup
Zack Cerza [Wed, 27 Apr 2022 23:02:42 +0000 (17:02 -0600)]
Merge pull request #1752 from tchaikov/repo-utils-cleanup

teuthology/repo_util: pass universal_newlines=True

3 years agotest_repo_utils: Don't break with main branch 1753/head
Zack Cerza [Thu, 21 Apr 2022 17:44:30 +0000 (11:44 -0600)]
test_repo_utils: Don't break with main branch

More generally, if git was configured to use a default branch other
than 'master', this test would fail.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agosuite: Look for teuthology branch mismatches
Zack Cerza [Thu, 21 Apr 2022 16:48:19 +0000 (10:48 -0600)]
suite: Look for teuthology branch mismatches

If config.teuthology_path is set, we don't fetch teuthology at runtime.
This can lead to confusing situations if --teuthology-branch is passed
to teuthology-suite, as the job config will claim a branch is used when
it is not. We can avoid this problem by refusing to schedule if there
is a mismatch.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoexceptions: Add BranchMismatchError
Zack Cerza [Fri, 22 Apr 2022 21:34:51 +0000 (15:34 -0600)]
exceptions: Add BranchMismatchError

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agorepo_utils: Add current_branch()
Zack Cerza [Thu, 21 Apr 2022 16:47:38 +0000 (10:47 -0600)]
repo_utils: Add current_branch()

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agodocker-compose: Move TEUTH_BRANCH definition
Zack Cerza [Wed, 20 Apr 2022 22:54:26 +0000 (16:54 -0600)]
docker-compose: Move TEUTH_BRANCH definition

So that we can access it from within the teuthology container.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobootstrap: Drop pyc removal
Zack Cerza [Tue, 12 Apr 2022 18:32:12 +0000 (12:32 -0600)]
bootstrap: Drop pyc removal

We stopped writing these files years ago.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoDockerfile: Optimize pip installs
Zack Cerza [Tue, 12 Apr 2022 23:22:54 +0000 (17:22 -0600)]
Dockerfile: Optimize pip installs

With this change, we can avoid rerunning bootstrap on build if
requirements.txt hasn't changed. Build times after non-requirements
changes go from 3-5min to ~2s.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobootstrap: Optionally skip teuthology install
Zack Cerza [Tue, 12 Apr 2022 18:31:52 +0000 (12:31 -0600)]
bootstrap: Optionally skip teuthology install

The docker-compose dev setup was the inspiration for this feature; it
allows us to split the installation of dependencies and the project
itself into two phases. This in turn allows us to avoid rerunning
bootstrap if requirements.txt didn't change.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoteuthology/repo_util: pass universal_newlines=True 1752/head
Kefu Chai [Wed, 27 Apr 2022 01:46:48 +0000 (09:46 +0800)]
teuthology/repo_util: pass universal_newlines=True

for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #1751 from ceph/wip-bs-err
Kefu Chai [Wed, 27 Apr 2022 01:44:00 +0000 (09:44 +0800)]
Merge pull request #1751 from ceph/wip-bs-err

bootstrap_teuthology: Call decode() on stderr

3 years agobootstrap_teuthology: Call decode() on stderr 1751/head
Zack Cerza [Wed, 27 Apr 2022 01:09:47 +0000 (19:09 -0600)]
bootstrap_teuthology: Call decode() on stderr

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1748 from ceph/ansible-2.10
Kefu Chai [Wed, 27 Apr 2022 00:46:55 +0000 (08:46 +0800)]
Merge pull request #1748 from ceph/ansible-2.10

Update ansible to 2.10

3 years agobootstrap: Drop virtualenv in favor of venv
Zack Cerza [Fri, 1 Apr 2022 17:14:28 +0000 (13:14 -0400)]
bootstrap: Drop virtualenv in favor of venv

We don't need it, and if it is present, setuptools will use
easy_install instead of building wheels.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agorequirements: Update ansible to 2.10 1748/head
Zack Cerza [Wed, 13 Apr 2022 22:36:52 +0000 (16:36 -0600)]
requirements: Update ansible to 2.10

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobootstrap: If ansible<2.10 is present, remove it
Zack Cerza [Wed, 13 Apr 2022 22:36:45 +0000 (16:36 -0600)]
bootstrap: If ansible<2.10 is present, remove it

... before proceeding. This is because in 2.10, ansible split into two
packages, a scenario that pip apparently isn't able to handle properly.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoMerge pull request #1750 from tchaikov/pass-extra
Zack Cerza [Tue, 26 Apr 2022 16:06:51 +0000 (10:06 -0600)]
Merge pull request #1750 from tchaikov/pass-extra

update-requirements.sh: pass --extra=test to pip-compile

3 years agoMerge pull request #1698 from kshtsk/wip-raise-if-not-reconnect
kyr [Tue, 26 Apr 2022 13:02:52 +0000 (15:02 +0200)]
Merge pull request #1698 from kshtsk/wip-raise-if-not-reconnect

orchestra/remote: throw exception on reconnect failed

3 years agoupdate-requirements.sh: pass --extra=test to pip-compile 1750/head
Kefu Chai [Tue, 26 Apr 2022 01:12:07 +0000 (09:12 +0800)]
update-requirements.sh: pass --extra=test to pip-compile

otherwise the requirements used by test would be missed

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #1749 from tchaikov/setup-add-nose
Zack Cerza [Mon, 25 Apr 2022 21:18:21 +0000 (15:18 -0600)]
Merge pull request #1749 from tchaikov/setup-add-nose

setup.cfg: add nose to "options.extras_require/test"

3 years agosetup.py: dedup the requires 1749/head
Kefu Chai [Sun, 24 Apr 2022 01:29:24 +0000 (09:29 +0800)]
setup.py: dedup the requires

* move the dependencies from options.install_requires to
  options.extras_require if those dependencies are only used by tests.
  as per
  https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#id5
  > install_requires is a setuptools setup.py keyword that should be
  > used to specify what a project minimally needs to run correctly.
* remove the duplicated dependencies from options.extras_require
  if they are also listed in options.install_requires.
* update requirements.txt using
  "pip-compile --extra=test pyproject.toml", so requirements.txt
  can include the dependencies required by tests.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoscrape: drop dependency of "six"
Kefu Chai [Sun, 24 Apr 2022 01:28:55 +0000 (09:28 +0800)]
scrape: drop dependency of "six"

since we don't need to be compatible with python2, let's stop using
the six package.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agosetup.cfg: add nose to "options.extras_require/test"
Kefu Chai [Sat, 23 Apr 2022 03:26:48 +0000 (11:26 +0800)]
setup.cfg: add nose to "options.extras_require/test"

some tests are using nose python package. since teuthology is
responsible for preparing the deps to run the tests. let's add
nose back to setup.cfg.

the "nose" package was included in requirements.txt before
21372fd9b2b87bb6417929f10097fba7db9cdca9. in this change, it,
it is brought back.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #1743 from ceph/packaging
Zack Cerza [Thu, 21 Apr 2022 18:08:32 +0000 (12:08 -0600)]
Merge pull request #1743 from ceph/packaging

Revised packaging updates

3 years agoMerge pull request #1747 from ceph/ca-test-fix
Zack Cerza [Wed, 20 Apr 2022 15:06:13 +0000 (09:06 -0600)]
Merge pull request #1747 from ceph/ca-test-fix

task/ceph_ansible: Fix attribute handling

3 years agoMerge pull request #1746 from rishabh-d-dave/py3104-MutableMapping
Kefu Chai [Wed, 20 Apr 2022 12:22:23 +0000 (20:22 +0800)]
Merge pull request #1746 from rishabh-d-dave/py3104-MutableMapping

config: import MuableMapping based on python version

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agotask/ceph_ansible: Fix attribute handling 1747/head
Zack Cerza [Tue, 19 Apr 2022 23:44:16 +0000 (17:44 -0600)]
task/ceph_ansible: Fix attribute handling

... in get_host_vars(). This had broken unit tests when a top-level
"ceph_ansible" key is present in the teuthology config.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agotox.ini: Drop basepython lines 1743/head
Zack Cerza [Wed, 6 Apr 2022 17:17:03 +0000 (11:17 -0600)]
tox.ini: Drop basepython lines

They're redundant.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agotox.ini: Install 'test' extras for py.test envs
Zack Cerza [Tue, 5 Apr 2022 22:29:43 +0000 (18:29 -0400)]
tox.ini: Install 'test' extras for py.test envs

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agoModernized versioning
Zack Cerza [Thu, 31 Mar 2022 19:32:14 +0000 (15:32 -0400)]
Modernized versioning

Using setuptools_scm; we can automatically generate version numbers
instead of using this odd combination of hardcoding and running git
commands. This method is faster as well.

Signed-off-by: Zack Cerza <zack@redhat.com>
3 years agobootstrap: Install 'test' extras
Zack Cerza [Thu, 31 Mar 2022 21:32:43 +0000 (17:32 -0400)]
bootstrap: Install 'test' extras

So that we can use the 'tests' task.

Signed-off-by: Zack Cerza <zack@redhat.com>