Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: locustio/locust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.11.1
Choose a base ref
...
head repository: locustio/locust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 397 changed files with 51,789 additions and 6,785 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[run]
branch = True
source = locust
concurrency = gevent

[report]
exclude_lines =
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
locust.egg-info/**
locustio.egg-info/**
build/
.coverage
docs/_build
# Dockerfile # We'd like to ignore this, but it messes up scm_version's detection because it thinks the checkout is dirty
15 changes: 15 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Migrate code style to Black
7c0fcc213d3988f6e7c6ffef63b24afe00e5fbd9
2e7a8b5697a98d1d314d6fc3ef0589f81f09d7fe
# upgrade code style to 3.6 using pyupgrade
6ec972f4dbb880bf0c7a11809e6c1ba194c9784c
# upgrade code style to use f-strings using flynt
313b80f27f525441c449593a3aeaf38389f63c13
# upgrade typing annotations using fix-future-annotations
b5324820b299b1fe7da0608f0cc8ec47f58b1e40
# upgrade code style to 3.8 using pyupgrade
60f3bceacc4ab9567433d40ae3ed280750f55ff1
# sort imports using ruff
f99e9df700a8020e4c1967eb42dcb37ddd26e296
# apply ruff 0.3.0
64428a0b4dfc75a00b175b4231db33704d8f5d36
10 changes: 6 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
## Release Process

* Install github_changelog_generator (https://github.com/github-changelog-generator/github-changelog-generator/) if not installed
* Run github_changelog_generator to update `CHANGELOG.md`
- `github_changelog_generator -u Locustio -p Locust -t $CHANGELOG_GITHUB_TOKEN`
* Add highlights to changelog in docs: `locust/docs/changelog.rst`
- `make changelog`
* Update `locust/__init__.py` with new version number: `__version__ = "VERSION"`
* Tag master as "VERSION" in git
* Build VERSION package and upload to PyPI
* Make git tag
* Push git tag
* Update Automated Builds configuration in Docker Hub so that the newly created
git tag is built as the "latest" docker tag
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Bug
description: Report an error
labels: ["bug"]
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I am using [the latest version of Locust](https://github.com/locustio/locust/releases/)
required: true
- label: I am reporting a bug, not asking a question
required: true

- type: markdown
attributes:
value: |
If you just need help with something, then:
* [Check the documentation](https://docs.locust.io/en/stable/)
* [Check the FAQ in the wiki](https://github.com/locustio/locust/wiki/FAQ)
* [Check the Github Discussions](https://github.com/orgs/locustio/discussions)
* Search [Stack Overflow](https://stackoverflow.com/questions/tagged/locust), or [ask there](https://stackoverflow.com/questions/ask) yourself. If you tag your question with `locust` we will see it.
* Ask on [Locust's slack](https://locustio.slack.com) [(sign up here)](https://communityinviter.com/apps/locustio/locust)
- type: textarea
attributes:
label: Description
description: What happened, and what did you want/expect to happen?
validations:
required: true

- type: input
attributes:
label: Command line
description: |
For example: locust -f mylocustfile.py -t 10s --headless
validations:
required: true

- type: textarea
attributes:
label: Locustfile contents
description: Please remove everything that isn't necessary to trigger the issue.
render: python3
validations:
required: true

- type: input
attributes:
label: Python version
validations:
required: true

- type: input
attributes:
label: Locust version
validations:
required: true

- type: input
attributes:
label: Operating system
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Feature request
description: Suggest an improvement
labels: ["feature request"]
body:
- type: checkboxes
attributes:
label: Prerequisites
options:
- label: I am using [the latest version of Locust](https://github.com/locustio/locust/releases/)
required: true
- label: I am suggesting a new feature, not asking a question
required: true

- type: markdown
attributes:
value: |
If you just need help with something, then:
* [Check the documentation](https://docs.locust.io/en/stable/)
* [Check the FAQ in the wiki](https://github.com/locustio/locust/wiki/FAQ)
* [Check the Github Discussions](https://github.com/orgs/locustio/discussions)
* Search [Stack Overflow](https://stackoverflow.com/questions/tagged/locust), or [ask there](https://stackoverflow.com/questions/ask) yourself. If you tag your question with `locust` we will see it.
* Ask on [Locust's slack](https://locustio.slack.com) [(sign up here)](https://communityinviter.com/apps/locustio/locust)
- type: textarea
attributes:
label: Description
description: Describe what feature you are missing, and what alternatives you have considered.
validations:
required: true
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mark stale issues

on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 20 days."
close-issue-message: "This issue was closed because it has been marked stale for 20 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself!"
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 20 days."
close-pr-message: "This PR was closed because it has been marked stale for 20 days with no activity."
days-before-close: 20
Loading