Skip to content

Commit 2faadf2

Browse files
committed
identify failing tests
1 parent eb94683 commit 2faadf2

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

tests/test_java.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def read_ap_version(self: AsyncProfiledProcess) -> str:
118118
return version
119119

120120

121-
def test_async_profiler_already_running(
121+
def xtest_async_profiler_already_running(
122122
application_pid: int,
123123
profiler_state: ProfilerState,
124124
assert_collapsed: AssertInCollapsed,
@@ -163,7 +163,7 @@ def test_async_profiler_already_running(
163163

164164

165165
@pytest.mark.parametrize("in_container", [True])
166-
def test_java_async_profiler_cpu_mode(
166+
def xtest_java_async_profiler_cpu_mode(
167167
application_pid: int,
168168
assert_collapsed: AssertInCollapsed,
169169
profiler_state: ProfilerState,
@@ -186,7 +186,7 @@ def test_java_async_profiler_cpu_mode(
186186

187187
@pytest.mark.parametrize("in_container", [True])
188188
@pytest.mark.parametrize("application_image_tag", ["musl"])
189-
def test_java_async_profiler_musl_and_cpu(
189+
def xtest_java_async_profiler_musl_and_cpu(
190190
application_pid: int,
191191
assert_collapsed: AssertInCollapsed,
192192
profiler_state: ProfilerState,
@@ -215,7 +215,7 @@ def test_java_safemode_parameters(profiler_state: ProfilerState) -> None:
215215
assert "Java version checks are mandatory in --java-safemode" in str(excinfo.value)
216216

217217

218-
def test_java_safemode_version_check(
218+
def xtest_java_safemode_version_check(
219219
monkeypatch: MonkeyPatch,
220220
caplog: LogCaptureFixture,
221221
application_pid: int,
@@ -236,7 +236,7 @@ def test_java_safemode_version_check(
236236
assert log_record_extra(log_record)["jvm_version"] == repr(jvm_version)
237237

238238

239-
def test_java_safemode_build_number_check(
239+
def xtest_java_safemode_build_number_check(
240240
monkeypatch: MonkeyPatch,
241241
caplog: LogCaptureFixture,
242242
application_pid: int,
@@ -261,10 +261,10 @@ def test_java_safemode_build_number_check(
261261
[
262262
(False, (), False), # default
263263
(False, ("-XX:ErrorFile=/tmp/my_custom_error_file.log",), False), # custom error file
264-
(True, (), False), # containerized (other params are ignored)
264+
# (True, (), False), # containerized (other params are ignored)
265265
],
266266
)
267-
def test_hotspot_error_file(
267+
def xtest_hotspot_error_file(
268268
application_pid: int,
269269
monkeypatch: MonkeyPatch,
270270
caplog: LogCaptureFixture,
@@ -297,7 +297,7 @@ def start_async_profiler_and_crash(self: AsyncProfiledProcess, *args: Any, **kwa
297297
assert profiler._safemode_disable_reason is not None
298298

299299

300-
def test_disable_java_profiling(
300+
def xtest_disable_java_profiling(
301301
application_pid: int,
302302
monkeypatch: MonkeyPatch,
303303
caplog: LogCaptureFixture,
@@ -315,7 +315,7 @@ def test_disable_java_profiling(
315315
assert "Java profiling has been disabled, skipping profiling of all java process" in caplog.text
316316

317317

318-
def test_already_loaded_async_profiler_profiling_failure(
318+
def xtest_already_loaded_async_profiler_profiling_failure(
319319
monkeypatch: MonkeyPatch,
320320
caplog: LogCaptureFixture,
321321
application_pid: int,
@@ -339,7 +339,7 @@ def test_already_loaded_async_profiler_profiling_failure(
339339
# test only once; and don't test in container - as it will go down once we kill the Java app.
340340
@pytest.mark.parametrize("in_container", [False])
341341
@pytest.mark.parametrize("check_app_exited", [False]) # we're killing it, the exit check will raise.
342-
def test_async_profiler_output_written_upon_jvm_exit(
342+
def xtest_async_profiler_output_written_upon_jvm_exit(
343343
tmp_path_world_accessible: Path,
344344
application_pid: int,
345345
assert_collapsed: AssertInCollapsed,
@@ -367,7 +367,7 @@ def delayed_kill() -> None:
367367

368368
# test only once
369369
@pytest.mark.parametrize("in_container", [False])
370-
def test_async_profiler_stops_after_given_timeout(
370+
def xtest_async_profiler_stops_after_given_timeout(
371371
tmp_path_world_accessible: Path,
372372
application_pid: int,
373373
assert_collapsed: AssertInCollapsed,
@@ -400,7 +400,7 @@ def test_async_profiler_stops_after_given_timeout(
400400

401401
@pytest.mark.parametrize("in_container", [True])
402402
@pytest.mark.parametrize("application_image_tag,search_for", [("j9", "OpenJ9"), ("zing", "Zing")])
403-
def test_sanity_other_jvms(
403+
def xtest_sanity_other_jvms(
404404
application_pid: int,
405405
assert_collapsed: AssertInCollapsed,
406406
search_for: str,
@@ -425,7 +425,7 @@ def test_sanity_other_jvms(
425425

426426
@pytest.mark.parametrize("in_container", [True])
427427
@pytest.mark.parametrize("application_image_tag,search_for", [("eclipse-temurin-latest", "Temurin")])
428-
def test_sanity_latest_jvms(
428+
def xtest_sanity_latest_jvms(
429429
application_pid: int,
430430
assert_collapsed: AssertInCollapsed,
431431
search_for: str,
@@ -462,7 +462,7 @@ def simulate_libjvm_delete(application_pid: int) -> None:
462462

463463
# test only once. in a container, so that we don't mess up the environment :)
464464
@pytest.mark.parametrize("in_container", [True])
465-
def test_java_deleted_libjvm(
465+
def xtest_java_deleted_libjvm(
466466
application_pid: int,
467467
application_docker_container: Container,
468468
assert_collapsed: AssertInCollapsed,
@@ -501,7 +501,7 @@ def _filter_record(r: LogRecord) -> bool:
501501
pytest.param("ro", [docker.types.Mount(target="/tmpfs", source="", type="tmpfs", read_only=True)], id="ro"),
502502
],
503503
)
504-
def test_java_noexec_or_ro_dirs(
504+
def xtest_java_noexec_or_ro_dirs(
505505
tmp_path_world_accessible: Path, # will be used by AP for logs & outputs
506506
application_pid: int,
507507
extra_application_docker_mounts: List[docker.types.Mount],
@@ -569,7 +569,7 @@ def test_java_noexec_or_ro_dirs(
569569

570570

571571
@pytest.mark.parametrize("in_container", [True])
572-
def test_java_symlinks_in_paths(
572+
def xtest_java_symlinks_in_paths(
573573
application_pid: int,
574574
application_docker_container: Container,
575575
assert_collapsed: AssertInCollapsed,
@@ -616,7 +616,7 @@ def test_java_symlinks_in_paths(
616616

617617

618618
@pytest.mark.parametrize("in_container", [True]) # only in container is enough
619-
def test_java_appid_and_metadata_before_process_exits(
619+
def xtest_java_appid_and_metadata_before_process_exits(
620620
application_pid: int,
621621
assert_collapsed: AssertInCollapsed,
622622
monkeypatch: MonkeyPatch,
@@ -657,7 +657,7 @@ def start_async_profiler_and_interrupt(self: AsyncProfiledProcess, *args: Any, *
657657

658658

659659
@pytest.mark.parametrize("in_container", [True]) # only in container is enough
660-
def test_java_attach_socket_missing(
660+
def xtest_java_attach_socket_missing(
661661
application_pid: int,
662662
profiler_state: ProfilerState,
663663
) -> None:
@@ -680,7 +680,7 @@ def test_java_attach_socket_missing(
680680

681681
# we know what messages to expect when in container, not on the host Java
682682
@pytest.mark.parametrize("in_container", [True])
683-
def test_java_jattach_async_profiler_log_output(
683+
def xtest_java_jattach_async_profiler_log_output(
684684
application_pid: int,
685685
caplog: LogCaptureFixture,
686686
profiler_state: ProfilerState,
@@ -817,7 +817,7 @@ def test_non_java_basename_version(
817817

818818
@pytest.mark.parametrize("in_container", [True])
819819
@pytest.mark.parametrize("insert_dso_name", [False, True])
820-
def test_dso_name_in_ap_profile(
820+
def xtest_dso_name_in_ap_profile(
821821
application_pid: int,
822822
insert_dso_name: bool,
823823
profiler_state: ProfilerState,
@@ -836,7 +836,7 @@ def test_dso_name_in_ap_profile(
836836
@pytest.mark.parametrize("in_container", [True])
837837
@pytest.mark.parametrize("insert_dso_name", [False, True])
838838
@pytest.mark.parametrize("libc_pattern", [r"(^|;)\(/.*/libc-.*\.so\)($|;)"])
839-
def test_handling_missing_symbol_in_profile(
839+
def xtest_handling_missing_symbol_in_profile(
840840
application_pid: int,
841841
insert_dso_name: bool,
842842
libc_pattern: str,
@@ -852,7 +852,7 @@ def test_handling_missing_symbol_in_profile(
852852

853853

854854
@pytest.mark.parametrize("in_container", [True])
855-
def test_meminfo_logged(
855+
def xtest_meminfo_logged(
856856
application_pid: int,
857857
caplog: LogCaptureFixture,
858858
profiler_state: ProfilerState,
@@ -869,7 +869,7 @@ def test_meminfo_logged(
869869

870870
# test that java frames include no semicolon but use a pipe '|' character instead, as implemented by AP
871871
@pytest.mark.parametrize("in_container", [True])
872-
def test_java_frames_include_no_semicolons(
872+
def xtest_java_frames_include_no_semicolons(
873873
application_pid: int,
874874
profiler_state: ProfilerState,
875875
) -> None:
@@ -896,7 +896,7 @@ def test_java_frames_include_no_semicolons(
896896

897897
# test that async profiler doesn't print anything to applications stdout, stderr streams
898898
@pytest.mark.parametrize("in_container", [True])
899-
def test_no_stray_output_in_stdout_stderr(
899+
def xtest_no_stray_output_in_stdout_stderr(
900900
application_pid: int,
901901
application_docker_container: Container,
902902
monkeypatch: MonkeyPatch,
@@ -1094,7 +1094,7 @@ def flush_output_and_stop_async_profiler(self: AsyncProfiledProcess, *args: Any,
10941094
),
10951095
],
10961096
)
1097-
def test_collect_default_jvm_flags(
1097+
def xtest_collect_default_jvm_flags(
10981098
profiler_state: ProfilerState,
10991099
tmp_path: Path,
11001100
application_pid: int,
@@ -1178,7 +1178,7 @@ def test_collect_default_jvm_flags(
11781178
),
11791179
],
11801180
)
1181-
def test_collect_cmdline_and_env_jvm_flags(
1181+
def xtest_collect_cmdline_and_env_jvm_flags(
11821182
docker_client: DockerClient,
11831183
application_docker_image: Image,
11841184
assert_collapsed: AssertInCollapsed,
@@ -1218,7 +1218,7 @@ def test_collect_cmdline_and_env_jvm_flags(
12181218
@pytest.mark.parametrize("java_cli_flags", ["-XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=95"])
12191219
@pytest.mark.parametrize("in_container", [True])
12201220
@pytest.mark.parametrize("expected_flags", [[]])
1221-
def test_collect_flags_unsupported_filtered_out(
1221+
def xtest_collect_flags_unsupported_filtered_out(
12221222
docker_client: DockerClient,
12231223
application_docker_image: Image,
12241224
assert_collapsed: AssertInCollapsed,
@@ -1260,7 +1260,7 @@ def test_collect_flags_unsupported_filtered_out(
12601260

12611261
@pytest.mark.parametrize("in_container", [True])
12621262
@pytest.mark.parametrize("expected_flags", [[]])
1263-
def test_collect_none_jvm_flags(
1263+
def xtest_collect_none_jvm_flags(
12641264
profiler_state: ProfilerState,
12651265
tmp_path: Path,
12661266
application_pid: int,
@@ -1272,7 +1272,7 @@ def test_collect_none_jvm_flags(
12721272

12731273
@pytest.mark.parametrize("in_container", [True])
12741274
@pytest.mark.parametrize("include_mmm", [True, False])
1275-
def test_including_method_modifiers(
1275+
def xtest_including_method_modifiers(
12761276
application_pid: int,
12771277
profiler_state: ProfilerState,
12781278
include_mmm: bool,
@@ -1287,7 +1287,7 @@ def test_including_method_modifiers(
12871287

12881288
@pytest.mark.parametrize("java_line_numbers", ["none", "line-of-function"])
12891289
@pytest.mark.parametrize("in_container", [True])
1290-
def test_including_line_numbers(
1290+
def xtest_including_line_numbers(
12911291
application_pid: int,
12921292
profiler_state: ProfilerState,
12931293
java_line_numbers: str,

tests/test_profiling_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_sanity(
5656
("java", "ap", True, "java.lang.String[]"),
5757
],
5858
)
59-
def test_allocation_being_profiled(
59+
def xtest_allocation_being_profiled(
6060
application_docker_container: Container,
6161
docker_client: DockerClient,
6262
gprofiler_docker_image: Image,

tests/test_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def runtime() -> str:
3939

4040
@pytest.mark.parametrize("in_container", [True])
4141
@pytest.mark.parametrize("application_image_tag", ["libpython"])
42-
def test_python_select_by_libpython(
42+
def xtest_python_select_by_libpython(
4343
application_pid: int,
4444
assert_collapsed: AssertInCollapsed,
4545
profiler_state: ProfilerState,
@@ -83,7 +83,7 @@ def test_python_select_by_libpython(
8383
],
8484
)
8585
@pytest.mark.parametrize("profiler_type", ["py-spy", "pyperf"])
86-
def test_python_matrix(
86+
def xtest_python_matrix(
8787
application_pid: int,
8888
assert_collapsed: AssertInCollapsed,
8989
profiler_type: str,

tests/test_sanity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151

5252
@pytest.mark.parametrize("runtime", ["java"])
53-
def test_java_from_host(
53+
def xtest_java_from_host(
5454
tmp_path_world_accessible: Path,
5555
application_pid: int,
5656
assert_app_id: Callable,
@@ -68,7 +68,7 @@ def test_java_from_host(
6868

6969

7070
@pytest.mark.parametrize("runtime", ["python"])
71-
def test_pyspy(
71+
def xtest_pyspy(
7272
application_pid: int,
7373
assert_collapsed: AssertInCollapsed,
7474
assert_app_id: Callable,

0 commit comments

Comments
 (0)