Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark org speed test as 'performance', exclude performance tests from running without flag #4816

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

LMNTL
Copy link
Contributor

@LMNTL LMNTL commented Jan 19, 2024

Checklist

  1. If you've added code that should be tested, add tests
  2. If you've changed APIs, update (or create!) the documentation
  3. Ensure the tests pass
  4. Make sure that your code lints and that you've followed our coding style
  5. Write a title and, if necessary, a description of your work suitable for publishing in our release notes
  6. Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)
  7. Open an issue in the docs if there are UI/UX changes

Description

Prevents running a test that should only be run manually from running automatically.

@LMNTL LMNTL requested a review from bufke January 19, 2024 22:29
@@ -138,7 +138,7 @@ def test_doesnt_include_org_users_with_invalid_plan(self):
self.expected_file_size() * self.expected_submissions_single
)

@pytest.mark.xfail
@pytest.mark.performance
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the test is excluded by default, would it be worth cranking up the number of model instances to a number that you would want to use when you run performance tests? (Or, if not, adding a comment describing how someone might use the test to test performance meaningfully?)

pyproject.toml Outdated
@@ -21,6 +21,14 @@ extend-select = ["I"]
[tool.ruff.lint.isort]
known-first-party = ["kobo"]

[tool.pytest.ini_options]
addopts = [
'-m "not performance"',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎩

pytest.ini Outdated Show resolved Hide resolved
@LMNTL LMNTL removed the request for review from bufke January 22, 2024 14:58
@jnm jnm deleted the branch release/2.024.04 January 23, 2024 23:01
@jnm jnm closed this Jan 23, 2024
@jnm jnm reopened this Jan 24, 2024
@jnm jnm changed the base branch from release/next-jnm to release/2.024.04 January 24, 2024 18:23
@jnm jnm merged commit 5847ee9 into release/2.024.04 Jan 24, 2024
7 checks passed
@jnm jnm deleted the mark-perf-test-orgs branch January 24, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants