You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Submitting a Pull Request (PR)](#submitting-a-pull-request-pr)
21
+
-[Setting up the development environment](#setting-up-the-development-environment)
22
+
-[Running unit tests](#running-unit-tests)
23
+
-[Running E2E tests](#running-e2e-tests)
24
+
-[Code Style](#code-style)
25
+
26
+
## Code of Conduct
21
27
22
-
## <aname="coc"></a> Code of Conduct
23
28
Help us keep this project open and inclusive. Please read and follow our [Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
24
29
25
-
## <aname="issue"></a> Found an Issue?
30
+
## Found an Issue?
31
+
26
32
If you find a bug in the source code or a mistake in the documentation, you can help us by
27
-
[submitting an issue](#submit-issue) to the GitHub Repository. Even better, you can
28
-
[submit a Pull Request](#submit-pr) with a fix.
33
+
[submitting an issue](#submitting-an-issue) to the GitHub Repository. Even better, you can
34
+
[submit a Pull Request](#submitting-a-pull-request-pr) with a fix.
35
+
36
+
## Want a Feature?
29
37
30
-
## <aname="feature"></a> Want a Feature?
31
-
You can *request* a new feature by [submitting an issue](#submit-issue) to the GitHub
38
+
You can *request* a new feature by [submitting an issue](#submitting-an-issue) to the GitHub
32
39
Repository. If you would like to *implement* a new feature, please submit an issue with
33
40
a proposal for your work first, to be sure that we can use it.
34
41
35
-
***Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
42
+
-**Small Features** can be crafted and directly [submitted as a Pull Request](#submitting-a-pull-request-pr).
36
43
37
-
## <aname="submit"></a> Submission Guidelines
44
+
## Submission Guidelines
45
+
46
+
### Submitting an Issue
38
47
39
-
### <aname="submit-issue"></a> Submitting an Issue
40
48
Before you submit an issue, search the archive, maybe your question was already answered.
41
49
42
50
If your issue appears to be a bug, and hasn't been reported, open a new issue.
43
51
Help us to maximize the effort we can spend fixing issues and adding new
44
52
features, by not reporting duplicate issues. Providing the following information will increase the
45
53
chances of your issue being dealt with quickly:
46
54
47
-
***Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
48
-
***Version** - what version is affected (e.g. 0.1.2)
49
-
***Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
50
-
***Browsers and Operating System** - is this a problem with all browsers?
51
-
***Reproduce the Error** - provide a live example or a unambiguous set of steps
52
-
***Related Issues** - has a similar issue been reported before?
53
-
***Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
55
+
-**Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
56
+
-**Version** - what version is affected (e.g. 0.1.2)
57
+
-**Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
58
+
-**Browsers and Operating System** - is this a problem with all browsers?
59
+
-**Reproduce the Error** - provide a live example or a unambiguous set of steps
60
+
-**Related Issues** - has a similar issue been reported before?
61
+
-**Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
54
62
causing the problem (line of code or commit)
55
63
56
-
You can file new issues by providing the above information at the corresponding repository's issues link: https://github.com/[organization-name]/[repository-name]/issues/new].
64
+
You can file new issues by providing the above information at the corresponding repository's issues link: <https://github.com/[organization-name>]/[repository-name]/issues/new].
65
+
66
+
### Submitting a Pull Request (PR)
57
67
58
-
### <aname="submit-pr"></a> Submitting a Pull Request (PR)
59
68
Before you submit your Pull Request (PR) consider the following guidelines:
60
69
61
-
* Search the repository (https://github.com/[organization-name]/[repository-name]/pulls) for an open or closed PR
70
+
- Search the repository (<https://github.com/[organization-name>]/[repository-name]/pulls) for an open or closed PR
62
71
that relates to your submission. You don't want to duplicate effort.
63
-
* Make your changes in a new git fork
64
-
* Follow [Code style conventions](#style)
65
-
*[Run the tests](#tests) (and write new ones, if needed)
66
-
* Commit your changes using a descriptive commit message
67
-
* Push your fork to GitHub
68
-
* In GitHub, create a pull request to the `main` branch of the repository
69
-
* Ask a maintainer to review your PR and address any comments they might have
72
+
- Make your changes in a new git fork
73
+
- Follow [Code style conventions](#code-style)
74
+
-[Run the tests](#running-unit-tests) (and write new ones, if needed)
75
+
- Commit your changes using a descriptive commit message
76
+
- Push your fork to GitHub
77
+
- In GitHub, create a pull request to the `main` branch of the repository
78
+
- Ask a maintainer to review your PR and address any comments they might have
70
79
71
-
## <aname="tests"></a> Setting up the development environment
80
+
## Setting up the development environment
72
81
73
82
Install the development dependencies:
74
83
75
-
```
76
-
python3 -m pip install -r requirements-dev.txt
84
+
```shell
85
+
python -m pip install -r requirements-dev.txt
77
86
```
78
87
79
88
Install the pre-commit hooks:
80
89
81
-
```
90
+
```shell
82
91
pre-commit install
83
92
```
84
93
85
94
Compile the JavaScript:
86
95
87
-
```
96
+
```shell
88
97
( cd ./app/frontend ; npm install ; npm run build )
89
98
```
90
99
91
-
## <aname="unit-tests"></a> Running unit tests
100
+
## Running unit tests
92
101
93
102
Run the tests:
94
103
95
-
```
96
-
python3 -m pytest
104
+
```shell
105
+
python -m pytest
97
106
```
98
107
99
108
Check the coverage report to make sure your changes are covered.
Copy file name to clipboardExpand all lines: docs/productionizing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,22 +73,22 @@ or set up a loadtest with Azure Load Testing.
73
73
To use locust, first install the dev requirements that includes locust:
74
74
75
75
```shell
76
-
python3 -m pip install -r requirements-dev.txt
76
+
python -m pip install -r requirements-dev.txt
77
77
```
78
78
79
79
Or manually install locust:
80
80
81
81
```shell
82
-
python3 -m pip install locust
82
+
python -m pip install locust
83
83
```
84
84
85
-
Then run the locust command:
85
+
Then run the locust command, specifying the name of the User class to use from `locustfile.py`. We've provided a `ChatUser` class that simulates a user asking questions and receiving answers, as well as a `ChatVisionUser` to simulate a user asking questions with the [GPT-4 vision mode enabled](/docs/gpt4v.md).
86
86
87
87
```shell
88
-
locust
88
+
locust ChatUser
89
89
```
90
90
91
-
Open the locust UI at http://localhost:8089/, the URI displayed in the terminal.
91
+
Open the locust UI at [http://localhost:8089/](http://localhost:8089/), the URI displayed in the terminal.
92
92
93
93
Start a new test with the URI of your website, e.g. `https://my-chat-app.azurewebsites.net`.
94
94
Do *not* end the URI with a slash. You can start by pointing at your localhost if you're concerned
0 commit comments