-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
126 lines (107 loc) · 4.23 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[project]
name = 'system_tests'
version = '0.0.1'
[tool.setuptools]
packages = ["tests", "utils", "manifests"]
[tool.black]
line-length = 120
exclude = "(venv/|utils/grpc/weblog_pb2_grpc.py|utils/grpc/weblog_pb2.py|parametric/apps)"
[tool.pytest.ini_options]
addopts = "--json-report --json-report-indent=2 --color=yes --no-header --junitxml=reportJunit.xml -r Xf"
testpaths = [
"tests",
]
# log_cli = True
# log_cli_level = DEBUG
log_level = "DEBUG"
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_date_format = "%H:%M:%S"
log_file_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s"
log_file_date_format = "%H:%M:%S"
junit_family = "xunit2"
junit_logging = "no"
junit_duration_report = "call"
junit_suite_name = "system_tests_suite"
markers =[
"scenario: run a test only for a specified scenario",
"features: declare the feature id"
]
python_files = "test_*.py *utils.py"
# migration tooling: list of folders where feature declarations are mandatory
# once every test class got its feature declaration, we can remove this
allow_no_feature_nodes = [
"tests/apm_tracing_e2e/test_single_span.py",
"tests/apm_tracing_e2e/test_smoke.py",
"tests/otel_tracing_e2e/test_e2e.py",
"tests/parametric/test_span_links.py",
"tests/parametric/test_tracer.py",
"tests/perfs/test_performances.py", # exotic scenario, not really used
"tests/test_the_test/", # Not a real test
]
allow_no_jira_ticket_for_bugs = [
"tests/k8s_lib_injection/test_k8s_init_image_validator.py::TestK8sInitImageValidator.test_valid_weblog_instrumented",
"tests/k8s_lib_injection/test_k8s_init_image_validator.py::TestK8sInitImageValidatorUnsupported.test_invalid_weblog_not_instrumented",
# agent
"tests/test_schemas.py::Test_Agent.test_agent_schema_telemetry_main_payload",
# dotnet
"tests/integrations/test_dbm.py::Test_Dbm.test_trace_payload_service",
# golang
"tests/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceFeatures.test_tracer_update_sequence",
# nodejs
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_globs_different_casing",
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_metric_matching",
"tests/test_telemetry.py::Test_MessageBatch.test_message_batch_enabled",
"tests/test_telemetry.py::Test_Telemetry.test_app_dependencies_loaded",
# nodejs and golang
"tests/parametric/test_trace_sampling.py::Test_Trace_Sampling_Tags_Feb2024_Revision.test_metric_existence",
# all but cpp
"tests/parametric/test_span_sampling.py::Test_Span_Sampling.test_multi_rule_independent_rate_limiters_sss013",
# cpp, olang, php, ruby , an error was in the deserialize function, probably no issue
"tests/test_profiling.py::Test_Profile",
# all, test must be either removed or fixed
"tests/test_telemetry.py::Test_Telemetry.test_status_ok",
# only legit
"tests/test_the_test/",
]
[tool.mypy]
files = ["utils/parametric", "tests/parametric"]
ignore_missing_imports = true
check_untyped_defs = true
disable_error_code = ["no-redef"]
exclude = 'utils/parametric/_library_client\.py|^(?!utils/parametric|tests/parametric).*$'
follow_imports = "skip"
[tool.pylint]
init-hook='import sys; sys.path.append(".")'
max-line-length = 120
disable = [
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"fixme",
"raise-missing-from",
"invalid-name",
"import-outside-toplevel",
"logging-fstring-interpolation",
"broad-except",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches,",
"bare-except",
"too-many-instance-attributes",
"too-many-locals",
"too-many-public-methods",
"too-many-nested-blocks",
"too-many-return-statements",
"duplicate-code",
"abstract-method",
"inconsistent-return-statements", # because lot of validator function returns nothing
"unused-argument", # pain, as there are some function that MUST have a prototype. TODO...
"attribute-defined-outside-init",
"no-name-in-module", # full of bug
"import-error", # full of bug
]
ignore-paths = [
]
generated-members = [
"(ok_summary|err_summary)\\.mapping",
]