File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
To install the latest version:
8
8
9
9
``` bash
10
- go install github.com/mongodb-labs/drivers-evergreen-tools/perfcomp
10
+ go install github.com/mongodb-labs/drivers-evergreen-tools/perfcomp/cmd/perfcomp@latest
11
11
```
12
12
13
13
Or build it locally in ` bin/perfcomp ` :
43
43
perfcomp compare [version_id] [flags]
44
44
45
45
Flags:
46
- --project string specify the name of an existing Evergreen project (default " mongo-go-driver " )
46
+ --project string specify the name of an existing Evergreen project (required )
47
47
```
48
48
49
49
#### mdreport
59
59
Alternatively, you can run the perfcomp shell script. This script will run build and then run ` compare ` . From the root directory,
60
60
61
61
``` bash
62
- PERF_URI_PRIVATE_ENDPOINT=" <perf_uri>" VERSION_ID=" <version>" .evergreen/run-perf-comp.sh
62
+ PERF_URI_PRIVATE_ENDPOINT=" <perf_uri>" VERSION_ID=" <version>" PROJECT= " <project> " .evergreen/run-perf-comp.sh
63
63
```
64
64
65
65
If you would like to see a markdown preview of the report, you can also pass in ` HEAD_SHA="" ` . This will generate ` .evergreen/perfcomp/perf-report.md ` .
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ func newCompareCommand() *cobra.Command {
33
33
},
34
34
}
35
35
36
- cmd .Flags ().String ("project" , "mongo-go-driver" , "specify the name of an existing Evergreen project" )
36
+ cmd .Flags ().String ("project" , "" , "specify the name of an existing Evergreen project" )
37
+ cmd .MarkFlagRequired ("project" )
37
38
38
39
cmd .Run = func (cmd * cobra.Command , args []string ) {
39
40
// Check for variables
Original file line number Diff line number Diff line change 60
60
61
61
: " ${PERF_URI_PRIVATE_ENDPOINT:? Error: PERF_URI_PRIVATE_ENDPOINT must be set} "
62
62
: " ${VERSION_ID:? Error: VERSION_ID must be set} "
63
+ : " ${PROJECT:? Error: PROJECT must be set} "
63
64
64
- ./bin/perfcomp compare ${VERSION_ID}
65
+ ./bin/perfcomp compare --project ${PROJECT} ${VERSION_ID}
65
66
66
67
if [[ -n " ${HEAD_SHA+set} " ]]; then
67
68
./bin/perfcomp mdreport
You can’t perform that action at this time.
0 commit comments