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
# If you wish to specify custom queries, you can do so here or in a config file.
81
-
# By default, queries listed here will override any specified in a config file.
82
-
# Prefix the list here with "+" to use these queries and those in the config file.
83
-
84
-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
- mdatagen (There is currently an issue installing mdatagen https://github.com/open-telemetry/opentelemetry-collector/issues/9281. See instructions below for workaround.)
- mdatagen (There is currently an [issue installing mdatagen](https://github.com/open-telemetry/opentelemetry-collector/issues/9281). See instructions below for workaround.)
Before starting development on the NGINX Agent, it is important to download and install the necessary tool and dependencies required by the NGINX Agent. You can do this by running the following `make` command:
33
-
```
37
+
38
+
```console
34
39
make install-tools
35
40
```
36
41
37
42
### Building NGINX Agent from Source Code
43
+
38
44
Build NGINX Agent deb package:
39
-
```
45
+
46
+
```console
40
47
OSARCH=<operating system archiecture> make local-deb-package
41
48
```
49
+
42
50
Build NGINX Agent rpm package:
43
-
```
51
+
52
+
```console
44
53
OSARCH=<operating system archiecture> make local-rpm-package
45
54
```
55
+
46
56
Build NGINX Agent apk package:
47
-
```
57
+
58
+
```console
48
59
OSARCH=<operating system archiecture> make local-apk-package
49
60
```
50
61
51
62
### Testing NGINX Agent
52
63
53
64
#### Unit tests
65
+
54
66
To run unit tests and check that there is enough test coverage run the following
55
-
```
67
+
68
+
```console
56
69
make unit-test coverge
57
70
```
71
+
58
72
To check for race conditions, the unit tests can also be run with a race condition detector
59
-
```
73
+
74
+
```console
60
75
make race-condition-test
61
76
```
62
77
63
78
#### Integration tests
79
+
64
80
To run integration tests, run the following
65
-
```
81
+
82
+
```console
66
83
make integration-test
67
84
```
68
85
69
86
#### Testing with a mock management plane
87
+
70
88
For testing command operations, there is a mock management gRPC server that can be used. See here: [mock management gRPC server](test/mock/grpc/README.md)\
71
89
For testing metrics, there is a mock management OTel collector that can be used. See here: [mock management OTel collector](test/mock/collector/README.md)
72
90
73
-
74
91
## NGINX Agent Technical Specifications
75
92
76
93
### Supported Distributions
@@ -97,7 +114,7 @@ TBD
97
114
98
115
## Community
99
116
100
-
- Our [Slack channel #nginx-agent](https://nginxcommunity.slack.com/), is the go-to place to start asking questions and sharing your thoughts.
117
+
- Our [NGINX Community Forum ](https://community.nginx.org/tag/agent) is the go-to place to ask questions and share your thoughts.
101
118
102
119
- Our [GitHub issues page](https://github.com/nginx/agent/issues) offers space for a more technical discussion at your own pace.
0 commit comments